On Wed, Jan 15, 2020 at 06:40:09PM +0200, Benny Zlotnik wrote:
IIUC, you can get job information using correlation id[1][2], but I
think this only works for operations that use jobs.
Oh, this is what I was looking for. Thank you!
Can you share the code you use to update the disk? Sounds strange
That was not related to updating the disks, that particular operation does not
create a job, of course. The above question was related to other things I do,
like creating a disk for example.
[1]
https://github.com/oVirt/ovirt-system-tests/blob/facd0a895355863c3bc1056a...
[2]
https://github.com/oVirt/ovirt-system-tests/blob/1c9b9b7e917a0df4dbdd097e...
On Wed, Jan 15, 2020 at 3:38 PM Martin Kletzander <mkletzan(a)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 -- devel(a)ovirt.org
> To unsubscribe send an email to devel-leave(a)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/6L6FPWHUWT5...