This patch makes it possible to reboot an instance that is in rescue mode.
It causes the reboot action to search first for rescue mode VM (the
normal VMs name plus '-rescue') .. if it can't find it, it does a reboot
of the normal VM. If it finds the rescue one first, it'll reboot the
rescue instance.
If there is more than one VM named 'myvm-rescue', it'll raise an
exception just like it did if there were more than one VM named 'myvm'.
Reviewed: https:/ /review. openstack. org/27107 github. com/openstack/ nova/commit/ b4dc932c2a10c3d 9c678cf759f9423 7504661348
Committed: http://
Submitter: Jenkins
Branch: master
commit b4dc932c2a10c3d 9c678cf759f9423 7504661348
Author: Matthew Sherborne <email address hidden>
Date: Thu Apr 18 17:51:52 2013 +1000
Can now reboot rescued instances in xenapi
This patch makes it possible to reboot an instance that is in rescue mode.
It causes the reboot action to search first for rescue mode VM (the
normal VMs name plus '-rescue') .. if it can't find it, it does a reboot
of the normal VM. If it finds the rescue one first, it'll reboot the
rescue instance.
If there is more than one VM named 'myvm-rescue', it'll raise an
exception just like it did if there were more than one VM named 'myvm'.
Helps with bug: 1170237
Change-Id: I1858d86bf93546 618eeaaec92d856 f5236f3f090