Bug 2105781 - hosted-engine --clean-metadata fails because ovirt-ha-agent has changed location
Summary: hosted-engine --clean-metadata fails because ovirt-ha-agent has changed location
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 4.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.5.2
: 4.5.2
Assignee: Asaf Rachmani
QA Contact: Nikolai Sednev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-10 13:19 UTC by Juan Orti
Modified: 2022-09-08 18:31 UTC (History)
4 users (show)

Fixed In Version: ovirt-hosted-engine-setup-2.6.5-1
Doc Type: Bug Fix
Doc Text:
The hosted-engine-ha binaries have been moved from /usr/share to /usr/libexec. As a result, the hosted-engine --clean-metadata command fails. With this release, you must use the new path for the command to succeed: /usr/libexec/ovirt-hosted-engine-ha/ovirt-ha-agent
Clone Of:
Environment:
Last Closed: 2022-09-08 11:26:41 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-hosted-engine-setup pull 55 0 None open packaging: Use /usr/libexec for ovirt-hosted-engine-ha binaries 2022-07-13 07:56:13 UTC
Red Hat Issue Tracker RHV-47521 0 None None None 2022-07-10 13:22:17 UTC
Red Hat Knowledge Base (Solution) 6967002 0 None None None 2022-07-10 13:19:38 UTC
Red Hat Product Errata RHSA-2022:6392 0 None None None 2022-09-08 11:27:09 UTC

Description Juan Orti 2022-07-10 13:19:38 UTC
Description of problem:
When cleaning the metadata of a hosted-engine, the command fails with this error:

    # hosted-engine --clean-metadata --host-id=2 --force-clean
    /usr/sbin/hosted-engine: line 547: /usr/share/ovirt-hosted-engine-ha/ovirt-ha-agent: No such file or directory

The new location of ovirt-ha-agent is /usr/libexec/ovirt-hosted-engine-ha/ovirt-ha-agent

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-ha-2.5.0-1.el8ev.noarch
ovirt-hosted-engine-setup-2.6.3-1.el8ev.noarch

How reproducible:
Always

Steps to Reproduce:
1. Use the mentioned package versions (RHV 4.4 SP1)
2. Try to clean up the metadata of a hosted-engine host:

    hosted-engine --clean-metadata --host-id=2 --force-clean

Actual results:
/usr/sbin/hosted-engine: line 547: /usr/share/ovirt-hosted-engine-ha/ovirt-ha-agent: No such file or directory

Expected results:
No error

Additional info:

Comment 7 Nikolai Sednev 2022-08-11 16:40:31 UTC
Works just fine now:
ovirt-hosted-engine-ha-2.5.0-1.el8ev.noarch
ovirt-hosted-engine-setup-2.6.5-1.1.el8ev.noarch

serval14 ~]# hosted-engine --vm-status


--== Host serval14.lab.eng.tlv2.redhat.com (id: 1) status ==--

Host ID                            : 1
Host timestamp                     : 148876
Score                              : 3400
Engine status                      : {"vm": "up", "health": "good", "detail": "Up"}
Hostname                           : serval14.lab.eng.tlv2.redhat.com
Local maintenance                  : False
stopped                            : False
crc32                              : 52ce64c3
conf_on_shared_storage             : True
local_conf_timestamp               : 148876
Status up-to-date                  : True
Extra metadata (valid at timestamp):
        metadata_parse_version=1
        metadata_feature_version=1
        timestamp=148876 (Thu Aug 11 19:35:06 2022)
        host-id=1
        score=3400
        vm_conf_refresh_time=148876 (Thu Aug 11 19:35:06 2022)
        conf_on_shared_storage=True
        maintenance=False
        state=EngineUp
        stopped=False


--== Host serval15.lab.eng.tlv2.redhat.com (id: 2) status ==--

Host ID                            : 2
Host timestamp                     : 1650
Score                              : 0
Engine status                      : unknown stale-data
Hostname                           : serval15.lab.eng.tlv2.redhat.com
Local maintenance                  : False
stopped                            : True
crc32                              : 6db44bdb
conf_on_shared_storage             : True
local_conf_timestamp               : 1640
Status up-to-date                  : False
Extra metadata (valid at timestamp):
        metadata_parse_version=1
        metadata_feature_version=1
        timestamp=1650 (Thu Aug 11 19:31:59 2022)
        host-id=2
        score=0
        vm_conf_refresh_time=1640 (Thu Aug 11 19:31:49 2022)
        conf_on_shared_storage=True
        maintenance=False
        state=AgentStopped
        stopped=True
[root@serval14 ~]# hosted-engine --clean-metadata --host-id=2 --force-clean
INFO:ovirt_hosted_engine_ha.agent.agent.Agent:ovirt-hosted-engine-ha agent 2.5.0 started
INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Certificate common name not found, using hostname to identify host
INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Initializing ha-broker connection
INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Broker initialized, all submonitors started
INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Cleaning the metadata block!
INFO:ovirt_hosted_engine_ha.agent.agent.Agent:Agent shutting down
[root@serval14 ~]# hosted-engine --vm-status


--== Host serval14.lab.eng.tlv2.redhat.com (id: 1) status ==--

Host ID                            : 1
Host timestamp                     : 148886
Score                              : 3400
Engine status                      : {"vm": "up", "health": "good", "detail": "Up"}
Hostname                           : serval14.lab.eng.tlv2.redhat.com
Local maintenance                  : False
stopped                            : False
crc32                              : ec5cd732
conf_on_shared_storage             : True
local_conf_timestamp               : 148886
Status up-to-date                  : True
Extra metadata (valid at timestamp):
        metadata_parse_version=1
        metadata_feature_version=1
        timestamp=148886 (Thu Aug 11 19:35:16 2022)
        host-id=1
        score=3400
        vm_conf_refresh_time=148886 (Thu Aug 11 19:35:17 2022)
        conf_on_shared_storage=True
        maintenance=False
        state=EngineUp
        stopped=False
[root@serval14 ~]#

Comment 9 Casper (RHV QE bot) 2022-09-06 12:01:13 UTC
This bug has low overall severity and is not going to be further verified by QE. If you believe special care is required, feel free to properly align relevant severity, flags and keywords to raise PM_Score or use one of the Bumps ('PrioBumpField', 'PrioBumpGSS', 'PrioBumpPM', 'PrioBumpQA') in Keywords to raise it's PM_Score above verification threashold (1000).

Comment 12 errata-xmlrpc 2022-09-08 11:26:41 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 (Important: RHV RHEL Host (ovirt-host) [ovirt-4.5.2] security update), 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://access.redhat.com/errata/RHSA-2022:6392


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