xenapi: soft reboot should attempt hard reboot on failure
Bug #1422342 reported by
John Garbutt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
When we issue a soft reboot. If it fails we should then do a hard reboot.
This is for consistency with libvirt:
https:/
Changed in nova: | |
assignee: | John Garbutt (johngarbutt) → nobody |
Changed in nova: | |
assignee: | nobody → Radoslaw Smigielski (radoslaw-smigielski) |
assignee: | Radoslaw Smigielski (radoslaw-smigielski) → nobody |
status: | Triaged → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
assignee: | Radoslaw Smigielski (radoslaw-smigielski) → nobody |
Changed in nova: | |
assignee: | nobody → lyanchih (lyanchih) |
Changed in nova: | |
assignee: | lyanchih (lyanchih) → nobody |
assignee: | nobody → lyanchih (lyanchih) |
Changed in nova: | |
assignee: | Chung Chih, Hung (lyanchih) → nobody |
status: | In Progress → Confirmed |
Changed in nova: | |
assignee: | nobody → John Garbutt (johngarbutt) |
status: | Confirmed → In Progress |
To post a comment you must log in.
John, looking on the reboot() function:
def reboot(self, context, instance, network_info, reboot_type,
block_ device_ info=None, bad_volumes_ callback= None)
There is a reboot_type parameter. For XenAPI this param is properly passed to underlying xenapi/ vmops.py which implements the reboot() for Xen.
VMOps class in nova/virt/
So you can have, either proper SOFT or HARD reboot and this looks fine for me.
While in the nova/virt/ libvirt/ driver. py, if reboot_type=='SOFT' fails nova unconditionally
does the hard reboot what can be sometimes unexpected but at the end of the day we
want to reboot the VM.