<div><span style="background-color:#ffffff;color:#000000;float:none;font-family:'trebuchet ms' , sans-serif;font-size:15px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">[instance: 28cd861c-ef15-444a-a902-9cac643c72b5] </span><strong style="background-color:#ffffff;color:#000000;font-family:'trebuchet ms' , sans-serif;font-size:15px;font-style:normal;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Received unexpected event network-vif-unplugged-e97839a1-bbc4-4d26-af30-768ca3630ce9 for instance with vm_state active and task_state None.</strong></div><div> </div><div> </div><div>Clearly the network virtual interface was somehow removed or unplugged. What you should look into is OVS or whatever the network solution you are using.</div><div> </div><div> </div><div>18.11.2020, 01:44, "Deepa KR" <deepa.kr@fingent.com>:</div><blockquote><div><div>&#xfeff;<font face="trebuchet ms, sans-serif"> Hi All</font><div> </div><div><font face="trebuchet ms, sans-serif">We have a Openstack setup with the <strong>Ussuri Version</strong> and I am <strong>regularly facing auto shutdown of a few VMs (ubuntu16.04) randomly</strong> .</font></div><div><font face="trebuchet ms, sans-serif">If I restart then the instance is back .</font></div><div> </div><div><font face="trebuchet ms, sans-serif">From logs I was able to see the messages below .</font></div><div> </div><div><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] <strong>Received unexpected event network-vif-unplugged-e97839a1-bbc4-4d26-af30-768ca3630ce9 for instance with vm_state active and task_state None.</strong></font></div><div><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] <strong>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.</strong><br />syslog:Nov 13 07:01:07 fgshwbucehyp04 nova-compute[<a href="tel:2680204" rel="noopener noreferrer">2680204</a>]: 2020-11-13 07:01:07.684 <a href="tel:2680204" rel="noopener noreferrer">2680204</a> WARNING nova.compute.manager [req-8261f607-4f1e-459d-85d4-e269694dd477 - - - - -] [instance: 28cd861c-ef15-444a-a902-9cac643c72b5] <strong>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</strong><br />  nova.compute.manager [req-8261f607-4f1e-459d-85d4-e269694dd477 - - - - -] [instance: 28cd861c-ef15-444a-a902-9cac643c72b5] <strong>Instance is already powered off in the hypervisor when stop is called.</strong></font></div><font face="trebuchet ms, sans-serif"> nova.virt.libvirt.driver [req-8261f607-4f1e-459d-85d4-e269694dd477 - - - - -] [instance: 28cd861c-ef15-444a-a902-9cac643c72b5] <strong>Instance already shutdown.</strong><br /> nova.virt.libvirt.driver [-] [instance: 28cd861c-ef15-444a-a902-9cac643c72b5] <strong>Instance destroyed successfully.</strong><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] <strong>Instance destroyed successfully.</strong></font><div> </div><div><font face="trebuchet ms, sans-serif">I searched a few blogs and forums but couldn't find a solution to it .</font></div><div> </div><div><font face="trebuchet ms, sans-serif">Few mentioned to add <span style="font-style:inherit;white-space:inherit">s<strong>ync_power_state_interval=-1 in </strong></span><span style="color:#242729"><strong>/etc/nova/nova.conf </strong>.But understood that this will help only when nova stops vm.</span></font></div><div><font face="trebuchet ms, sans-serif"><span style="color:#242729">But in this case vm itself is shutting down (</span><strong>Instance shutdown by itself. Calling the stop API</strong>) </font></div><div><font face="trebuchet ms, sans-serif">Also no memory issue in VM nor the hypervisor.</font></div><div><font face="trebuchet ms, sans-serif">Also did apt-get upgrade .</font></div><div> </div><div><font face="trebuchet ms, sans-serif">It would be great if anyone can shed light to this issue.</font></div><div> </div><div><font face="trebuchet ms, sans-serif">Regards,</font></div><div><font face="trebuchet ms, sans-serif">Deepa K R</font></div><br />Sent from my iPhone</div></div></blockquote>