Hi Alan,
Some comments before the solution.
This message is related to network not to certificate because it is
installed otherwise it cannot even started to upload.
Even if the certificate is not installed, the upload will start, and the initial
phase will go through but will fall into a paused state soon.
You can use the Engine server or a KVM host to upload the ISO image or prepare a Linux box
with all the required packages to upload ISO images to a Data Storage Domain.
I'm using OLVM, but the steps are the same for oVirt on CentOS or other distros. Here
are the instructions:
How to upload an ISO image through the command line in OLVM 4.5
- Install the python3-ovirt-engine-sdk4 and ovirt-imageio-client rpm packages. Both
packages are installed by default on all OLVM hosts (KVM and Engine servers).
- Download the OLVM CA Public Key, saving it to the /root home directory or any other
place you want. You can use the /etc/pki/ovirt-engine/ca if running on the Engine
server.pem file:
curl -k -L
'http://<ENGINE-FQDN>/ovirt-engine/services/pki-resource?resource=ca-certificate&format=X509-PEM-CA'
-o /root/ca-<ENGINE-FQDN>.pem
- Create the config file ~/.config/ovirt.conf with the following content:
mkdir ~/.config
cat << EOF > ~/.config/ovirt.conf
[OLVM-PROFILE]
engine_url = https://<engine FQDN>
username = <OLVM-USER>
password = <OLVM-USER-PASSWORD>
cafile = <CHANGE-TO-THE-CA-FILENAME-AND-LOCATION>
EOF
Notes:
. You can change the OLVM-PROFILE name to something meaningful for your environment like
prod-engine or olvmdashboard or any other thing you like.
. The user must have the domain in it, for example: admin@internal or the AD domain if
using external authentication.
. You can use the /usr/share/doc/python3-ovirt-engine-sdk4/examples/ovirt.conf example
file to add other configuration options to this file.
- Prerequisites:
- Current scripts from the python3-ovirt-engine-sdk4 rpm package still search for the
python command. Configure the python command using alternatives:
[root@host1 ~]# alternatives --set python /usr/bin/python3
Confirm this configuration works by running the python command:
[root@host1 ~]# python
Python 3.6.8 (default, Nov 10 2022, 12:32:59)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-15.0.1)] on linux
Type "help", "copyright", "credits" or
"license" for more information.
>>
- OLVM 4.4 installed, up and running with at least one Data Storage Domain already
configured.
- Already downloaded ISO image file name: OracleLinux-R9-U0-x86_64-dvd.iso
- Existing Storage Domain: vms <-- use your Data Storage name in the following
command
- Uploading the ISO image to the existing Storage Domain:
[root@host1 ~]# /usr/share/doc/python3-ovirt-engine-sdk4/examples/upload_disk.py \
-c <OLVM-PROFILE> \
--disk-format raw \
--sd-name <DATA-STORAGE-DOMAIN-NAME> \
OracleLinux-R9-U0-x86_64-dvd.iso
Marcos
-----Original Message-----
From: Alan Aguinaga <alansenairj(a)gmail.com>
Sent: Wednesday, February 7, 2024 5:42 PM
To: users(a)ovirt.org
Subject: [External] : [ovirt-users] Unable to upload image to disk - due to a network
error
Hi. Is there a way to send an ISO to self hosted server?
Because I 've been searching for help and a lot of people complaining about it.
1 - What is the way to send ISOs to oVirt? Are there a command line tool to send ISOs to
my server?
"The ISO Uploader tool has been deprecated. Red Hat recommends uploading ISO images
to the data domain with the Administration Portal or with the REST API. See Section
11.8.1, “Uploading Images to a Data Storage Domain” for details."
https://urldefense.com/v3/__https://access.redhat.com/documentation/en-us...
2 - ISO sending from portal worked for a smaller image. It could be done for OL 7.9 with 4
GB. But I am trying to upload OL 8.9 ISO with 13.5 GB and it is not finishing. It is not
resuming. It started to upload. I have a configured certificate installed and ok tested
connection.
I got this error: "Unable to upload image to disk
a72b0da4-1bbb-453c-b846-701eef9761f6 due to a network error. Ensure ovirt-engine's CA
certificate is registered as a trusted CA in the browser. The certificate can be fetched
from"
It started but not finished: "Sent 1732 of 12812 MB"
This message is related to network not to certificate because it is installed otherwise it
cannot even started to upload.
Are there a user-friendly way to upload a ISO to a server using any command line tool?
Latter versions I can send a ISO to a storage pool and it appears in server. Now I read it
is impossible. Does it impossible by now?
My is 4.4.10.7-1.0.25.el8. I am using NFS share and self hosted engine.
_______________________________________________
Users mailing list -- users(a)ovirt.org
To unsubscribe send an email to users-leave(a)ovirt.org Privacy Statement:
https://urldefense.com/v3/__https://www.ovirt.org/privacy-policy.html__;!...
oVirt Code of Conduct:
https://urldefense.com/v3/__https://www.ovirt.org/community/about/communi...
List Archives:
https://urldefense.com/v3/__https://lists.ovirt.org/archives/list/users@o...