
On 15 Jan 2020, at 17:40, Benny Zlotnik <bzlotnik@redhat.com> wrote:
IIUC, you can get job information using correlation id[1][2], but I think this only works for operations that use jobs.
Can you share the code you use to update the disk? Sounds strange
[1] https://github.com/oVirt/ovirt-system-tests/blob/facd0a895355863c3bc1056a674... [2] https://github.com/oVirt/ovirt-system-tests/blob/1c9b9b7e917a0df4dbdd097e7d1...
On Wed, Jan 15, 2020 at 3:38 PM Martin Kletzander <mkletzan@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?
It really looks to me like that the disk attachment modification should work. As much as it sounds suspicious/weird.
Thanks for any info, Martin _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@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://lists.ovirt.org/archives/list/devel@ovirt.org/message/6L6FPWHUWT5E32...
_______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@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://lists.ovirt.org/archives/list/devel@ovirt.org/message/BADXSMFZBOYWCD...