[ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK
Juan Hernández
jhernand at redhat.com
Tue Jan 19 11:59:19 EST 2016
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 at pml.ac.uk]
> *Envoyé :* mardi 19 janvier 2016 11:38
> *À :* Jean-Pierre Ribeauville
> *Cc :* users at ovirt.org
> *Objet :* RE: [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK
>
>
>
> Try using vm.shutdown()
>
>
>
> *From:*users-bounces at ovirt.org <mailto:users-bounces at ovirt.org>
> [mailto:users-bounces at ovirt.org] *On Behalf Of *Jean-Pierre Ribeauville
> *Sent:* 19 January 2016 10:30
> *To:* users at ovirt.org <mailto:users at 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 at axway.com <mailto:jpribeauville at 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 at 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.
More information about the Users
mailing list