Re: [ovirt-users] Python-SDK4: Knowing snapshot status?

2018-04-09 Thread Ala Hino
Hi, After issuing the remove operation, you can fetch the VM snapshots and check the status of the snapshot. Here is an example how to fetch VM snapshots: https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/list_vm_ snapshots.py You'd want to wait until the status is OK. On Mon,

Re: [ovirt-users] Python-SDK4: Knowing snapshot status?

2018-04-09 Thread Benny Zlotnik
You can do that using something like: snapshot_service = snapshots_service.snapshot_service(snapshot.id) snapshot = snapshot_service.get() if snapshot.snapshot_status == types.SnapshotStatus.OK: ... But counting on the snapshot status is race prone, so in 4.2 a

[ovirt-users] Python-SDK4: Knowing snapshot status?

2018-04-09 Thread nicolas
Hi, I'm running ovirt-engine-sdk-python 4.2.4 and I'm performing some snapshot-related tasks. I'd like to somehow control the status of the snapshot in order to know when I'll be able to run the next snapshot-related operation. For example, I'd like to create a new snapshot and then delete