<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><span></span><font face="trebuchet ms, sans-serif" style="-webkit-text-size-adjust: auto;"> Hi All</font><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif"><br></font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif">We have a Openstack setup with the <b>Ussuri Version</b> and I am <b>regularly facing auto shutdown of a few VMs (ubuntu16.04) randomly</b> .</font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif">If I restart then the instance is back .</font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif"><br></font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif">From logs I was able to see the messages below .</font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif"><br></font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif"> WARNING nova.compute.manager [req-2a21d455-ac04-44aa-b248-4776e5109013 813f3fb52c434e38991bb90aa4771541 10b5279cb6f64ca19871f132a2cee1a3 - default default] [instance: 28cd861c-ef15-444a-a902-9cac643c72b5] <b>Received unexpected event network-vif-unplugged-e97839a1-bbc4-4d26-af30-768ca3630ce9 for instance with vm_state active and task_state None.</b><br></font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif"> INFO nova.compute.manager [-] [instance: 28cd861c-ef15-444a-a902-9cac643c72b5] VM Stopped (Lifecycle Event)<br> INFO nova.compute.manager [req-8261f607-4f1e-459d-85d4-e269694dd477 - - - - -] [instance: 28cd861c-ef15-444a-a902-9cac643c72b5] <b>During _sync_instance_power_state the DB power_state (1) does not match the vm_power_state from the hypervisor (4). Updating power_state in the DB to match the hypervisor.</b><br>syslog:Nov 13 07:01:07 fgshwbucehyp04 nova-compute[<a href="tel:2680204" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="1">2680204</a>]: 2020-11-13 07:01:07.684 <a href="tel:2680204" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="3">2680204</a> WARNING nova.compute.manager [req-8261f607-4f1e-459d-85d4-e269694dd477 - - - - -] [instance: 28cd861c-ef15-444a-a902-9cac643c72b5] <b>Instance shutdown by itself. Calling the stop API. Current vm_state: active, current task_state: None, original DB power_state: 1, current VM power_state: 4</b><br>  nova.compute.manager [req-8261f607-4f1e-459d-85d4-e269694dd477 - - - - -] [instance: 28cd861c-ef15-444a-a902-9cac643c72b5] <b>Instance is already powered off in the hypervisor when stop is called.</b></font></div><font face="trebuchet ms, sans-serif" style="-webkit-text-size-adjust: auto;"> nova.virt.libvirt.driver [req-8261f607-4f1e-459d-85d4-e269694dd477 - - - - -] [instance: 28cd861c-ef15-444a-a902-9cac643c72b5] <b>Instance already shutdown.</b><br> nova.virt.libvirt.driver [-] [instance: 28cd861c-ef15-444a-a902-9cac643c72b5] <b>Instance destroyed successfully.</b><br> nova.compute.manager [req-7a0a0d03-e286-42f0-9e36-38a432f236f3 d9ca03b9d0884d51a26a39b6c82f02eb 304d859c43df4de4944ca5623f7f455c - default default] [instance: 28cd861c-ef15-444a-a902-9cac643c72b5] Get console output<br> nova.virt.libvirt.driver [-] [instance: 28cd861c-ef15-444a-a902-9cac643c72b5] <b>Instance destroyed successfully.</b></font><div style="-webkit-text-size-adjust: auto;"><b><font face="trebuchet ms, sans-serif"><br></font></b></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif">I searched a few blogs and forums but couldn't find a solution to it .</font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif"><br></font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif">Few mentioned to add <span style="font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; white-space: inherit;">s</span><span style="font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; white-space: inherit;"><b>ync_power_state_interval=-1 in </b></span><span style="color: rgb(36, 39, 41);"><b>/etc/nova/nova.conf </b>.But understood that this will help only when nova stops vm.</span></font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif"><span style="color: rgb(36, 39, 41);">But in this case vm itself is shutting down (</span><b>Instance shutdown by itself. Calling the stop API</b>) </font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif">Also no memory issue in VM nor the hypervisor.</font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif">Also did apt-get upgrade .</font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif"><br></font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif">It would be great if anyone can shed light to this issue.</font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif"><br></font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif">Regards,</font></div><div style="-webkit-text-size-adjust: auto;"><font face="trebuchet ms, sans-serif">Deepa K R</font></div><span></span><br><span>Sent from my iPhone</span><br></div></body></html>