IIUC, you can get job information using correlation id, but I think this only works for operations that use jobs.
Can you share the code you use to update the disk? Sounds strange  https://github.com/oVirt/ovirt-system-tests/blob/facd0a895355863c3bc1056a674eb5d07f0f9131/basic-suite-4.3/test-scenarios/004_basic_sanity.py#L247  https://github.com/oVirt/ovirt-system-tests/blob/1c9b9b7e917a0df4dbdd097e7d1f03e63bf524e1/basic-suite-master/test_utils/__init__.py#L226 On Wed, Jan 15, 2020 at 3:38 PM Martin Kletzander <mklet...@redhat.com> wrote: > > Hello everyone, > > so I am trying to do some work related to oVirt and I am handling disks using > the ovirtsdk4 python API. However I am not sure about how to do two things. > > First one is about avoiding an active wait or at least minimizing the > guesswork. > When creating a new disk I have to then wait in a loop until it is ready, > polling it and checking if it is in 'OK' status. However the creation > returns a > job which has way better information on what is happening (is it still > running? > did it fail?) and I was wondering if there is a way how to get the job > information using the Python SDK. > > Another thing is that, apparently, updating a disk only works for updating the > qcow_version and nothing else. And I need to update its shareable attribute, > which is completely possible using the web interface. What is the proper way > to > do that using REST APIs or the Python SDK? > > Thanks for any info, > Martin > _______________________________________________ > Devel mailing list -- firstname.lastname@example.org > To unsubscribe send an email to devel-le...@ovirt.org > Privacy Statement: https://www.ovirt.org/site/privacy-policy/ > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://email@example.com/message/6L6FPWHUWT5E32GBBL6UB2OEFNQ6M26X/ _______________________________________________ Devel mailing list -- firstname.lastname@example.org To unsubscribe send an email to devel-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://email@example.com/message/BADXSMFZBOYWCDCPDSHWRPJXUJJJ5ME7/