Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1860927

Summary: Parsing the output from "hosted-engine --vm-start" is wrong
Product: [oVirt] ovirt-hosted-engine-ha Reporter: Asaf Rachmani <arachman>
Component: AgentAssignee: Asaf Rachmani <arachman>
Status: CLOSED CURRENTRELEASE QA Contact: Nikolai Sednev <nsednev>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.3.4CC: bugs, mavital, michal.skrivanek
Target Milestone: ovirt-4.4.3Keywords: Triaged, ZStream
Target Release: ---Flags: sbonazzo: ovirt-4.4?
sbonazzo: planning_ack?
sbonazzo: devel_ack+
mavital: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-hosted-engine-ha-2.4.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-11 06:39:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Asaf Rachmani 2020-07-27 13:15:34 UTC
Description of problem:
In ovirt_hosted_engine_ha/agent/hosted_engine.py (in _start_engine_vm function)
The condition statement checks if stdout string starting with "Virtual machine already exists" after "hosted-engine --vm-start" is executed, but "hosted-engine --vm-start" does not print anything starting with this statement when the rc != 0.

Comment 1 Michal Skrivanek 2020-08-26 18:42:33 UTC
too late for 4.4.2

Comment 4 Nikolai Sednev 2020-10-13 14:03:53 UTC
Tested on:
ovirt-engine-setup-4.4.3.6-0.13.el8ev.noarch
ovirt-hosted-engine-setup-2.4.7-2.el8ev.noarch
ovirt-hosted-engine-ha-2.4.5-1.el8ev.noarch
Linux 4.18.0-240.el8.x86_64 #1 SMP Wed Sep 23 05:13:10 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux release 8.3 (Ootpa)

Tried numerous manual migrations using local-maintenance and regularly, shutting down and restarting the engine using ha and manually in global-maintenance, also rebooted ha-host running the engine.
No issues observed starting or migrating the engine.

Feel free to reopen if reproduced during automation.

Comment 5 Sandro Bonazzola 2020-11-11 06:39:39 UTC
This bugzilla is included in oVirt 4.4.3 release, published on November 10th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.3 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.