<div dir="ltr"><div>When a VM is shutdown without using nova API (kvm process down, libvirt failed to start instance on host boot, etc.), Openstack "freezes" the shutdown power state in the DB, and then re-applies it if the VM is not started via API, e.g.:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div># virsh shutdown <domain></div><div><br></div><div>[ sync power states -> stop instance via API ], because hypervisor rules ("power_state is always updated from hypervisor to db")</div><div><br></div><div># virsh startup <domain></div><div><br></div><div>[ sync power states -> stop instance via API ], because database rules</div></blockquote><div><br></div><div><br></div><div>I understand this behaviour is "by design", but I'm confused about the asymmetry: if VM is shutdown without using nova API, should I not be able to start it up again without nova API?</div><div><br></div><div>This is a common scenario in power outages or failures external to Openstack, when VMs fail to start and we need to start them up again using virsh.</div><div><br></div><div>Thanks!</div><div><br></div></div>