<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi</div>
<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.</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><br>
</div>
<div><br>
</div>
<div>How do we ensure Vms come back up on a graceful reboot</div>
<div><br>
</div>
<div>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</div>
<div><br>
</div>
<div>This is with Newton code base of nova</div>
<div><br>
</div>
<div><br>
</div>
<div>Ajay</div>
<div><br>
</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</body>
</html>