Gracefully GUEST shutown via ovirt Python-SDK

--_000_1051EFB4D3A1704680C38CCAAC5836D292F02CDEWPTXMAIL2ptxaxw_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, When using shutdown from ovirt manager GUI , then on a Linux Guest , I ge= t this massage : System Administrator has initiated shutdown of this Virtual Machine. Virtua= l Machine is shutting down." The system is going down for power-off at Tue 2016-01-19 10:32:19 CET! When , via ovirt Python SDK , I use this : api =3D API(url=3DURL, username=3DUSERNAME, password=3DPASSWORD, ca_file=3D= CA_FILE) vm =3D api.vms.get(name=3DVM_NAME) print 'Stopping this VM' vm.stop() Then the Guest is stopped in a 'non -gracefully =BB way. Is it a way to achieve same behavior as via GUI shutdown ? Thx for help. Regards, J.P. Ribeauville P: +33.(0).1.47.17.20.49 . Puteaux 3 Etage 5 Bureau 4 jpribeauville@axway.com<mailto:jpribeauville@axway.com> http://www.axway.com<http://www.axway.com/> * Pensez =E0 l'environnement avant d'imprimer. --_000_1051EFB4D3A1704680C38CCAAC5836D292F02CDEWPTXMAIL2ptxaxw_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> <meta name=3D"Generator" content=3D"Microsoft Exchange Server"> <!-- converted from rtf --> <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left:= #800000 2px solid; } --></style> </head> <body> <font face=3D"Calibri" size=3D"2"><span style=3D"font-size:11pt;"> <div>Hi,</div> <div> </div> <div>When using shutdown from ovirt manager GUI , then on a Lin= ux Guest , I get this massage :</div> <div> </div> <div><i>System Administrator has initiated shutdown of this Virtual Machine= . Virtual Machine is shutting down."</i></div> <div><i>The system is going down for power-off at Tue 2016-01-19 10:32:19 C= ET!</i></div> <div> </div> <div>When , via ovirt Python SDK , I use this :</div> <div> </div> <div><i>api =3D API(url=3DURL, username=3DUSERNAME, password=3DPASSWORD, ca= _file=3DCA_FILE)</i></div> <div><i> vm =3D api.vms.get(name=3DVM_NAME)</i></div> <div><i> print 'Stopping this VM'</i></div> <div><i> </i><i>vm.stop()<br> <br> </i>Then the Guest is stopped in a ‘non –gracefully =BB wa= y.<br> Is it a way to achieve same behavior as via GUI shutdown ?<br> <br> Thx for help.</div> <div> </div> <div>Regards,</div> <table width=3D"189" style=3D"width:113.7pt;margin-left:5.4pt;"> <col width=3D"189" style=3D"width:113.7pt;"> <tr> <td><font color=3D"#888888"> <div> </div> <div> </div> <div><font face=3D"Arial" size=3D"2"><span style=3D"font-size:8.5pt;"><b>J.= P. Ribeauville</b></span></font></div> <div><font color=3D"#737373"> </font></div> </font></td> </tr> <tr> <td><font face=3D"Arial" size=3D"2" color=3D"red"><span style=3D"font-size:= 8.5pt;">P: <font color=3D"#737373">+33.(0).1.47.17.20.49</font> <div><font color=3D"#737373">.</font></div> <div><font color=3D"#737373">Puteaux 3 Etage 5 Bureau 4</font></div> <div><font color=3D"#737373"> </font></div> <div><a href=3D"mailto:jpribeauville@axway.com"><font face=3D"Calibri" size= =3D"2" color=3D"blue"><span style=3D"font-size:9pt;"><u>jpribeauville@axway= .com</u></span></font></a><br> <a href=3D"http://www.axway.com/"><font face=3D"Calibri" size=3D"2"><span s= tyle=3D"font-size:9pt;"><u>http://www.axway.com</u></span></font></a></div> <div><font color=3D"#737373"> </font></div> </span></font></td> </tr> </table> <div> </div> <table width=3D"300" style=3D"width:180.4pt;margin-left:5.4pt;"> <col width=3D"300" style=3D"width:180.4pt;"> <tr> <td><font face=3D"Webdings" size=3D"5" color=3D"#888888"><span style=3D"fon= t-size:18pt;">P<font face=3D"Calibri" size=3D"1"><span style=3D"font-size:8= pt;"> </span></font><font face=3D"Arial" size=3D"1"><span style=3D"fon= t-size:8pt;">Pensez =E0 l’environnement avant d’imprimer.</span=
</font></span></font></td> </tr> </table> <div> </div> <div> </div> <div> </div> </span></font> </body> </html>
--_000_1051EFB4D3A1704680C38CCAAC5836D292F02CDEWPTXMAIL2ptxaxw_--

</p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
</o:p></span></p> </div> <div> <p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:"= ;Calibri","sans-serif""> vm =3D api.vms.get(name= =3DVM_NAME)</span></i><span style=3D"font-size:11.0pt;font-family:"Cal= ibri","sans-serif""><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:"= ;Calibri","sans-serif""> print= 'Stopping this VM'</span></i><span style=3D"font-size:11.0pt;font-family:&= quot;Calibri","sans-serif""><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:"= ;Calibri","sans-serif""> vm.st= op()<br> <br> </span></i><span style=3D"font-size:11.0pt;font-family:"Calibri",= "sans-serif"">Then the Guest is stopped in a ‘non –gr= acefully =BB way.<br> Is it a way to achieve same behavior as via GUI shutdown ?<br> <br> Thx for help.<o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
--_000_8F5D1BC1709CC8409AF1935024879387813D3177harrisnpmacuk_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Try using vm.shutdown() From: users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] On Behalf Of= Jean-Pierre Ribeauville Sent: 19 January 2016 10:30 To: users@ovirt.org Subject: [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK Hi, When using shutdown from ovirt manager GUI , then on a Linux Guest , I ge= t this massage : System Administrator has initiated shutdown of this Virtual Machine. Virtua= l Machine is shutting down." The system is going down for power-off at Tue 2016-01-19 10:32:19 CET! When , via ovirt Python SDK , I use this : api =3D API(url=3DURL, username=3DUSERNAME, password=3DPASSWORD, ca_file=3D= CA_FILE) vm =3D api.vms.get(name=3DVM_NAME) print 'Stopping this VM' vm.stop() Then the Guest is stopped in a 'non -gracefully =BB way. Is it a way to achieve same behavior as via GUI shutdown ? Thx for help. Regards, J.P. Ribeauville P: +33.(0).1.47.17.20.49 . Puteaux 3 Etage 5 Bureau 4 jpribeauville@axway.com<mailto:jpribeauville@axway.com> http://www.axway.com<http://www.axway.com/> P Pensez =E0 l'environnement avant d'imprimer. Please visit our new website at www.pml.ac.uk and follow us on Twitter @Pl= ymouthMarine Winner of the Environment & Conservation category, the Charity Awards 2014. Plymouth Marine Laboratory (PML) is a company limited by guarantee register= ed in England & Wales, company number 4178503. Registered Charity No. 10912= 22. Registered Office: Prospect Place, The Hoe, Plymouth PL1 3DH, UK.=20 This message is private and confidential. If you have received this message= in error, please notify the sender and remove it from your system. You are= reminded that e-mail communications are not secure and may contain viruses= ; PML accepts no liability for any loss or damage which may be caused by vi= ruses. --_000_8F5D1BC1709CC8409AF1935024879387813D3177harrisnpmacuk_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> <meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:Webdings; panose-1:5 3 1 2 1 5 9 6 7 3;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman","serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p.emailquote, li.emailquote, div.emailquote {mso-style-name:emailquote; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:1.0pt; border:none; padding:0cm; font-size:12.0pt; font-family:"Times New Roman","serif";} span.EmailStyle18 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"EN-GB" link=3D"blue" vlink=3D"purple"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">Try using vm.shutdown()<o= :p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D"><o:p> </o:p></span><= /p> <div style=3D"border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm = 4.0pt"> <div> <div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm = 0cm 0cm"> <p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:10.0pt;fo= nt-family:"Tahoma","sans-serif"">From:</span></b><span = lang=3D"EN-US" style=3D"font-size:10.0pt;font-family:"Tahoma",&qu= ot;sans-serif""> users-bounces@ovirt.org [mailto:users-bounces@ovirt.o= rg] <b>On Behalf Of </b>Jean-Pierre Ribeauville<br> <b>Sent:</b> 19 January 2016 10:30<br> <b>To:</b> users@ovirt.org<br> <b>Subject:</b> [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK= <o:p></o:p></span></p> </div> </div> <p class=3D"MsoNormal"><o:p> </o:p></p> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif"">Hi,<o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif""> <o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif"">When using shutdown from ovirt manager = GUI , then on a Linux Guest , I get this massage :<o:p></o:p></= span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif""> <o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:"= ;Calibri","sans-serif"">System Administrator has initiated s= hutdown of this Virtual Machine. Virtual Machine is shutting down."</s= pan></i><span style=3D"font-size:11.0pt;font-family:"Calibri",&qu= ot;sans-serif""><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:"= ;Calibri","sans-serif"">The system is going down for power-o= ff at Tue 2016-01-19 10:32:19 CET!</span></i><span style=3D"font-size:11.0p= t;font-family:"Calibri","sans-serif""><o:p></o:p></span= libri","sans-serif""> <o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif"">When , via ovirt Python SDK , I use thi= s :<o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif""> <o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:"= ;Calibri","sans-serif"">api =3D API(url=3DURL, username=3DUS= ERNAME, password=3DPASSWORD, ca_file=3DCA_FILE)</span></i><span style=3D"fo= nt-size:11.0pt;font-family:"Calibri","sans-serif""><o:p= libri","sans-serif""> <o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif"">Regards,<o:p></o:p></span></p> </div> <table class=3D"MsoNormalTable" border=3D"0" cellpadding=3D"0" width=3D"152= " style=3D"width:113.7pt;margin-left:5.4pt"> <tbody> <tr> <td style=3D"padding:.75pt .75pt .75pt .75pt"> <p class=3D"MsoNormal"><span style=3D"color:#888888"> <o:p></o:p></sp= an></p> <div> <p class=3D"MsoNormal"><span style=3D"color:#888888"> <o:p></o:p></spa= n></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"color:#888888"> <o:p></o:p></spa= n></p> </div> <div> <p class=3D"MsoNormal"><b><span style=3D"font-size:8.5pt;font-family:"= Arial","sans-serif";color:#888888">J.P. Ribeauville</span></= b><span style=3D"color:#888888"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"color:#737373"> </span><span sty= le=3D"color:#888888"><o:p></o:p></span></p> </div> </td> </tr> <tr> <td style=3D"padding:.75pt .75pt .75pt .75pt"> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:red">P: </span><span style=3D"font-size:8.5pt;font-family:"Arial","s= ans-serif";color:#737373">+33.(0).1.47.17.20.49</span><span style= =3D"font-size:8.5pt;font-family:"Arial","sans-serif";co= lor:red"> <o:p></o:p></span></p> <div> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:#737373">.</span><span style=3D"font-= size:8.5pt;font-family:"Arial","sans-serif";color:red">= <o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:#737373">Puteaux 3 Etage 5 Bure= au 4</span><span style=3D"font-size:8.5pt;font-family:"Arial",&qu= ot;sans-serif";color:red"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:#737373"> </span><span style=3D"= font-size:8.5pt;font-family:"Arial","sans-serif";color:= red"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:red"><a href=3D"mailto:jpribeauville@= axway.com"><span style=3D"font-size:9.0pt;font-family:"Calibri",&= quot;sans-serif"">jpribeauville@axway.com</span></a><br> <a href=3D"http://www.axway.com/"><span style=3D"font-size:9.0pt;font-famil= y:"Calibri","sans-serif"">http://www.axway.com</span></= a><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:#737373"> </span><span style=3D"= font-size:8.5pt;font-family:"Arial","sans-serif";color:= red"><o:p></o:p></span></p> </div> </td> </tr> </tbody> </table> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif""> <o:p></o:p></span></p> </div> <table class=3D"MsoNormalTable" border=3D"0" cellpadding=3D"0" width=3D"241= " style=3D"width:180.4pt;margin-left:5.4pt"> <tbody> <tr> <td style=3D"padding:.75pt .75pt .75pt .75pt"> <p class=3D"MsoNormal"><span style=3D"font-size:18.0pt;font-family:Webdings= ;color:#888888">P</span><span style=3D"font-size:8.0pt;font-family:"Ca= libri","sans-serif";color:#888888"> </span><span style= =3D"font-size:8.0pt;font-family:"Arial","sans-serif";co= lor:#888888">Pensez =E0 l’environnement avant d’imprimer.</span><o:p></o:p></p> </td> </tr> </tbody> </table> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif""> <o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif""> <o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif""> <o:p></o:p></span></p> </div> </div> </div> <PRE> Please visit our new website at www.pml.ac.uk and follow us on Twitter @Pl= ymouthMarine Winner of the Environment & Conservation category, the Charity Awards 2014. Plymouth Marine Laboratory (PML) is a company limited by guarantee register= ed in England & Wales, company number 4178503. Registered Charity No. 10912= 22. Registered Office: Prospect Place, The Hoe, Plymouth PL1 3DH, UK.=20 This message is private and confidential. If you have received this message= in error, please notify the sender and remove it from your system. You are= reminded that e-mail communications are not secure and may contain viruses= ; PML accepts no liability for any loss or damage which may be caused by vi= ruses. </PRE></body> </html> --_000_8F5D1BC1709CC8409AF1935024879387813D3177harrisnpmacuk_--

</p> </div> <div> <p class=3D"MsoNormal"><i><span lang=3D"EN-GB" style=3D"font-size:11.0pt;fo= nt-family:"Calibri","sans-serif""> &nb= sp; print 'Stopping this VM'</span></i><span lang=3D"EN-GB"><o:p></o:=
--_000_1051EFB4D3A1704680C38CCAAC5836D292F02D2EWPTXMAIL2ptxaxw_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, By using vm.shutdown() instead of vm.stop() , for a Windows guest then I g= ot a graceful shutdown but not on my Linux Guest . Strange isn't ? Regards, J.P. De : Simon Hallam [mailto:sha@pml.ac.uk] Envoy=E9 : mardi 19 janvier 2016 11:38 =C0 : Jean-Pierre Ribeauville Cc : users@ovirt.org Objet : RE: [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK Try using vm.shutdown() From: users-bounces@ovirt.org<mailto:users-bounces@ovirt.org> [mailto:users= -bounces@ovirt.org] On Behalf Of Jean-Pierre Ribeauville Sent: 19 January 2016 10:30 To: users@ovirt.org<mailto:users@ovirt.org> Subject: [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK Hi, When using shutdown from ovirt manager GUI , then on a Linux Guest , I ge= t this massage : System Administrator has initiated shutdown of this Virtual Machine. Virtua= l Machine is shutting down." The system is going down for power-off at Tue 2016-01-19 10:32:19 CET! When , via ovirt Python SDK , I use this : api =3D API(url=3DURL, username=3DUSERNAME, password=3DPASSWORD, ca_file=3D= CA_FILE) vm =3D api.vms.get(name=3DVM_NAME) print 'Stopping this VM' vm.stop() Then the Guest is stopped in a 'non -gracefully =BB way. Is it a way to achieve same behavior as via GUI shutdown ? Thx for help. Regards, J.P. Ribeauville P: +33.(0).1.47.17.20.49 . Puteaux 3 Etage 5 Bureau 4 jpribeauville@axway.com<mailto:jpribeauville@axway.com> http://www.axway.com<http://www.axway.com/> P Pensez =E0 l'environnement avant d'imprimer. Please visit our new website at www.pml.ac.uk<http://www.pml.ac.uk> and fol= low us on Twitter @PlymouthMarine Winner of the Environment & Conservation category, the Charity Awards 2014. Plymouth Marine Laboratory (PML) is a company limited by guarantee register= ed in England & Wales, company number 4178503. Registered Charity No. 10912= 22. Registered Office: Prospect Place, The Hoe, Plymouth PL1 3DH, UK. This message is private and confidential. If you have received this message= in error, please notify the sender and remove it from your system. You are= reminded that e-mail communications are not secure and may contain viruses= ; PML accepts no liability for any loss or damage which may be caused by vi= ruses. --_000_1051EFB4D3A1704680C38CCAAC5836D292F02D2EWPTXMAIL2ptxaxw_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> <meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:Webdings; panose-1:5 3 1 2 1 5 9 6 7 3;} @font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman","serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} pre {mso-style-priority:99; mso-style-link:"Pr=E9format=E9 HTML Car"; margin:0cm; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New";} p.MsoAcetate, li.MsoAcetate, div.MsoAcetate {mso-style-priority:99; mso-style-link:"Texte de bulles Car"; margin:0cm; margin-bottom:.0001pt; font-size:8.0pt; font-family:"Tahoma","sans-serif";} p.emailquote, li.emailquote, div.emailquote {mso-style-name:emailquote; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:1.0pt; font-size:12.0pt; font-family:"Times New Roman","serif";} span.EmailStyle18 {mso-style-type:personal; font-family:"Calibri","sans-serif"; color:#1F497D;} span.PrformatHTMLCar {mso-style-name:"Pr=E9format=E9 HTML Car"; mso-style-priority:99; mso-style-link:"Pr=E9format=E9 HTML"; font-family:Consolas;} span.EmailStyle21 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} span.TextedebullesCar {mso-style-name:"Texte de bulles Car"; mso-style-priority:99; mso-style-link:"Texte de bulles"; font-family:"Tahoma","sans-serif";} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"FR" link=3D"blue" vlink=3D"purple"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></= o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D"><o:p> = ;</o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D">By using v= m.shutdown() instead of vm.stop() , for a Windows guest then I got a = graceful shutdown but not on my Linux Guest .<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D"><o:p> = ;</o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D">Strange is= n’t ?<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D"><o:p> = ;</o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D">Regards,<o= :p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D"><o:p> = ;</o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D">J.P.<o:p><= /o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D"><o:p> = ;</o:p></span></p> <div> <div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm = 0cm 0cm"> <p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:"= ;Tahoma","sans-serif"">De :</span></b><span style=3D"fo= nt-size:10.0pt;font-family:"Tahoma","sans-serif""> Simo= n Hallam [mailto:sha@pml.ac.uk] <br> <b>Envoy=E9 :</b> mardi 19 janvier 2016 11:38<br> <b>=C0 :</b> Jean-Pierre Ribeauville<br> <b>Cc :</b> users@ovirt.org<br> <b>Objet :</b> RE: [ovirt-users] Gracefully GUEST shutown via ovirt Py= thon-SDK<o:p></o:p></span></p> </div> </div> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D">Try using = vm.shutdown()</span><span lang=3D"EN-GB"><o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D"> </sp= an><span lang=3D"EN-GB"><o:p></o:p></span></p> <div style=3D"border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm = 4.0pt"> <div> <div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm = 0cm 0cm"> <p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:10.0pt;fo= nt-family:"Tahoma","sans-serif"">From:</span></b><span = lang=3D"EN-US" style=3D"font-size:10.0pt;font-family:"Tahoma",&qu= ot;sans-serif""> <a href=3D"mailto:users-bounces@ovirt.org">users-bounces@ovirt.org</a> [<a = href=3D"mailto:users-bounces@ovirt.org">mailto:users-bounces@ovirt.org</a>] <b>On Behalf Of </b>Jean-Pierre Ribeauville<br> <b>Sent:</b> 19 January 2016 10:30<br> <b>To:</b> <a href=3D"mailto:users@ovirt.org">users@ovirt.org</a><br> <b>Subject:</b> [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK= </span><span lang=3D"EN-GB"><o:p></o:p></span></p> </div> </div> <p class=3D"MsoNormal"><span lang=3D"EN-GB"> <o:p></o:p></span></p> <div> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif"">Hi,</span><span lang=3D"= EN-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif""> </span><span lang= =3D"EN-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif"">When using shutdown from= ovirt manager GUI , then on a Linux Guest , I get this massage= :</span><span lang=3D"EN-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif""> </span><span lang= =3D"EN-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><i><span lang=3D"EN-GB" style=3D"font-size:11.0pt;fo= nt-family:"Calibri","sans-serif"">System Administrator = has initiated shutdown of this Virtual Machine. Virtual Machine is shutting= down."</span></i><span lang=3D"EN-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><i><span lang=3D"EN-GB" style=3D"font-size:11.0pt;fo= nt-family:"Calibri","sans-serif"">The system is going d= own for power-off at Tue 2016-01-19 10:32:19 CET!</span></i><span lang=3D"E= N-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif""> </span><span lang= =3D"EN-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif"">When , via ovirt Python = SDK , I use this :</span><span lang=3D"EN-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif""> </span><span lang= =3D"EN-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><i><span lang=3D"EN-GB" style=3D"font-size:11.0pt;fo= nt-family:"Calibri","sans-serif"">api =3D API(url=3DURL= , username=3DUSERNAME, password=3DPASSWORD, ca_file=3DCA_FILE)</span></i><s= pan lang=3D"EN-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><i><span lang=3D"EN-GB" style=3D"font-size:11.0pt;fo= nt-family:"Calibri","sans-serif""> vm =3D a= pi.vms.get(name=3DVM_NAME)</span></i><span lang=3D"EN-GB"><o:p></o:p></span= p></span></p> </div> <div> <p class=3D"MsoNormal"><i><span lang=3D"EN-GB" style=3D"font-size:11.0pt;fo= nt-family:"Calibri","sans-serif""> &nb= sp; vm.stop()<br> <br> </span></i><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-family:"= ;Calibri","sans-serif"">Then the Guest is stopped in a ̵= 6;non –gracefully =BB way.<br> Is it a way to achieve same behavior as via GUI shutdown ?<br> <br> Thx for help.</span><span lang=3D"EN-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif""> </span><span lang= =3D"EN-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif"">Regards,</span><span lan= g=3D"EN-GB"><o:p></o:p></span></p> </div> <table class=3D"MsoNormalTable" border=3D"0" cellpadding=3D"0" width=3D"152= " style=3D"width:113.7pt;margin-left:5.4pt"> <tbody> <tr> <td style=3D"padding:.75pt .75pt .75pt .75pt"> <p class=3D"MsoNormal"><span style=3D"color:#888888"> </span><o:p></o= :p></p> <div> <p class=3D"MsoNormal"><span style=3D"color:#888888"> </span><o:p></o:= p></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"color:#888888"> </span><o:p></o:= p></p> </div> <div> <p class=3D"MsoNormal"><b><span style=3D"font-size:8.5pt;font-family:"= Arial","sans-serif";color:#888888">J.P. Ribeauville</span></= b><o:p></o:p></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"color:#737373"> </span><o:p></o:= p></p> </div> </td> </tr> <tr> <td style=3D"padding:.75pt .75pt .75pt .75pt"> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:red">P: </span><span style=3D"font-size:8.5pt;font-family:"Arial","s= ans-serif";color:#737373">+33.(0).1.47.17.20.49</span><span style= =3D"font-size:8.5pt;font-family:"Arial","sans-serif";co= lor:red"> </span><o:p></o:p></p> <div> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:#737373">.</span><o:p></o:p></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:#737373">Puteaux 3 Etage 5 Bure= au 4</span><o:p></o:p></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:#737373"> </span><o:p></o:p></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:red"><a href=3D"mailto:jpribeauville@= axway.com"><span style=3D"font-size:9.0pt;font-family:"Calibri",&= quot;sans-serif"">jpribeauville@axway.com</span></a><br> <a href=3D"http://www.axway.com/"><span style=3D"font-size:9.0pt;font-famil= y:"Calibri","sans-serif"">http://www.axway.com</span></= a></span><o:p></o:p></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:#737373"> </span><o:p></o:p></p> </div> </td> </tr> </tbody> </table> <div> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif""> </span><span lang= =3D"EN-GB"><o:p></o:p></span></p> </div> <table class=3D"MsoNormalTable" border=3D"0" cellpadding=3D"0" width=3D"241= " style=3D"width:180.4pt;margin-left:5.4pt"> <tbody> <tr> <td style=3D"padding:.75pt .75pt .75pt .75pt"> <p class=3D"MsoNormal"><span style=3D"font-size:18.0pt;font-family:Webdings= ;color:#888888">P</span><span style=3D"font-size:8.0pt;font-family:"Ca= libri","sans-serif";color:#888888"> </span><span style= =3D"font-size:8.0pt;font-family:"Arial","sans-serif";co= lor:#888888">Pensez =E0 l’environnement avant d’imprimer.</span><o:p></o:p></p> </td> </tr> </tbody> </table> <div> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif""> </span><span lang= =3D"EN-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif""> </span><span lang= =3D"EN-GB"><o:p></o:p></span></p> </div> <div> <p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif""> </span><span lang= =3D"EN-GB"><o:p></o:p></span></p> </div> </div> <pre><span lang=3D"EN-GB"><o:p> </o:p></span></pre> <pre><span lang=3D"EN-GB">Please visit our new website at <a href=3D"http:/= /www.pml.ac.uk">www.pml.ac.uk</a> and follow us on Twitter @PlymouthM= arine<o:p></o:p></span></pre> <pre><span lang=3D"EN-GB"><o:p> </o:p></span></pre> <pre><span lang=3D"EN-GB">Winner of the Environment & Conservation cate= gory, the Charity Awards 2014.<o:p></o:p></span></pre> <pre><span lang=3D"EN-GB"><o:p> </o:p></span></pre> <pre><span lang=3D"EN-GB">Plymouth Marine Laboratory (PML) is a company lim= ited by guarantee registered in England & Wales, company number 4178503= . Registered Charity No. 1091222. Registered Office: Prospect Place, The Ho= e, Plymouth PL1 3DH, UK. <o:p></o:p></span></pre> <pre><span lang=3D"EN-GB"><o:p> </o:p></span></pre> <pre><span lang=3D"EN-GB">This message is private and confidential. If you = have received this message in error, please notify the sender and remove it= from your system. You are reminded that e-mail communications are not secu= re and may contain viruses; PML accepts no liability for any loss or damage= which may be caused by viruses.<o:p></o:p></span></pre> </div> </body> </html> --_000_1051EFB4D3A1704680C38CCAAC5836D292F02D2EWPTXMAIL2ptxaxw_--

On 01/19/2016 11:57 AM, Jean-Pierre Ribeauville wrote:
Hi,
By using vm.shutdown() instead of vm.stop() , for a Windows guest then I got a graceful shutdown but not on my Linux Guest .
Strange isn’t ?
Depending on the Linux variant that you have installed you may need to have the acpid daemon installed and running in order to process correctly the shutdown IRQ.
Regards,
J.P.
*De :*Simon Hallam [mailto:sha@pml.ac.uk] *Envoyé :* mardi 19 janvier 2016 11:38 *À :* Jean-Pierre Ribeauville *Cc :* users@ovirt.org *Objet :* RE: [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK
Try using vm.shutdown()
*From:*users-bounces@ovirt.org <mailto:users-bounces@ovirt.org> [mailto:users-bounces@ovirt.org] *On Behalf Of *Jean-Pierre Ribeauville *Sent:* 19 January 2016 10:30 *To:* users@ovirt.org <mailto:users@ovirt.org> *Subject:* [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK
Hi,
When using shutdown from ovirt manager GUI , then on a Linux Guest , I get this massage :
/System Administrator has initiated shutdown of this Virtual Machine. Virtual Machine is shutting down."/
/The system is going down for power-off at Tue 2016-01-19 10:32:19 CET!/
When , via ovirt Python SDK , I use this :
/api = API(url=URL, username=USERNAME, password=PASSWORD, ca_file=CA_FILE)/
/ vm = api.vms.get(name=VM_NAME)/
/ print 'Stopping this VM'/
/ vm.stop()
/Then the Guest is stopped in a ‘non –gracefully » way. Is it a way to achieve same behavior as via GUI shutdown ?
Thx for help.
Regards,
*J.P. Ribeauville*
P: +33.(0).1.47.17.20.49
.
Puteaux 3 Etage 5 Bureau 4
jpribeauville@axway.com <mailto:jpribeauville@axway.com> http://www.axway.com <http://www.axway.com/>
P Pensez à l’environnement avant d’imprimer.
Please visit our new website at www.pml.ac.uk <http://www.pml.ac.uk> and follow us on Twitter @PlymouthMarine
Winner of the Environment & Conservation category, the Charity Awards 2014.
Plymouth Marine Laboratory (PML) is a company limited by guarantee registered in England & Wales, company number 4178503. Registered Charity No. 1091222. Registered Office: Prospect Place, The Hoe, Plymouth PL1 3DH, UK.
This message is private and confidential. If you have received this message in error, please notify the sender and remove it from your system. You are reminded that e-mail communications are not secure and may contain viruses; PML accepts no liability for any loss or damage which may be caused by viruses.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.

On Jan 19, 2016, at 5:59 PM, Juan Hern=E1ndez <jhernand@redhat.com> = wrote: =20 On 01/19/2016 11:57 AM, Jean-Pierre Ribeauville wrote:
Hi, =20 =20 =20 By using vm.shutdown() instead of vm.stop() , for a Windows guest =
--Apple-Mail=_3EEF4997-9432-4D45-BAB0-FF669E881A16 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 then
I got a graceful shutdown but not on my Linux Guest . =20 =20 =20 Strange isn=92t ? =20 =20 Depending on the Linux variant that you have installed you may need to have the acpid daemon installed and running in order to process correctly the shutdown IRQ.
=20
=20 =20 Regards, =20 =20 =20 J.P. =20 =20 =20 *De :*Simon Hallam [mailto:sha@pml.ac.uk] *Envoy=E9 :* mardi 19 janvier 2016 11:38 *=C0 :* Jean-Pierre Ribeauville *Cc :* users@ovirt.org *Objet :* RE: [ovirt-users] Gracefully GUEST shutown via ovirt = Python-SDK =20 =20 =20 Try using vm.shutdown() =20 =20 =20 *From:*users-bounces@ovirt.org <mailto:users-bounces@ovirt.org> [mailto:users-bounces@ovirt.org <mailto:users-bounces@ovirt.org>] *On = Behalf Of *Jean-Pierre Ribeauville *Sent:* 19 January 2016 10:30 *To:* users@ovirt.org <mailto:users@ovirt.org> = <mailto:users@ovirt.org <mailto:users@ovirt.org>> *Subject:* [ovirt-users] Gracefully GUEST shutown via ovirt = Python-SDK =20 =20 =20 Hi, =20 =20 =20 When using shutdown from ovirt manager GUI , then on a Linux Guest = , I get this massage : =20 =20 =20 /System Administrator has initiated shutdown of this Virtual Machine. Virtual Machine is shutting down."/ =20 /The system is going down for power-off at Tue 2016-01-19 10:32:19 = CET!/ =20 =20 =20 When , via ovirt Python SDK , I use this : =20 =20 =20 /api =3D API(url=3DURL, username=3DUSERNAME, password=3DPASSWORD, = ca_file=3DCA_FILE)/ =20 / vm =3D api.vms.get(name=3DVM_NAME)/ =20 / print 'Stopping this VM'/ =20 / vm.stop() =20 /Then the Guest is stopped in a =91non =96gracefully =BB way. Is it a way to achieve same behavior as via GUI shutdown ? =20 Thx for help. =20 =20 =20 Regards, =20 =20 =20 =20 =20 =20 =20 *J.P. Ribeauville* =20 =20 =20 P: +33.(0).1.47.17.20.49 =20 . =20 Puteaux 3 Etage 5 Bureau 4 =20 =20 =20 jpribeauville@axway.com <mailto:jpribeauville@axway.com> = <mailto:jpribeauville@axway.com <mailto:jpribeauville@axway.com>> http://www.axway.com <http://www.axway.com/> <http://www.axway.com/ = <http://www.axway.com/>> =20 =20 =20 =20 =20 P Pensez =E0 l=92environnement avant d=92imprimer. =20 =20 =20 =20 =20 =20 =20 =20 =20 Please visit our new website at www.pml.ac.uk <http://www.pml.ac.uk/> = <http://www.pml.ac.uk <http://www.pml.ac.uk/>> and follow us on Twitter @PlymouthMarine =20 =20 =20 Winner of the Environment & Conservation category, the Charity Awards =
=20 =20 =20 Plymouth Marine Laboratory (PML) is a company limited by guarantee registered in England & Wales, company number 4178503. Registered Charity No. 1091222. Registered Office: Prospect Place, The Hoe, Plymouth PL1 3DH, UK. =20 =20 =20 This message is private and confidential. If you have received this message in error, please notify the sender and remove it from your system. You are reminded that e-mail communications are not secure = and may contain viruses; PML accepts no liability for any loss or damage which may be caused by viruses. =20 =20 =20 _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users =20 =20 =20 --=20 Direcci=F3n Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, =
Or have the ovirt guest agent running - Which handles the shutdowns and = reboots too=20 2014. planta
3=BAD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid =96 C.I.F. B82657941 - Red Hat = S.L. _______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users = <http://lists.ovirt.org/mailman/listinfo/users>
--Apple-Mail=_3EEF4997-9432-4D45-BAB0-FF669E881A16 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div = class=3D"">On Jan 19, 2016, at 5:59 PM, Juan Hern=E1ndez <<a = href=3D"mailto:jhernand@redhat.com" class=3D"">jhernand@redhat.com</a>>= wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><span= style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px; float: none; display: inline = !important;" class=3D"">On 01/19/2016 11:57 AM, Jean-Pierre Ribeauville = wrote:</span><br style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; orphans: auto; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; widows: auto; = word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><blockquote= type=3D"cite" style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; orphans: auto; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; widows: auto; = word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D"">Hi,<br = class=3D""><br class=3D""><br class=3D""><br class=3D"">By using = vm.shutdown() instead of vm.stop() , for a Windows guest then<br = class=3D"">I got a graceful shutdown but not on my Linux Guest .<br = class=3D""><br class=3D""><br class=3D""><br class=3D"">Strange isn=92t = ?<br class=3D""><br class=3D""></blockquote><br style=3D"font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" = class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; orphans: auto; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; widows: auto; = word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: = inline !important;" class=3D"">Depending on the Linux variant that you = have installed you may need to</span><br style=3D"font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" = class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; orphans: auto; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; widows: auto; = word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: = inline !important;" class=3D"">have the acpid daemon installed and = running in order to process</span><br style=3D"font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant: normal; font-weight: = normal; letter-spacing: normal; orphans: auto; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; widows: = auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><span= style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px; float: none; display: inline = !important;" class=3D"">correctly the shutdown IRQ.</span><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D""></div></blockquote><div><br = class=3D""></div>Or have the ovirt guest agent running - Which handles = the shutdowns and reboots too </div><div><br = class=3D""></div><div><blockquote type=3D"cite" class=3D""><div = class=3D""><br style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; orphans: auto; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; widows: auto; = word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><blockquote= type=3D"cite" style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; orphans: auto; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; widows: auto; = word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><br = class=3D""><br class=3D"">Regards,<br class=3D""><br class=3D""><br = class=3D""><br class=3D"">J.P.<br class=3D""><br class=3D""><br = class=3D""><br class=3D"">*De :*Simon Hallam [<a = href=3D"mailto:sha@pml.ac.uk" class=3D"">mailto:sha@pml.ac.uk</a>]<br = class=3D"">*Envoy=E9 :* mardi 19 janvier 2016 11:38<br class=3D"">*=C0 = :* Jean-Pierre Ribeauville<br class=3D"">*Cc :* <a = href=3D"mailto:users@ovirt.org" class=3D"">users@ovirt.org</a><br = class=3D"">*Objet :* RE: [ovirt-users] Gracefully GUEST shutown via = ovirt Python-SDK<br class=3D""><br class=3D""><br class=3D""><br = class=3D"">Try using vm.shutdown()<br class=3D""><br class=3D""><br = class=3D""><br class=3D"">*From:*<a = href=3D"mailto:users-bounces@ovirt.org" = class=3D"">users-bounces@ovirt.org</a> <<a = href=3D"mailto:users-bounces@ovirt.org" = class=3D"">mailto:users-bounces@ovirt.org</a>><br class=3D"">[<a = href=3D"mailto:users-bounces@ovirt.org" = class=3D"">mailto:users-bounces@ovirt.org</a>] *On Behalf Of = *Jean-Pierre Ribeauville<br class=3D"">*Sent:* 19 January 2016 10:30<br = class=3D"">*To:*<span class=3D"Apple-converted-space"> </span><a = href=3D"mailto:users@ovirt.org" class=3D"">users@ovirt.org</a><span = class=3D"Apple-converted-space"> </span><<a = href=3D"mailto:users@ovirt.org" = class=3D"">mailto:users@ovirt.org</a>><br class=3D"">*Subject:* = [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK<br = class=3D""><br class=3D""><br class=3D""><br class=3D"">Hi,<br = class=3D""><br class=3D""><br class=3D""><br class=3D"">When using = shutdown from ovirt manager GUI , then on a Linux Guest , = I<br class=3D"">get this massage :<br class=3D""><br class=3D""><br = class=3D""><br class=3D"">/System Administrator has initiated shutdown = of this Virtual Machine.<br class=3D"">Virtual Machine is shutting = down."/<br class=3D""><br class=3D"">/The system is going down for = power-off at Tue 2016-01-19 10:32:19 CET!/<br class=3D""><br = class=3D""><br class=3D""><br class=3D"">When , via ovirt Python SDK , I = use this :<br class=3D""><br class=3D""><br class=3D""><br = class=3D"">/api =3D API(url=3DURL, username=3DUSERNAME, = password=3DPASSWORD, ca_file=3DCA_FILE)/<br class=3D""><br class=3D"">/ = vm =3D api.vms.get(name=3DVM_NAME)/<br class=3D""><br = class=3D"">/ print 'Stopping this VM'/<br = class=3D""><br class=3D"">/ vm.stop()<br = class=3D""><br class=3D"">/Then the Guest is stopped in a =91non = =96gracefully =BB way.<br class=3D"">Is it a way to achieve same = behavior as via GUI shutdown ?<br class=3D""><br class=3D"">Thx for = help.<br class=3D""><br class=3D""><br class=3D""><br = class=3D"">Regards,<br class=3D""><br class=3D""><br class=3D""><br = class=3D""><br class=3D""><br class=3D""><br class=3D""><br = class=3D"">*J.P. Ribeauville*<br class=3D""><br class=3D""><br = class=3D""><br class=3D"">P: +33.(0).1.47.17.20.49<br class=3D""><br = class=3D"">.<br class=3D""><br class=3D"">Puteaux 3 Etage 5 Bureau = 4<br class=3D""><br class=3D""><br class=3D""><br class=3D""><a = href=3D"mailto:jpribeauville@axway.com" = class=3D"">jpribeauville@axway.com</a><span = class=3D"Apple-converted-space"> </span><<a = href=3D"mailto:jpribeauville@axway.com" = class=3D"">mailto:jpribeauville@axway.com</a>><br class=3D""><a = href=3D"http://www.axway.com/" class=3D"">http://www.axway.com</a><span = class=3D"Apple-converted-space"> </span><<a = href=3D"http://www.axway.com/" class=3D"">http://www.axway.com/</a>><br= class=3D""><br class=3D""><br class=3D""><br class=3D""><br = class=3D""><br class=3D"">P Pensez =E0 l=92environnement avant = d=92imprimer.<br class=3D""><br class=3D""><br class=3D""><br = class=3D""><br class=3D""><br class=3D""><br class=3D""><br class=3D""><br= class=3D""><br class=3D"">Please visit our new website at<span = class=3D"Apple-converted-space"> </span><a = href=3D"http://www.pml.ac.uk/" class=3D"">www.pml.ac.uk</a><span = class=3D"Apple-converted-space"> </span><<a = href=3D"http://www.pml.ac.uk/" class=3D"">http://www.pml.ac.uk</a>> = and<br class=3D"">follow us on Twitter @PlymouthMarine<br = class=3D""><br class=3D""><br class=3D""><br class=3D"">Winner of the = Environment & Conservation category, the Charity Awards 2014.<br = class=3D""><br class=3D""><br class=3D""><br class=3D"">Plymouth Marine = Laboratory (PML) is a company limited by guarantee<br = class=3D"">registered in England & Wales, company number 4178503. = Registered<br class=3D"">Charity No. 1091222. Registered Office: = Prospect Place, The Hoe,<br class=3D"">Plymouth PL1 3DH, UK.<br = class=3D""><br class=3D""><br class=3D""><br class=3D"">This message is = private and confidential. If you have received this<br class=3D"">message = in error, please notify the sender and remove it from your<br = class=3D"">system. You are reminded that e-mail communications are not = secure and<br class=3D"">may contain viruses; PML accepts no liability = for any loss or damage<br class=3D"">which may be caused by viruses.<br = class=3D""><br class=3D""><br class=3D""><br = class=3D"">_______________________________________________<br = class=3D"">Users mailing list<br class=3D""><a = href=3D"mailto:Users@ovirt.org" class=3D"">Users@ovirt.org</a><br = class=3D"">http://lists.ovirt.org/mailman/listinfo/users<br class=3D""><br= class=3D""></blockquote><br style=3D"font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; orphans: auto; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; widows: auto; = word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: = none; display: inline !important;" class=3D"">--<span = class=3D"Apple-converted-space"> </span></span><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: = none; display: inline !important;" class=3D"">Direcci=F3n Comercial: = C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta</span><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: = none; display: inline !important;" class=3D"">3=BAD, 28016 Madrid, = Spain</span><br style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; orphans: auto; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; widows: auto; = word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><span = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px; float: none; display: inline = !important;" class=3D"">Inscrita en el Reg. Mercantil de Madrid =96 = C.I.F. B82657941 - Red Hat S.L.</span><br style=3D"font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" = class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; orphans: auto; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; widows: auto; = word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: = inline !important;" = class=3D"">_______________________________________________</span><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: = none; display: inline !important;" class=3D"">Users mailing = list</span><br style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; orphans: auto; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; widows: auto; = word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><a = href=3D"mailto:Users@ovirt.org" style=3D"font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant: normal; font-weight: = normal; letter-spacing: normal; orphans: auto; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; widows: = auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" = class=3D"">Users@ovirt.org</a><br style=3D"font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant: normal; font-weight: = normal; letter-spacing: normal; orphans: auto; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; widows: = auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><a = href=3D"http://lists.ovirt.org/mailman/listinfo/users" = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" = class=3D"">http://lists.ovirt.org/mailman/listinfo/users</a></div></blockq= uote></div><br class=3D""></body></html>= --Apple-Mail=_3EEF4997-9432-4D45-BAB0-FF669E881A16--
participants (4)
-
Jean-Pierre Ribeauville
-
Juan Hernández
-
Simon Hallam
-
Vinzenz Feenstra