[openstack-dev] [nova] Compute Node restart

Ajay Kalambur (akalambu) akalambu at cisco.com
Tue Apr 25 06:44:18 UTC 2017


Hi
I see that when a host is gracefully rebooted nova-compute receives a lifecycle event to shutdown the instance and it updates the database with the state set to SHUTOFF.
Now when compute node reboot and libvirt brings the VM back up nova checks its database and issues stop api and hence shuts down the VM

So even though resume guest state on reboot is set it does not work. Why does nova compute ignore the lifecycle event from libvirt saying bring up the VM and reconciles with database


How do we ensure Vms come back up on a graceful reboot

Note on a non graceful reboot libvirt does not send any lifecycle event to nova and hence nova database always shows the VM in Running State

This is with Newton code base of nova


Ajay

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170425/6aa4b255/attachment.html>


More information about the OpenStack-dev mailing list