<div dir="ltr"><div dir="auto"><div class="gmail_extra"><div class="gmail_quote">On Apr 25, 2017 2:45 AM, "Ajay Kalambur (akalambu)" <<a href="mailto:akalambu@cisco.com" target="_blank">akalambu@cisco.com</a>> wrote:<br type="attribution"><blockquote class="m_5139051496690555141quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>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.<br></div>
<div>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</div>
<div><br>
</div>
<div>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</div></div></blockquote></div><div class="gmail_extra"><br></div>How are you defining "graceful reboot"?</div><div class="gmail_extra"><br></div><div class="gmail_extra">I am thinking that you may be defining it in a way that implies prior safe shutdown of the guests including setting their state to "power off", in which case restoring them to the prior state before reboot will correctly leave them "power off". I believe this feature is only intended to work with a shutdown of the hypervisor such as occurs when you "shutdown -r now" on the hypervisor without first shutting down the guests.</div><div class="gmail_extra"><br></div></div>
</div>