Thanks for reply. I read this late at night and assumed the "engine url" meant
old KVM. system .. but this implies the oVirt engine. I then translated your helpful
notes... but likely missing some parameter.
#############################
# Install import client
dnf install ovirt-imageio-client python3-ovirt-engine-sdk4
# save oVirt engine cert on gluster share (have to use GUI for now as I could not figure
out wget means)
https://ovirte01.penguinpages.local/ovirt-engine/
mv /gluster_bricks/engine/engine/ovirte01_pki-resource.cer
/gluster_bricks/engine/engine/.ovirte01_pki-resource.cer
chmod 440 /gluster_bricks/engine/engine/.ovirte01_pki-resource.cer
chown root:kvm /gluster_bricks/engine/engine/.ovirte01_pki-resource.cer
# Put oVirt Password in a file for use
echo "blahblahblah" > /gluster_bricks/engine/engine/.ovirt.password
chmod 440 /gluster_bricks/engine/engine/.ovirt.password
chown root:kvm /gluster_bricks/engine/engine/.ovirt.password
# upload the qcow2 images to oVirt
[root@odin vmstore]# pwd
/gluster_bricks/vmstore/vmstore
[root@odin vmstore]# ls -alh
total 385M
drwxr-xr-x. 7 vdsm kvm 8.0K Sep 21 13:20 .
drwxr-xr-x. 3 root root 21 Sep 16 23:42 ..
-rw-r--r--. 1 root root 0 Sep 21 13:20 example.log
drwxr-xr-x. 6 vdsm kvm 64 Sep 17 21:28 f118dcae-6162-4e9a-89e4-f30ffcfb9ccf
drw-------. 262 root root 8.0K Sep 17 01:29 .glusterfs
drwxr-xr-x. 2 root root 45 Sep 17 08:15 isos
-rwxr-xr-x. 2 root root 64M Sep 17 00:08 ns01_20200910.tgz
-rw-rw----. 2 qemu qemu 64M Sep 17 11:20 ns01.qcow2
-rw-rw----. 2 qemu qemu 64M Sep 17 13:34 ns01_var.qcow2
-rwxr-xr-x. 2 root root 64M Sep 17 00:09 ns02_20200910.tgz
-rw-rw----. 2 qemu qemu 64M Sep 17 11:21 ns02.qcow2
-rw-rw----. 2 qemu qemu 64M Sep 17 13:34 ns02_var.qcow2
drwxr-xr-x. 2 root root 38 Sep 17 10:19 qemu
drwxr-xr-x. 3 root root 280K Sep 21 08:21 .shard
[root@odin vmstore]# python3
/usr/share/doc/python3-ovirt-engine-sdk4/examples/upload_disk.py \
--engine-url
https://ovirte01.penguinpages.local/ \
--username admin@internal \
--password-file /gluster_bricks/engine/engine/.ovirt.password \
--cafile /gluster_bricks/engine/engine/.ovirte01_pki-resource.cer \
--sd-name vmstore \
--disk-sparse \
/gluster_bricks/vmstore/vmstore.qcow2
Checking image...
qemu-img: Could not open '/gluster_bricks/vmstore/vmstore.qcow2': Could not open
'/gluster_bricks/vmstore/vmstore.qcow2': No such file or directory
Traceback (most recent call last):
File "/usr/share/doc/python3-ovirt-engine-sdk4/examples/upload_disk.py", line
210, in <module>
image_info = get_image_info(args.filename)
File "/usr/share/doc/python3-ovirt-engine-sdk4/examples/upload_disk.py", line
133, in get_image_info
["qemu-img", "info", "--output", "json",
filename])
File "/usr/lib64/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/usr/lib64/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['qemu-img', 'info',
'--output', 'json', '/gluster_bricks/vmstore/vmstore.qcow2']'
returned non-zero exit status 1.
[root@odin vmstore]#