Re: [ovirt-users] Python API question

2016-01-16 Thread Karli Sjöberg
> för Colin Coe <colin@gmail.com> Skickat: den 16 januari 2016 06:07 Till: Juan Hernández Kopia: Users@ovirt.org Ämne: Re: [ovirt-users] Python API question Hi again all I've just noticed that the snapshot status appears not to update. Consider the code below: --- api.vms.get(VM_NAM

Re: [ovirt-users] Python API question

2016-01-16 Thread Karli Sjöberg
..@ovirt.org> för Karli Sjöberg <karli.sjob...@slu.se> Skickat: den 16 januari 2016 10:13 Till: Colin Coe; Juan Hernández Kopia: Users@ovirt.org Ämne: Re: [ovirt-users] Python API question Hi Colin, I´ve also noticed that behaviour, you need to redefine the variable in the loop as w

Re: [ovirt-users] Python API question

2016-01-15 Thread Colin Coe
Hi again all I've just noticed that the snapshot status appears not to update. Consider the code below: --- api.vms.get(VM_NAME).snapshots.add(params.Snapshot(description=SNAPSHOT_NAME, vm=api.vms.get(VM_NAME), persist_memorystate=True)) # Wait for snapshot to finish snap =

Re: [ovirt-users] Python API question

2016-01-15 Thread Juan Hernández
On 01/15/2016 05:23 AM, Colin Coe wrote: > Hi all > > I've written a Python script to take nightly snapshots of VMs which are > kept for x days. After x days the snapshot is deleted. > > I can't work out how to wait for the snapshot deletion to complete. I > know how to do it for creating the

Re: [ovirt-users] Python API question

2016-01-14 Thread Karli Sjöberg
fre 2016-01-15 klockan 12:23 +0800 skrev Colin Coe: > Hi all > > > I've written a Python script to take nightly snapshots of VMs which > are kept for x days. After x days the snapshot is deleted. > > > I can't work out how to wait for the snapshot deletion to complete. I > know how to do it

[ovirt-users] Python API question

2016-01-14 Thread Colin Coe
Hi all I've written a Python script to take nightly snapshots of VMs which are kept for x days. After x days the snapshot is deleted. I can't work out how to wait for the snapshot deletion to complete. I know how to do it for creating the snapshot but I've not been able to get it right for the