<div dir="ltr"><div><div><div><div>Thanks Kasturi,<br><br></div> I did try that but not getting anywhere, I get the following errors when trying to clean the meta data:<br><br><font face="monospace,monospace"># hosted-engine --clean-metadata --force-cleanup --host-id=1<br>INFO:ovirt_hosted_engine_ha.agent.agent.Agent:ovirt-hosted-engine-ha agent 2.2.0-0.0.master.20170914130805 started<br>INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Found certificate common name: 192.168.0.14<br>INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Initializing VDSM<br>INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Connecting the storage<br>INFO:ovirt_hosted_engine_ha.lib.storage_server.StorageServer:Connecting storage server<br>INFO:ovirt_hosted_engine_ha.lib.storage_server.StorageServer:Connecting storage server<br>INFO:ovirt_hosted_engine_ha.lib.storage_server.StorageServer:Refreshing the storage domain<br>INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Preparing images<br>INFO:ovirt_hosted_engine_ha.lib.image.Image:Preparing images<br>INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Refreshing vm.conf<br>INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config:Reloading vm.conf from the shared storage domain<br>INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config:Trying to get a fresher copy of vm configuration from the OVF_STORE<br>INFO:ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore:Found OVF_STORE: imgUUID:broken.4d32314f-8548-4d4c-9fb1-b575b41afe4b, volUUID:10dea31c-1c93-4662-b95b-90e4853fe84a<br>INFO:ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore:Found OVF_STORE: imgUUID:88730268-59c6-4f5a-93a9-745f92a51025, volUUID:026b931a-ec4d-44a7-885a-4a7378011ad5<br>INFO:ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore:Extracting Engine VM OVF from the OVF_STORE<br>INFO:ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore:OVF_STORE volume path: /rhev/data-center/mnt/nas.example.com:testlab-hosted/09f098b9-8c8b-4841-98d0-ec34c41d186a/images/88730268-59c6-4f5a-93a9-745f92a51025/026b931a-ec4d-44a7-885a-4a7378011ad5 <br>INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config:Found an OVF for HE VM, trying to convert<br>INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config:Got vm.conf from OVF_STORE<br>INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Initializing ha-broker connection<br>INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Starting monitor ping, options {'addr': '192.168.0.254'}<br>INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Success, id ping<br>INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Starting monitor mgmt-bridge, options {'use_ssl': 'true', 'bridge_name': 'ovirtmgmt', 'address': '0'}<br>INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Success, id mgmt-bridge<br>INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Starting monitor mem-free, options {'use_ssl': 'true', 'address': '0'}<br>INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Success, id mem-free<br>INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Starting monitor cpu-load-no-engine, options {'use_ssl': 'true', 'vm_uuid': '70c46fec-fd6d-4632-94cf-99bb4a1a8271', 'address': '0'}<br>INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Success, id cpu-load-no-engine<br>INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Starting monitor engine-health, options {'use_ssl': 'true', 'vm_uuid': '70c46fec-fd6d-4632-94cf-99bb4a1a8271', 'address': '0'}<br>INFO:ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink:Success, id engine-health<br>INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Broker initialized, all submonitors started<br>INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Ensuring lease for lockspace hosted-engine, host id 1 is acquired (file: /var/run/vdsm/storage/09f098b9-8c8b-4841-98d0-ec34c41d186a/559a4adb-be9e-4786-9672-f7216fac7dcb/a9120e7a-7417-4303-b4c1-696faaef1051)<br>ERROR:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:cannot get lock on host id 1: host already holds lock on a different host id<br>WARNING:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Force requested, overriding sanlock failure.<br>INFO:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Cleaning the metadata block!<br>ERROR:ovirt_hosted_engine_ha.agent.agent.Agent:Traceback (most recent call last):<br> File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/agent.py", line 131, in _run_agent<br> return action(he)<br> File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/agent.py", line 58, in action_clean<br> return he.clean(options.force_cleanup)<br> File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 389, in clean<br> if self._broker and self._broker.is_connected():<br>AttributeError: 'BrokerLink' object has no attribute 'is_connected'<br><br>ERROR:ovirt_hosted_engine_ha.agent.agent.Agent:Trying to restart agent<br>INFO:ovirt_hosted_engine_ha.agent.agent.Agent:Agent shutting down<br>Exception AttributeError: AttributeError("'NoneType' object has no attribute 'c_uint64'",) in <bound method _Server.__del__ of <vdsm.jsonrpcvdscli._Server object at 0x248e5d0>> ignored<br><span style="font-family:arial,helvetica,sans-serif"><br><br></span></font></div><font face="monospace,monospace"><span style="font-family:arial,helvetica,sans-serif">Not sure what to try next....<br><br></span></font></div><font face="monospace,monospace"><span style="font-family:arial,helvetica,sans-serif">regards,<br></span></font></div><font face="monospace,monospace"><span style="font-family:arial,helvetica,sans-serif">Brett<br></span></font></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 October 2017 at 12:55, Kasturi Narra <span dir="ltr"><<a href="mailto:knarra@redhat.com" target="_blank">knarra@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div> You can run the command below which will remove these hosts from the hosted-engine --vm-status output</div><div><span style="background-color:transparent;font-size:11pt;white-space:pre-wrap;color:rgb(0,0,0);font-family:Arial"><br></span></div><div><span style="background-color:transparent"> </span><span style="background-color:transparent;font-size:11pt;white-space:pre-wrap;color:rgb(0,0,0);font-family:Arial">‘hosted-engine --clean-metadata --host-id=<old_host_id> --force-clean’</span></div><div><span style="background-color:transparent;font-size:11pt;white-space:pre-wrap;color:rgb(0,0,0);font-family:Arial"><br></span></div><div><span style="background-color:transparent;font-size:11pt;white-space:pre-wrap;color:rgb(0,0,0);font-family:Arial">Thanks</span></div><div><span style="background-color:transparent;font-size:11pt;white-space:pre-wrap;color:rgb(0,0,0);font-family:Arial">kasturi</span></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sun, Oct 8, 2017 at 12:01 AM, Maton, Brett <span dir="ltr"><<a href="mailto:matonb@ltresources.co.uk" target="_blank">matonb@ltresources.co.uk</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div>Hi,<br><br></div> I've replaced some hardware, and didn't remote 'hosted engine deploy' before retireing the servers.<br></div> (actually I failed to remove them properly...)<br><br></div> How can I get rid of the 'old' hosts from the output of hosted-engine --vm-status ?<br><br><br></div><div> oVirt 4.2 - pre<br></div><div> centOS 7.4<br><br></div>Regards,<br></div>Brett<br></div>
<br></div></div>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>