Re: [openstack-dev] [libvrit] Can QEMU or LIBVIRT know VM is powering-off

2018-02-21 Thread Chris Friesen

On 02/21/2018 03:19 PM, Kwan, Louie wrote:

When turning off a VM by doing nova stop,  the Status and Task State is there
for Nova. But can Libvirt / qemu programmatically figure out the ‘Task State’
that the VM is trying to powering-off ?.

For libvirt, it seems only know the “Power State”? Anyway to read the
“powering-off” info?


The fact that you have asked nova to power off the instance means nothing to 
libvirt/qemu.


In the "nova stop" case nova will do some housekeeping stuff, optionally tell 
libvirt to shutdown the domain cleanly, then tell libvirt to destroy the domain, 
then do more housekeeping stuff.


Chris


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [libvrit] Can QEMU or LIBVIRT know VM is powering-off

2018-02-21 Thread Kwan, Louie
When turning off a VM by doing nova stop,  the Status and Task State is there 
for Nova. But can Libvirt / qemu programmatically figure out the 'Task State' 
that the VM is trying to powering-off ?.



For libvirt, it seems only know the "Power State"? Anyway to read the 
"powering-off" info?





+--+--++--+-++



| ID   | Name | Status | Task State   | Power 
State | Networks   |



+--+--++--+-++



| 09d65498-b1fe-4a99-9f43-4c365a79ff36 | c1   | ACTIVE | -| Running 
| public=172.24.4.6, 2001:db8::3 |



| 565da9ba-3c0c-4087-83ca-32a5a1b00a55 | iim1 | ACTIVE | powering-off | Running 
| public=172.24.4.5, 2001:db8::7 |



+--+--++--+-++



+--+--+-++-++



| ID   | Name | Status  | Task State | Power 
State | Networks   |



+--+--+-++-++



| 09d65498-b1fe-4a99-9f43-4c365a79ff36 | c1   | ACTIVE  | -  | Running  
   | public=172.24.4.6, 2001:db8::3 |



| 565da9ba-3c0c-4087-83ca-32a5a1b00a55 | iim1 | SHUTOFF | -  | Shutdown 
   | public=172.24.4.5, 2001:db8::7 |







Thanks.



Louie
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev