Bug 1454342
Summary: | Remove metadata from shared storage for undeployed ha-host. | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Nikolai Sednev <nsednev> |
Component: | Host-Deploy | Assignee: | Sandro Bonazzola <sbonazzo> |
Status: | CLOSED WONTFIX | QA Contact: | meital avital <mavital> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.1.2.2 | CC: | bugs, ylavi |
Target Milestone: | --- | Flags: | nsednev:
planning_ack?
nsednev: devel_ack? nsednev: testing_ack? |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-06-12 09:22:29 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
Nikolai Sednev
2017-05-22 13:52:17 UTC
I would like to add that in case that you have 2 ha-hosts and one of which was undeployed, you may not use https://access.redhat.com/solutions/2212601 work around as you should not stop ovirt-ha-agent on active ha-host. Casting "hosted-engine --clean-metadata --host-id=$old_ID --force-clean" without stopping ovirt-ha-agent previously, will also cause for service to get stopped, which is highly undesirable on a single, active ha-host, which is running HE-VM with other guest-VMs. puma18 ~]# hosted-engine --clean-metadata --host-id=2 --force-clean INFO:ovirt_hosted_engine_ha.agent.agent.Agent:ovirt-hosted-engine-ha agent 2.1.0.6 started INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Found certificate common name: puma18.scl.lab.tlv.redhat.com INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Initializing VDSM INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Connecting the storage INFO:ovirt_hosted_engine_ha.lib.storage_server.StorageServer:Connecting storage server INFO:ovirt_hosted_engine_ha.lib.storage_server.StorageServer:Connecting storage server INFO:ovirt_hosted_engine_ha.lib.storage_server.StorageServer:Refreshing the storage domain INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Preparing images INFO:ovirt_hosted_engine_ha.lib.image.Image:Preparing images INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Refreshing vm.conf INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config:Reloading vm.conf from the shared storage domain INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config:Trying to get a fresher copy of vm configuration from the OVF_STORE INFO:ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore:Found OVF_STORE: imgUUID:08f6844b-f1e5-4acb-a4ad-5129606785b5, volUUID:8e9d95ee-636f-49bf-8633-7f9f8f19a466 INFO:ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore:Found OVF_STORE: imgUUID:80a61d2b-74c2-4a79-8009-85f7e8517825, volUUID:a43b161c-a18f-4ced-97a7-7b521caecd90 INFO:ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore:Extracting Engine VM OVF from the OVF_STORE INFO:ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore:OVF_STORE volume path: /rhev/data-center/mnt/yellow-vdsb.qa.lab.tlv.redhat.com:_Compute__NFS_nsednev__he__4/f7d64e4c-a34d-484f-8dd8-412ea87b2e67/images/80a61d2b-74c2-4a79-8009-85f7e8517825/a43b161c-a18f-4ced-97a7-7b521caecd90 ERROR:ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore:Unable to extract HEVM OVF ERROR:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config:Failed extracting VM OVF from the OVF_STORE volume, falling back to initial vm.conf INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Initializing ha-broker connection INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Starting monitor ping, options {'addr': '10.35.160.254'} INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Success, id 139765819780560 INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Starting monitor mgmt-bridge, options {'use_ssl': 'true', 'bridge_name': 'ovirtmgmt', 'address': '0'} INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Success, id 139765819586768 INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Starting monitor mem-free, options {'use_ssl': 'true', 'address': '0'} INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Success, id 139765819586576 INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Starting monitor cpu-load-no-engine, options {'use_ssl': 'true', 'vm_uuid': 'c8e1075f-4c8f-431b-93d7-e7ada07b4cce', 'address': '0'} INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Success, id 139765819586640 INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Starting monitor engine-health, options {'use_ssl': 'true', 'vm_uuid': 'c8e1075f-4c8f-431b-93d7-e7ada07b4cce', 'address': '0'} INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Success, id 139765889785680 INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Success, id 139765889785040 INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Broker initialized, all submonitors started INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Ensuring lease for lockspace hosted-engine, host id 2 is acquired (file: /var/run/vdsm/storage/f7d64e4c-a34d-484f-8dd8-412ea87b2e67/f144f971-d0c5-4b3a-bcdf-4f6d8aac6b2e/ce600432-88ea-45db-b9c0-e26cf50cefc7) ERROR:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:cannot get lock on host id 2: host already holds lock on a different host id WARNING:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Force requested, overriding sanlock failure. INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Cleaning the metadata block! INFO:ovirt_hosted_engine_ha.agent.agent.Agent:Agent shutting down puma18 ~]# systemctl start ovirt-ha-agent puma18 ~]# hosted-engine --vm-status --== Host 1 status ==-- conf_on_shared_storage : True Status up-to-date : True Hostname : puma18 Host ID : 1 Engine status : {"health": "good", "vm": "up", "detail": "up"} Score : 3400 stopped : False Local maintenance : False crc32 : fc5e0c2d local_conf_timestamp : 348819 Host timestamp : 348804 Extra metadata (valid at timestamp): metadata_parse_version=1 metadata_feature_version=1 timestamp=348804 (Mon May 22 16:56:06 2017) host-id=1 score=3400 vm_conf_refresh_time=348819 (Mon May 22 16:56:21 2017) conf_on_shared_storage=True maintenance=False state=EngineUp stopped=False If we get requests to update ad hoc, we will consider it. For now I don't see a reason to invest in this. |