Re: [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK

2016-01-20 Thread Vinzenz Feenstra

> On Jan 19, 2016, at 5:59 PM, Juan Hernández  wrote:
> 
> 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.

Or have the ovirt guest agent running - Which handles the shutdowns and reboots 
too 

> 
>> 
>> 
>> Regards,
>> 
>> 
>> 
>> J.P.
>> 
>> 
>> 
>> *De :*Simon Hallam [mailto:s...@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-boun...@ovirt.org <mailto:users-boun...@ovirt.org>
>> [mailto:users-boun...@ovirt.org <mailto:users-boun...@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
>> 
>> 
>> 
>> 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
>> 
>> 
>> 
>> jpribeauvi...@axway.com <mailto:jpribeauvi...@axway.com> 
>> <mailto:jpribeauvi...@axway.com <mailto:jpribeauvi...@axway.com>>
>> http://www.axway.com <http://www.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/> 
>> <http://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.
> ___
> Users mailing list
> Users@ovirt.org <mailto:Users@ovirt.org>
> http://lists.ovirt.org/mailman/listinfo/users 
> <http://lists.ovirt.org/mailman/listinfo/users>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK

2016-01-19 Thread Juan Hernández
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:s...@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-boun...@ovirt.org <mailto:users-boun...@ovirt.org>
> [mailto:users-boun...@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
> 
>  
> 
> jpribeauvi...@axway.com <mailto:jpribeauvi...@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.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK

2016-01-19 Thread Jean-Pierre Ribeauville
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 ?

Regards,

J.P.

De : Simon Hallam [mailto:s...@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-boun...@ovirt.org<mailto:users-boun...@ovirt.org> 
[mailto:users-boun...@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

jpribeauvi...@axway.com<mailto:jpribeauvi...@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


Re: [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK

2016-01-19 Thread Simon Hallam
Try using vm.shutdown()

From: users-boun...@ovirt.org [mailto:users-boun...@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 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

jpribeauvi...@axway.com<mailto:jpribeauvi...@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 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


[ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK

2016-01-19 Thread Jean-Pierre Ribeauville
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

jpribeauvi...@axway.com
http://www.axway.com


* Pensez à l'environnement avant d'imprimer.



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users