Bug 1001726 - Engine VM stays down after (second) reboot. Not coming UP.
Summary: Engine VM stays down after (second) reboot. Not coming UP.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.3.0
Assignee: Sandro Bonazzola
QA Contact: Leonid Natapov
URL:
Whiteboard: integration
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-27 15:17 UTC by Leonid Natapov
Modified: 2015-09-22 13:09 UTC (History)
7 users (show)

Fixed In Version: ovirt-hosted-engine-setup-1.0.0-0.4.beta.el6ev
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-21 16:52:52 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vdsm log (1.51 MB, text/plain)
2013-08-27 15:17 UTC, Leonid Natapov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0083 0 normal SHIPPED_LIVE new package: ovirt-hosted-engine-setup 2014-01-21 21:42:22 UTC
oVirt gerrit 18909 0 None None None Never

Description Leonid Natapov 2013-08-27 15:17:11 UTC
Created attachment 791066 [details]
vdsm log

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.

vdsm.log attached.

Comment 1 Itamar Heim 2013-08-28 06:18:01 UTC
should this be part of setup or part of ha service?

Comment 2 Oved Ourfali 2013-08-28 06:23:50 UTC
(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.

Comment 3 Sandro Bonazzola 2013-09-03 07:28:50 UTC
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:

host-deploy --add-console-password=<password>'

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.

Comment 4 Sandro Bonazzola 2013-09-05 16:01:53 UTC
(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:
 hosted-engine --vm-start
 You can then set a temporary password using the command:
 hosted-engine --add-console-password=<password>'

Comment 5 Sandro Bonazzola 2013-09-12 09:28:41 UTC
patch merged upstream master.

Comment 7 Leonid Natapov 2013-10-17 10:46:41 UTC
fixed. ovirt-hosted-engine-setup-1.0.0-0.5.2.beta1.local.el6.noarch

Comment 8 Charlie 2013-11-28 01:19:45 UTC
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:

https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes 

Thanks in advance.

Comment 9 Sandro Bonazzola 2013-12-05 11:03:34 UTC
hosted engine is a new package, does not need errata for specific bugs during its development.

Comment 10 errata-xmlrpc 2014-01-21 16:52:52 UTC
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.

http://rhn.redhat.com/errata/RHBA-2014-0083.html


Note You need to log in before you can comment on or make changes to this bug.