[ovirt-users] ovirt python sdk and starting stateless vm

Jiří Sléžka jiri.slezka at slu.cz
Mon Sep 26 09:41:07 UTC 2016


Hello,

I am testing some from scratch deployment so I created a stateless vm 
and wrote small python script to shutdown and start the vm again (to 
revert vm state to starting point).

http://pastebin.com/b5yTFEkN

problem is that after stopping the vm there is a running operation of 
snapshot removal and when script try to start the vm it fails with

Failed to Start VM:

status: 409
reason: Conflict
detail: Cannot run VM. Related operation is currently in progress. 
Please try again later.

Is there a cleaner way than checking status and looping or waiting some 
time to end of this operation? (desclaimer: I am new to python so please 
don't hit me :-)


Cheers, Jiri

-------------- next part --------------
A non-text attachment was scrubbed...
Name: jiri_slezka.vcf
Type: text/x-vcard
Size: 586 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160926/6afcf244/attachment-0001.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3267 bytes
Desc: Elektronicky podpis S/MIME
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160926/6afcf244/attachment-0001.p7s>


More information about the Users mailing list