search for: snapshotlist

Displaying 6 results from an estimated 6 matches for "snapshotlist".

2015 Jun 04
2
Re: [ovirt-users] Bug in Snapshot Removing
...nd the code actually has correct indentions. > ><― snip ―> > >print "Snapshot deletion" >try: > time.sleep(300) > Connect() > vms = api.vms.list() > for vm in vms: > print ("Deleting snapshots for %s ") % vm.name > snapshotlist = vm.snapshots.list() > for snapshot in snapshotlist: > if snapshot.description != "Active VM": > time.sleep(30) > snapshot.delete() > try: > while >api.vms.get(name=vm.name).snapshots.g...
2015 Jun 04
2
Re: [ovirt-users] Bug in Snapshot Removing
...gt;>> >>>print "Snapshot deletion" >>>try: >>> time.sleep(300) >>> Connect() >>> vms = api.vms.list() >>> for vm in vms: >>> print ("Deleting snapshots for %s ") % vm.name >>> snapshotlist = vm.snapshots.list() >>> for snapshot in snapshotlist: >>> if snapshot.description != "Active VM": >>> time.sleep(30) >>> snapshot.delete() >>> try: >>>...
2015 Jun 03
2
Re: [ovirt-users] Bug in Snapshot Removing
On 03/06/15 07:36 +0000, Soeren Malchow wrote: >Dear Adam > >First we were using a python script that was working on 4 threads and >therefore removing 4 snapshots at the time throughout the cluster, that >still caused problems. > >Now i took the snapshot removing out of the threaded part an i am just >looping through each snapshot on each VM one after another, even with
2015 Jun 03
0
Re: [ovirt-users] Bug in Snapshot Removing
...the elegant way, but i am not a developer) and the code actually has correct indentions. <― snip ―> print "Snapshot deletion" try: time.sleep(300) Connect() vms = api.vms.list() for vm in vms: print ("Deleting snapshots for %s ") % vm.name snapshotlist = vm.snapshots.list() for snapshot in snapshotlist: if snapshot.description != "Active VM": time.sleep(30) snapshot.delete() try: while api.vms.get(name=vm.name).snapshots.get(id=snapshot.id).snapshot_...
2015 Jun 04
0
Re: [ovirt-users] Bug in Snapshot Removing
...>> >><― snip ―> >> >>print "Snapshot deletion" >>try: >> time.sleep(300) >> Connect() >> vms = api.vms.list() >> for vm in vms: >> print ("Deleting snapshots for %s ") % vm.name >> snapshotlist = vm.snapshots.list() >> for snapshot in snapshotlist: >> if snapshot.description != "Active VM": >> time.sleep(30) >> snapshot.delete() >> try: >> while >>api.vms.g...
2015 Jun 11
0
Re: [ovirt-users] Bug in Snapshot Removing
...t "Snapshot deletion" >>>>try: >>>> time.sleep(300) >>>> Connect() >>>> vms = api.vms.list() >>>> for vm in vms: >>>> print ("Deleting snapshots for %s ") % vm.name >>>> snapshotlist = vm.snapshots.list() >>>> for snapshot in snapshotlist: >>>> if snapshot.description != "Active VM": >>>> time.sleep(30) >>>> snapshot.delete() >>>> try: >>&gt...