On Mon, Sep 21, 2020 at 8:37 PM penguin pages <jeremey.w...@gmail.com> wrote:
>
>
> I pasted old / file path not right example above.. But here is a cleaner 
> version with error i am trying to root cause
>
> [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/vmstore/vmstore/.ovirt.password --cafile 
> /gluster_bricks/vmstore/vmstore/.ovirte01_pki-resource.cer --sd-name vmstore 
> --disk-sparse /gluster_bricks/vmstore/vmstore/ns01.qcow2
> Checking image...
> Image format: qcow2
> Disk format: cow
> Disk content type: data
> Disk provisioned size: 21474836480
> Disk initial size: 431751168
> Disk name: ns01.qcow2
> Disk backup: False
> Connecting...
> Creating disk...
> Traceback (most recent call last):
>   File "/usr/share/doc/python3-ovirt-engine-sdk4/examples/upload_disk.py", 
> line 262, in <module>
>     name=args.sd_name
>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/services.py", line 7697, 
> in add
>     return self._internal_add(disk, headers, query, wait)
>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 232, 
> in _internal_add
>     return future.wait() if wait else future
>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 55, in 
> wait
>     return self._code(response)
>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 229, 
> in callback
>     self._check_fault(response)
>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 132, 
> in _check_fault
>     self._raise_error(response, body)
>   File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 118, 
> in _raise_error
>     raise error
> ovirtsdk4.NotFoundError: Fault reason is "Operation Failed". Fault detail is 
> "Entity not found: vmstore". HTTP response code is 404.

You used:

    --sd-name vmstore

But there is no such storage domain in this setup.

Check the storage domains on this setup. One (ugly) way is is:

$ curl -s -k --user admin@internal:password
https://ovirte01.penguinpages.local/ovirt-engine/api/storagedomains/ |
grep '<name>'
        <name>export1</name>
        <name>iscsi1</name>
        <name>iscsi2</name>
        <name>nfs1</name>
        <name>nfs2</name>
        <name>ovirt-image-repository</name>

Nir
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/7K2LBSN5POKIKYQ3CXJZEJQCGNG26VFV/

Reply via email to