Bug 1860927 - Parsing the output from "hosted-engine --vm-start" is wrong
Summary: Parsing the output from "hosted-engine --vm-start" is wrong
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-hosted-engine-ha
Classification: oVirt
Component: Agent
Version: 2.3.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.4.3
: ---
Assignee: Asaf Rachmani
QA Contact: Nikolai Sednev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-27 13:15 UTC by Asaf Rachmani
Modified: 2020-11-11 06:39 UTC (History)
3 users (show)

Fixed In Version: ovirt-hosted-engine-ha-2.4.5
Clone Of:
Environment:
Last Closed: 2020-11-11 06:39:39 UTC
oVirt Team: Integration
Embargoed:
sbonazzo: ovirt-4.4?
sbonazzo: planning_ack?
sbonazzo: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 110394 0 master MERGED agent: Change the string maching 2020-10-11 09:43:37 UTC

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.


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