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

Kwan, Louie Louie.Kwan at windriver.com
Wed Feb 21 21:19:42 UTC 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20180221/5a403eaa/attachment.html>


More information about the OpenStack-dev mailing list