vm reboot in openstack

asked 2019-01-16 08:19:22 -0600

lelunicu gravatar image

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

edit retag flag offensive close merge delete


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.

eblock gravatar imageeblock ( 2019-01-17 02:00:18 -0600 )edit

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.

eblock gravatar imageeblock ( 2019-01-17 02:03:04 -0600 )edit

I don't know exactly how the soft reboot works or what timeout it has configured, but I would try that first, of course.

eblock gravatar imageeblock ( 2019-01-17 02:04:09 -0600 )edit