Bug 1220119

Summary: Log entries should explain why HE agent try to start vms on both hosts
Product: Red Hat Enterprise Virtualization Manager Reporter: rhev-integ
Component: ovirt-hosted-engine-haAssignee: Roman Mohr <rmohr>
Status: CLOSED ERRATA QA Contact: Artyom <alukiano>
Severity: high Docs Contact:
Priority: medium    
Version: 3.5.0CC: alukiano, dfediuck, ecohen, eedri, gklein, istein, juwu, lsurette, msivak, rmohr, sbonazzo, sherold
Target Milestone: ovirt-3.5.6Keywords: Reopened, Triaged, ZStream
Target Release: 3.5.6   
Hardware: x86_64   
OS: Linux   
Whiteboard: sla
Fixed In Version: ovirt-hosted-engine-ha-1.2.7.2-1 Doc Type: Bug Fix
Doc Text:
In self-hosted engine, when the Manager virtual machine crashes, it will be restarted on another host. However, since all hosts would attempt to restart the Manager virtual machine but only one can succeed, errors returned on the hosts that failed to restart the Manager virtual machine. Though the error is dismissed when the synchronization is complete, this could be confusing to users. This update adds a proper log message to the hosts that failed to restart the Manager virtual machine and errors are no longer returned.
Story Points: ---
Clone Of: 1150087 Environment:
Last Closed: 2015-10-26 21:39:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1150087    
Bug Blocks: 1221053    

Comment 1 Eyal Edri 2015-05-13 07:59:07 UTC
moving to modified according to 1.2 merged patch.
please make sure to build and prepare errata for 3.5.3 asap.

Comment 2 Martin Sivák 2015-05-13 08:39:27 UTC
Sandro is doing the builds. I will prepare errata soon.

Comment 4 Artyom 2015-05-31 14:55:00 UTC
Checked on ovirt-hosted-engine-ha-1.2.6-2.el7ev.noarch

Run scenario above, but do not see any explanation logger.
Just want to clarify, from code, flow will never enter to except part, because action start VM via vdsClient success, vdsm start vm, after failed to acquire lock and destroy vm.

Comment 7 Artyom 2015-10-19 17:49:07 UTC
Verified on ovirt-hosted-engine-ha-1.2.7.2-1.el7ev.noarch

Can see message under log and under Engine status:
"Storage of VM is locked. Is another host already starting the VM?"

Comment 8 Julie 2015-10-21 22:19:42 UTC
If this bug requires doc text for errata release, please provide draft text in the doc text field in the following format:

Cause:
Consequence:
Fix:
Result:

The documentation team will review, edit, and approve the text.

If this bug does not require doc text, please set the 'requires_doc_text' flag to -.

Comment 9 Julie 2015-10-23 02:39:18 UTC
Thanks Roman.

Comment 11 errata-xmlrpc 2015-10-26 21:39:23 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.

https://rhn.redhat.com/errata/RHBA-2015-1939.html