On Sat, Sep 4, 2021 at 10:28 PM avishek.sarkar--- via Users
<users(a)ovirt.org> wrote:
I have used upload-disk.py to upload qcow2 image to data center...however getting below
errror
./upload-disk.py --engine-url 'https://xyz.net' --username='xyz(a)abc.net'
--password-file=password --sd-name='SEC-ABC'
--cafile='/home/jenkins/crt/ca.crt' --disk-format="qcow2" --disk-sparse
image-XYZ
I see that you use the user xyz(a)abc.net - does it work when using
admin@internal?
...
Uploading image...
[ 100.00% ] 10.00 GiB, 11.34 seconds, 903.09 MiB/s
Finalizing transfer session...
...
ovirtsdk4.AuthError: Fault reason is "Operation Failed".
Fault detail is "[User is not authorized to perform this action.]". HTTP
response code is 403.
This is a bug - the system allows you to start an upload, which creates a disk,
but does not allow you to finalize the upload.
If you can reproduce this with 4.4, please file ovirt engine bug, and
we will try to fix
this in a future 4.4. release.
For now, you can try to modify the capabilities of the user xyz(a)abc.net, maybe
uploading images requires some permissions which are set for this user.
Avihai, do we test image transfers with a special user (not admin@internal)?
Nir