Red Hat Bugzilla – Bug 1001726
Engine VM stays down after (second) reboot. Not coming UP.
Last modified: 2015-09-22 09:09 EDT
Created attachment 791066 [details]
Description of problem:
ovirt-hosted-engine setup creates a VM,user chooses boot device for this VM,connects to it using remote-viewer,installs OS on it and VM goes for reboot in order to come up from hard disk. And it comes up successfully. Till now everything is ok. If,for some reason, user will need to reboot VM again (after it comes up from HD), VM goes to shut down instead of reboot. It stays in down state.
vdsCLient shows that VM exist but it's DOWN.
should this be part of setup or part of ha service?
(In reply to Itamar Heim from comment #1)
> should this be part of setup or part of ha service?
In this part the HA service still doesn't kick in, so it should be a part of the setup phase. Personally, I didn't test that, as I didn't need another reboot, but I understand why such a reboot could be required.
The Hosted Engine VM reboot is converted to destroy by design: it is under the hostedengine VDSM hook control, adding the destroy action to 'on_poweroff', 'on_reboot' and 'on_crash' events.
It has been introduced as workaround for moving from boot from pxe/cdrom to boot from disk and left enabled because we tought that the vm start after a reboot command should be done by the HA service.
At this stage however the HA service is not yet active.
There is a dialog message in engine setup that says:
If you need to reboot the VM you can set a temporary password using the command:
We can solve this issue explaining better how to reboot the VM ( adding a note to use hosted-engine --vm-start before --add-console-password )
or disabling the hook after boot from disk and re-enabling it before starting HA daemons. However this will not boot the VM if the user shutdown it instead of rebooting it.
Another solution may be polling the vm status while waiting for the user input (press enter when finished) but this will introduce extra complexity in the setup.
I think that the dialog change should be enough.
(In reply to Sandro Bonazzola from comment #3)
> I think that the dialog change should be enough.
Dialog updated with upstream patch 18909.
If you need to reboot the VM you will need to start it manually using the command:
You can then set a temporary password using the command:
patch merged upstream master.
This bug is currently attached to errata RHBA-2013:15257. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to
minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.
Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:
* Cause: What actions or circumstances cause this bug to present.
* Consequence: What happens when the bug presents.
* Fix: What was done to fix the bug.
* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')
Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.
For further details on the Cause, Consequence, Fix, Result format please refer to:
Thanks in advance.
hosted engine is a new package, does not need errata for specific bugs during its development.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.