vm reboot in openstack
hi, when i must use soft and hard reboot? in the case when the application that run into VM hang or if the VM hang? I must try first to soft reboot and if nor work to try hard reboot? with nova reboot id_of_vm
i can use virsh shutdown id or kill.right? tnx
The best way is if the reboot or shutdown is initiated by the vm, not the hypervisor. But if the application makes the vm unresponsive, there may be no other choice. I recommend to use the openstack tools for this, otherwise you may end up with inconsistencies regarding vm status.
If you kill it with virsh openstack may still believe the vm is active, or other scenarios. So yes, use
openstack server reboot --soft <server>
fist, and--hard
if that won't work. Hard reboot has a 60 seconds timeout, so if the instance doesn't respond it will be killed by openstack.I don't know exactly how the soft reboot works or what timeout it has configured, but I would try that first, of course.