
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--