This is a cryptographically signed message in MIME format.
--------------ms010900010604080209010205
Content-Type: multipart/mixed;
boundary="------------6F5A9EA0BC79A7CEA3998FBB"
This is a multi-part message in MIME format.
--------------6F5A9EA0BC79A7CEA3998FBB
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Dne 26.9.2016 v 13:07 Ondra Machacek napsal(a):
On 09/26/2016 12:48 PM, Ji=C5=99=C3=AD Sl=C3=A9=C5=BEka wrote:
> Dne 26.9.2016 v 12:10 Ondra Machacek napsal(a):
>> On 09/26/2016 11:41 AM, Ji=C5=99=C3=AD Sl=C3=A9=C5=BEka wrote:
>>> Hello,
>>>
>>> I am testing some from scratch deployment so I created a stateless v=
m
>>> 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 o=
f
>>> 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 s=
ome
>>> time to end of this operation? (desclaimer: I am new to
python so
>>> please
>>> don't hit me :-)
>>
>> Unfortunatelly, no. You always have to poll the API to check the stat=
us
>> of the operation.
>
> ok, I will
>
>> Just for info, we have new Python SDK version 4[1]. Python SDK versio=
n
>> 3 will be removed someday in future. So you would have to
migrate you=
r
>> scripts, so maybe better to write it in version 4 now, then
rewrite i=
t
>> later.
>
> thanks for link. Unfortunatelly it looks like there is only 3.6.3.0
> version of ovirt-engine-sdk-python in Fedora24 repo at this time (and
> ovirt-engine-sdk-python-3.6.9.1-1.fc23.noarch.rpm in /ovirt-4.0 repo f=
or
ngine-sdk4-4.0.1-1.fc23.x86_64.rpm
+1
:-)
>
>> And also, if you don't know Python, but you know Ansible, you can use=
>> Ansible VMs module[2].
>
> thanks once more. I am using ansible and I will try ovirt module for
> sure (but python is on my todo list as well ;-)
>
> Cheers, Jiri
>
>>
>> [1] -
https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk
>> [2] -
http://docs.ansible.com/ansible/ovirt_vms_module.html
>
>
>>
>>>
>>>
>>> Cheers, Jiri
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users(a)ovirt.org
>>>
http://lists.ovirt.org/mailman/listinfo/users
>>>
>
>
>
> _______________________________________________
> Users mailing list
> Users(a)ovirt.org
>
http://lists.ovirt.org/mailman/listinfo/users
>
--------------6F5A9EA0BC79A7CEA3998FBB
Content-Type: text/x-vcard; charset=utf-8;
name="jiri_slezka.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="jiri_slezka.vcf"
begin:vcard
fn;quoted-printable:Ing. Ji=3DC5=3D99=3DC3=3DAD Sl=3DC3=3DA9=3DC5=3DBEka
n;quoted-printable;quoted-printable:Sl=3DC3=3DA9=3DC5=3DBEka;Ji=3DC5=3D99=
=3DC3=3DAD
org;quoted-printable;quoted-printable:Slezsk=3DC3=3DA1 univerzita v Opav=3D=
C4=3D9B;Centrum informa=3DC4=3D8Dn=3DC3=3DADch technologi=3DC3=3DAD
adr;quoted-printable;quoted-printable:Na Rybn=3DC3=3DAD=3DC4=3D8Dku 1;;CI=
T, Slezsk=3DC3=3DA1 univerzita v Opav=3DC4=3D9B;Opava;;74601;Czech Republ=
ic
email;internet:jiri.slezka@slu.cz
title;quoted-printable:Spr=3DC3=3DA1vce s=3DC3=3DADt=3DC4=3D9B a aplikac=3D=
C3=3DAD
tel;work:+420 553 684 696
x-mozilla-html:FALSE
url:http://www.slu.cz
version:2.1
end:vcard
--------------6F5A9EA0BC79A7CEA3998FBB--
--------------ms010900010604080209010205
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: Elektronicky podpis S/MIME
MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFAD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