I think you can use 'hosted-engine --clean-metadata --host-id=1'
On Mon, Apr 25, 2022 at 18:08, Joseph Gelinas<joseph@gelinas.cc> wrote:Recently our host and ovirt engine certificates expired and with some ideas from Strahil we were able to get 2 of the 3 ovirt hosts updated with usable certificates and move all of our VMs to those two nodes.Not having any luck with the last host we figured we'd just try to remove it from ovirt engine and re-add it. While it seems `hosted-engine --vm-status` on one node no longer shows the removed host, the other good host and the web interface still show ovirt-1 in the mix. What is the best way to remove a NonRespnsive host from ovirt and re-add it?[root@ovirt-1 ~]# hosted-engine --vm-statusThe hosted engine configuration has not been retrieved from shared storage. Please ensure that ovirt-ha-agent is running and the storage server is reachable.[root@ovirt-2 ~]# hosted-engine --vm-status!! Cluster is in GLOBAL MAINTENANCE mode !!--== Host ovirt-3.xxxxx.com (id: 2) status ==--Host ID : 2Host timestamp : 12515451Score : 3274Engine status : {"vm": "down", "health": "bad", "detail": "unknown", "reason": "vm not running on this host"}Hostname : ovirt-3.xxxxx.comLocal maintenance : Falsestopped : Falsecrc32 : 9cf92792conf_on_shared_storage : Truelocal_conf_timestamp : 12515451Status up-to-date : TrueExtra metadata (valid at timestamp):metadata_parse_version=1metadata_feature_version=1timestamp=12515451 (Mon Apr 25 14:08:51 2022)host-id=2score=3274vm_conf_refresh_time=12515451 (Mon Apr 25 14:08:51 2022)conf_on_shared_storage=Truemaintenance=Falsestate=GlobalMaintenancestopped=False--== Host ovirt-2.xxxxx.com (id: 3) status ==--Host ID : 3Host timestamp : 12513269Score : 3400Engine status : {"vm": "up", "health": "good", "detail": "Up"}Hostname : ovirt-2.xxxxx.comLocal maintenance : Falsestopped : Falsecrc32 : 4a89d706conf_on_shared_storage : Truelocal_conf_timestamp : 12513269Status up-to-date : TrueExtra metadata (valid at timestamp):metadata_parse_version=1metadata_feature_version=1timestamp=12513269 (Mon Apr 25 14:09:00 2022)host-id=3score=3400vm_conf_refresh_time=12513269 (Mon Apr 25 14:09:00 2022)conf_on_shared_storage=Truemaintenance=Falsestate=GlobalMaintenancestopped=False!! Cluster is in GLOBAL MAINTENANCE mode !![root@ovirt-3 ~]# hosted-engine --vm-status!! Cluster is in GLOBAL MAINTENANCE mode !!--== Host ovirt-1.xxxxx.com (id: 1) status ==--Host ID : 1Host timestamp : 6750990Score : 0Engine status : unknown stale-dataHostname : ovirt-1.xxxxx.comLocal maintenance : Falsestopped : Truecrc32 : 5290657bconf_on_shared_storage : Truelocal_conf_timestamp : 6750950Status up-to-date : FalseExtra metadata (valid at timestamp):metadata_parse_version=1metadata_feature_version=1timestamp=6750990 (Thu Feb 17 22:17:53 2022)host-id=1score=0vm_conf_refresh_time=6750950 (Thu Feb 17 22:17:12 2022)conf_on_shared_storage=Truemaintenance=Falsestate=AgentStoppedstopped=True--== Host ovirt-3.xxxxx.com (id: 2) status ==--Host ID : 2Host timestamp : 12515501Score : 3279Engine status : {"vm": "down", "health": "bad", "detail": "unknown", "reason": "vm not running on this host"}Hostname : ovirt-3.xxxxx.comLocal maintenance : Falsestopped : Falsecrc32 : 0845cd93conf_on_shared_storage : Truelocal_conf_timestamp : 12515501Status up-to-date : TrueExtra metadata (valid at timestamp):metadata_parse_version=1metadata_feature_version=1timestamp=12515501 (Mon Apr 25 14:09:42 2022)host-id=2score=3279vm_conf_refresh_time=12515501 (Mon Apr 25 14:09:42 2022)conf_on_shared_storage=Truemaintenance=Falsestate=GlobalMaintenancestopped=False--== Host ovirt-2.xxxxx.com (id: 3) status ==--Host ID : 3Host timestamp : 12513309Score : 3400Engine status : {"vm": "up", "health": "good", "detail": "Up"}Hostname : ovirt-2.xxxxx.comLocal maintenance : Falsestopped : Falsecrc32 : 237726e0conf_on_shared_storage : Truelocal_conf_timestamp : 12513309Status up-to-date : TrueExtra metadata (valid at timestamp):metadata_parse_version=1metadata_feature_version=1timestamp=12513309 (Mon Apr 25 14:09:39 2022)host-id=3score=3400vm_conf_refresh_time=12513309 (Mon Apr 25 14:09:39 2022)conf_on_shared_storage=Truemaintenance=Falsestate=GlobalMaintenancestopped=False!! Cluster is in GLOBAL MAINTENANCE mode !!_______________________________________________Users mailing list -- users@ovirt.orgTo unsubscribe send an email to users-leave@ovirt.orgPrivacy Statement: https://www.ovirt.org/privacy-policy.htmloVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/