Bug 2105781
| Summary: | hosted-engine --clean-metadata fails because ovirt-ha-agent has changed location | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Juan Orti <jortialc> |
| Component: | ovirt-hosted-engine-setup | Assignee: | Asaf Rachmani <arachman> |
| Status: | CLOSED ERRATA | QA Contact: | Nikolai Sednev <nsednev> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.5.0 | CC: | arachman, emarcus, lsurette, mavital |
| Target Milestone: | ovirt-4.5.2 | Keywords: | Triaged |
| Target Release: | 4.5.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| 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
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-09-08 11:26:41 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: | |||
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 ~]#
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).
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 |
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: