[ovirt-users] Re: Unable to remove host from ovirt engine

2022-05-03 Thread Strahil Nikolov via Users
I never use the UI for Gluster.Most probably you need to go to Storage -> 
volume, then select the brick and delete it.
Do you have a replacement host ? Or a host that will be an Arbiter ?
Best Regards,Strahil Nikolov
 
 
  On Mon, May 2, 2022 at 16:10, Joseph Gelinas wrote:   That 
host does have gluster bricks that are all healthy. I have noticed under 
Compute -> Hosts -> Edit -> Hosted Engine there is the option to Undeploy, 
maybe that is what I need? Any ideas what actions that takes?


> On Apr 30, 2022, at 15:26, Strahil Nikolov  wrote:
> 
> You need to first replace the host on gluster level (it looks it has/had a 
> brick) before ovirt allows you to remove the host.
> 
> Can you check if the gluster volumes have a brick from that host ?
> 
> Best Regards,
> Strahil Nikolov
> 
> On Sat, Apr 30, 2022 at 15:24, Joseph Gelinas
>  wrote:
> Using GlusterFS for storage.
> 
> > On Apr 30, 2022, at 06:55, Strahil Nikolov via Users  
> > wrote:
> > 
> > *storage 
> > 
> > On Sat, Apr 30, 2022 at 13:50, Strahil Nikolov via Users
> >  wrote:
> > ___
> > Users mailing list -- users@ovirt.org
> > To unsubscribe send an email to users-le...@ovirt.org
> > Privacy Statement: https://www.ovirt.org/privacy-policy.html
> > oVirt Code of Conduct: 
> > https://www.ovirt.org/community/about/community-guidelines/
> > List Archives:
> > https://lists.ovirt.org/archives/list/users@ovirt.org/message/MWDNE4IK5F7ZH4LCY3I5EJWXDD54ILFH/
> > 
> > ___
> > Users mailing list -- users@ovirt.org
> > To unsubscribe send an email to users-le...@ovirt.org
> > Privacy Statement: https://www.ovirt.org/privacy-policy.html
> > oVirt Code of Conduct: 
> > https://www.ovirt.org/community/about/community-guidelines/
> > List Archives: 
> > https://lists.ovirt.org/archives/list/users@ovirt.org/message/EQ4ZBRWZCO2TJRJJDRZZLV4BXET2JQMF/
> 
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/3OJOWCRYAQD4KN6IIEYYKBCUE5R5U5JH/
> 
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/UV6AY5QUN7RNZ6BUWDHCUAAKJENETVAC/
  
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ALJ242JMZJTAO2YXIJI3MP7DPMW6DPFX/


[ovirt-users] Re: Unable to remove host from ovirt engine

2022-05-02 Thread Joseph Gelinas
That host does have gluster bricks that are all healthy. I have noticed under 
Compute -> Hosts -> Edit -> Hosted Engine there is the option to Undeploy, 
maybe that is what I need? Any ideas what actions that takes?


> On Apr 30, 2022, at 15:26, Strahil Nikolov  wrote:
> 
> You need to first replace the host on gluster level (it looks it has/had a 
> brick) before ovirt allows you to remove the host.
> 
> Can you check if the gluster volumes have a brick from that host ?
> 
> Best Regards,
> Strahil Nikolov
> 
> On Sat, Apr 30, 2022 at 15:24, Joseph Gelinas
>  wrote:
> Using GlusterFS for storage.
> 
> > On Apr 30, 2022, at 06:55, Strahil Nikolov via Users  
> > wrote:
> > 
> > *storage 
> > 
> > On Sat, Apr 30, 2022 at 13:50, Strahil Nikolov via Users
> >  wrote:
> > ___
> > Users mailing list -- users@ovirt.org
> > To unsubscribe send an email to users-le...@ovirt.org
> > Privacy Statement: https://www.ovirt.org/privacy-policy.html
> > oVirt Code of Conduct: 
> > https://www.ovirt.org/community/about/community-guidelines/
> > List Archives:
> > https://lists.ovirt.org/archives/list/users@ovirt.org/message/MWDNE4IK5F7ZH4LCY3I5EJWXDD54ILFH/
> > 
> > ___
> > Users mailing list -- users@ovirt.org
> > To unsubscribe send an email to users-le...@ovirt.org
> > Privacy Statement: https://www.ovirt.org/privacy-policy.html
> > oVirt Code of Conduct: 
> > https://www.ovirt.org/community/about/community-guidelines/
> > List Archives: 
> > https://lists.ovirt.org/archives/list/users@ovirt.org/message/EQ4ZBRWZCO2TJRJJDRZZLV4BXET2JQMF/
> 
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/3OJOWCRYAQD4KN6IIEYYKBCUE5R5U5JH/
> 
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/UV6AY5QUN7RNZ6BUWDHCUAAKJENETVAC/


[ovirt-users] Re: Unable to remove host from ovirt engine

2022-04-30 Thread Strahil Nikolov via Users
You need to first replace the host on gluster level (it looks it has/had a 
brick) before ovirt allows you to remove the host.
Can you check if the gluster volumes have a brick from that host ?
Best Regards,Strahil Nikolov
 
 
  On Sat, Apr 30, 2022 at 15:24, Joseph Gelinas wrote:   
Using GlusterFS for storage.

> On Apr 30, 2022, at 06:55, Strahil Nikolov via Users  wrote:
> 
> *storage 
> 
> On Sat, Apr 30, 2022 at 13:50, Strahil Nikolov via Users
>  wrote:
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/MWDNE4IK5F7ZH4LCY3I5EJWXDD54ILFH/
> 
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/EQ4ZBRWZCO2TJRJJDRZZLV4BXET2JQMF/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/3OJOWCRYAQD4KN6IIEYYKBCUE5R5U5JH/
  
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/BD2P3XFCYFE2XGNB7Y3CHUXKCR5XSZZE/


[ovirt-users] Re: Unable to remove host from ovirt engine

2022-04-30 Thread Joseph Gelinas
Using GlusterFS for storage.

> On Apr 30, 2022, at 06:55, Strahil Nikolov via Users  wrote:
> 
> *storage 
> 
> On Sat, Apr 30, 2022 at 13:50, Strahil Nikolov via Users
>  wrote:
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/MWDNE4IK5F7ZH4LCY3I5EJWXDD54ILFH/
> 
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/EQ4ZBRWZCO2TJRJJDRZZLV4BXET2JQMF/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/3OJOWCRYAQD4KN6IIEYYKBCUE5R5U5JH/


[ovirt-users] Re: Unable to remove host from ovirt engine

2022-04-30 Thread Strahil Nikolov via Users
*storage 
 
 
  On Sat, Apr 30, 2022 at 13:50, Strahil Nikolov via Users 
wrote:   ___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/MWDNE4IK5F7ZH4LCY3I5EJWXDD54ILFH/
  
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/EQ4ZBRWZCO2TJRJJDRZZLV4BXET2JQMF/


[ovirt-users] Re: Unable to remove host from ovirt engine

2022-04-30 Thread Strahil Nikolov via Users
hosted-engine output and UI are totally unrelated.The output of hosted-engine 
is matching the 'crown' icon in the UI and indicates on which hosts the 
HostedEngine VM can run.In the UI, the host is just a host that is capable of 
running VMs.
You need to remove the host from the UI.
What kind of storafe are you using ?
Best Regards,Strahil Nikolov
 
 
  On Fri, Apr 29, 2022 at 22:15, Joseph Gelinas wrote:   
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/XAJW5LJANCH24ANNPLH6XFFGK76KY2SD/
  
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/MWDNE4IK5F7ZH4LCY3I5EJWXDD54ILFH/


[ovirt-users] Re: Unable to remove host from ovirt engine

2022-04-29 Thread Strahil Nikolov via Users
Can you provide the error ?Also host removal has a 'Force' flag, but I assume 
you already tried it.
Best Regards,Strahil Nikolov
 
 
  On Fri, Apr 29, 2022 at 21:06, Strahil Nikolov via Users 
wrote:   ___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/SCCVTIT664CJPPAGDESBWUAODHNQ53B6/
  
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/HM6HSBJLYCFKDF54WUDOOHX5JFJS5FOE/


[ovirt-users] Re: Unable to remove host from ovirt engine

2022-04-29 Thread Joseph Gelinas
Yes, that is how I am getting the message saying it cannot confirm host has 
been rebooted because it isn't in a valid state.


> On Apr 29, 2022, at 13:59, Strahil Nikolov  wrote:
> 
> See my last email... Use the 3 dots menu
> 
> 
> 
> 
> On Fri, Apr 29, 2022 at 14:09, Joseph Gelinas
>  wrote:
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/TOD3ZJAYKVMNY23WDUJ2XMTTOQFKDR4F/
> 
> 
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/GR3GEFBYC4S3NIANSS5OYUIJFBTLXZXH/


[ovirt-users] Re: Unable to remove host from ovirt engine

2022-04-28 Thread Strahil Nikolov via Users
That's why you need to mark the host as 'rebooted' (same menu , the 3 dots)
Best Regards,Strahil Nikolov
 
 
  On Fri, Apr 29, 2022 at 0:09, Joseph Gelinas wrote:   
Unfortunately can't do that either.

> On Apr 28, 2022, at 15:26, Strahil Nikolov via Users  wrote:
> 
> Have you tried setting it to maintenance ?
> 
> Best Regards,
> Strahil Nikolov
> 
> On Thu, Apr 28, 2022 at 21:46, Joseph Gelinas
>  wrote:
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/Z4U4N42S72IPKD5SY4OZG2TAPPSSOMC5/
> 
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/QLFNU45TDDFGLNYMDQFSHPGZTV44N5QJ/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/DAKAIFBRJG3EWFIFFCZLT6VGDKZCLOFO/
  
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/23DGVTLTQGOCRQCCMBZTYTQLGGYY7FGR/


[ovirt-users] Re: Unable to remove host from ovirt engine

2022-04-28 Thread Joseph Gelinas
Unfortunately can't do that either.

> On Apr 28, 2022, at 15:26, Strahil Nikolov via Users  wrote:
> 
> Have you tried setting it to maintenance ?
> 
> Best Regards,
> Strahil Nikolov
> 
> On Thu, Apr 28, 2022 at 21:46, Joseph Gelinas
>  wrote:
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/Z4U4N42S72IPKD5SY4OZG2TAPPSSOMC5/
> 
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/QLFNU45TDDFGLNYMDQFSHPGZTV44N5QJ/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/DAKAIFBRJG3EWFIFFCZLT6VGDKZCLOFO/


[ovirt-users] Re: Unable to remove host from ovirt engine

2022-04-28 Thread Strahil Nikolov via Users
Have you tried setting it to maintenance ?
Best Regards,Strahil Nikolov
 
 
  On Thu, Apr 28, 2022 at 21:46, Joseph Gelinas wrote:   
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/Z4U4N42S72IPKD5SY4OZG2TAPPSSOMC5/
  
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/QLFNU45TDDFGLNYMDQFSHPGZTV44N5QJ/


[ovirt-users] Re: Unable to remove host from ovirt engine

2022-04-28 Thread Strahil Nikolov via Users
In the web, I think you can mark the host as rebooted (in order the engine to 
kill/release any pending tasks) and then remove it.
Best Regards,Strahil Nikolov
 
 
  On Tue, Apr 26, 2022 at 17:34, Joseph Gelinas wrote:   
That did remove the ovirt-1 host from `hosted-engine --vm-status` on ovirt-3, 
however it still appears in the web interface as an Unassigned host after 
restarting ovirt-engine.

If I rerun `hosted-engine --clean-metadata --host-id=1` on ovirt-2 or ovirt-3 I 
get a message about an unclean metadata block, but perhaps that is expected 
given it doesn't exist in the vm-status output anymore?

[root@ovirt-2 ~]# hosted-engine --clean-metadata --host-id=1
INFO:ovirt_hosted_engine_ha.agent.agent.Agent:ovirt-hosted-engine-ha agent 
2.4.5 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
ERROR:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Malformed 
metadata for host 1: received 0 of 512 expected bytes
ERROR:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Cannot clean 
unclean metadata block. Consider --force-clean.
INFO:ovirt_hosted_engine_ha.agent.agent.Agent:Agent shutting down




> On Apr 25, 2022, at 16:39, Strahil Nikolov via Users  wrote:
> 
> I think you can use 'hosted-engine --clean-metadata --host-id=1'
> 
> In my case I had to use --force-cleanup, but I wouldn't recommend using it.
> 
> Best Regards,
> Strahil Nikolov
> 
> On Mon, Apr 25, 2022 at 18:08, Joseph Gelinas
>  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.
> 
> https://lists.ovirt.org/archives/list/users@ovirt.org/thread/QCFPKQ3OKPOUV266MFJUMVTNG2OHLJVW/
> 
> 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-status
> The 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.x.com (id: 2) status ==--
> 
> Host ID                            : 2
> Host timestamp                    : 12515451
> Score                              : 3274
> Engine status                      : {"vm": "down", "health": "bad", 
> "detail": "unknown", "reason": "vm not running on this host"}
> Hostname                          : ovirt-3.x.com
> Local maintenance                  : False
> stopped                            : False
> crc32                              : 9cf92792
> conf_on_shared_storage            : True
> local_conf_timestamp              : 12515451
> Status up-to-date                  : True
> Extra metadata (valid at timestamp):
>    metadata_parse_version=1
>    metadata_feature_version=1
>    timestamp=12515451 (Mon Apr 25 14:08:51 2022)
>    host-id=2
>    score=3274
>    vm_conf_refresh_time=12515451 (Mon Apr 25 14:08:51 2022)
>    conf_on_shared_storage=True
>    maintenance=False
>    state=GlobalMaintenance
>    stopped=False
> 
> 
> --== Host ovirt-2.x.com (id: 3) status ==--
> 
> Host ID                            : 3
> Host timestamp                    : 12513269
> Score                              : 3400
> Engine status                      : {"vm": "up", "health": "good", "detail": 
> "Up"}
> Hostname                          : ovirt-2.x.com
> Local maintenance                  : False
> stopped                            : False
> crc32                              : 4a89d706
> conf_on_shared_storage            : True
> local_conf_timestamp              : 12513269
> Status up-to-date                  : True
> Extra metadata (valid at timestamp):
>    metadata_parse_version=1
>    metadata_feature_version=1
>    timestamp=12513269 (Mon Apr 25 14:09:00 2022)
>    host-id=3
>    score=3400
>    vm_conf_refresh_time=12513269 (Mon Apr 25 14:09:00 2022)
>    conf_on_shared_storage=True
>    maintenance=False
>    state=GlobalMaintenance
>    stopped=False
> 
> 
> !! Cluster is in GLOBAL MAINTENANCE mode !!
> 
> 
> 
> 
> 
> [root@ovirt-3 ~]# hosted-engine --vm-status
> 
> 
> !! Cluster is in GLOBAL MAINTENANCE mode !!
> 
> 
> 
> --== Host ovirt-1.x.com (id: 1) status ==--
> 
> Host ID                            : 1
> Host timestamp           

[ovirt-users] Re: Unable to remove host from ovirt engine

2022-04-26 Thread Joseph Gelinas
That did remove the ovirt-1 host from `hosted-engine --vm-status` on ovirt-3, 
however it still appears in the web interface as an Unassigned host after 
restarting ovirt-engine.

If I rerun `hosted-engine --clean-metadata --host-id=1` on ovirt-2 or ovirt-3 I 
get a message about an unclean metadata block, but perhaps that is expected 
given it doesn't exist in the vm-status output anymore?

[root@ovirt-2 ~]# hosted-engine --clean-metadata --host-id=1
INFO:ovirt_hosted_engine_ha.agent.agent.Agent:ovirt-hosted-engine-ha agent 
2.4.5 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
ERROR:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Malformed 
metadata for host 1: received 0 of 512 expected bytes
ERROR:ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:Cannot clean 
unclean metadata block. Consider --force-clean.
INFO:ovirt_hosted_engine_ha.agent.agent.Agent:Agent shutting down




> On Apr 25, 2022, at 16:39, Strahil Nikolov via Users  wrote:
> 
> I think you can use 'hosted-engine --clean-metadata --host-id=1'
> 
> In my case I had to use --force-cleanup, but I wouldn't recommend using it.
> 
> Best Regards,
> Strahil Nikolov
> 
> On Mon, Apr 25, 2022 at 18:08, Joseph Gelinas
>  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.
> 
> https://lists.ovirt.org/archives/list/users@ovirt.org/thread/QCFPKQ3OKPOUV266MFJUMVTNG2OHLJVW/
> 
> 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-status
> The 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.x.com (id: 2) status ==--
> 
> Host ID: 2
> Host timestamp: 12515451
> Score  : 3274
> Engine status  : {"vm": "down", "health": "bad", 
> "detail": "unknown", "reason": "vm not running on this host"}
> Hostname  : ovirt-3.x.com
> Local maintenance  : False
> stopped: False
> crc32  : 9cf92792
> conf_on_shared_storage: True
> local_conf_timestamp  : 12515451
> Status up-to-date  : True
> Extra metadata (valid at timestamp):
> metadata_parse_version=1
> metadata_feature_version=1
> timestamp=12515451 (Mon Apr 25 14:08:51 2022)
> host-id=2
> score=3274
> vm_conf_refresh_time=12515451 (Mon Apr 25 14:08:51 2022)
> conf_on_shared_storage=True
> maintenance=False
> state=GlobalMaintenance
> stopped=False
> 
> 
> --== Host ovirt-2.x.com (id: 3) status ==--
> 
> Host ID: 3
> Host timestamp: 12513269
> Score  : 3400
> Engine status  : {"vm": "up", "health": "good", "detail": 
> "Up"}
> Hostname  : ovirt-2.x.com
> Local maintenance  : False
> stopped: False
> crc32  : 4a89d706
> conf_on_shared_storage: True
> local_conf_timestamp  : 12513269
> Status up-to-date  : True
> Extra metadata (valid at timestamp):
> metadata_parse_version=1
> metadata_feature_version=1
> timestamp=12513269 (Mon Apr 25 14:09:00 2022)
> host-id=3
> score=3400
> vm_conf_refresh_time=12513269 (Mon Apr 25 14:09:00 2022)
> conf_on_shared_storage=True
> maintenance=False
> state=GlobalMaintenance
> stopped=False
> 
> 
> !! Cluster is in GLOBAL MAINTENANCE mode !!
> 
> 
> 
> 
> 
> [root@ovirt-3 ~]# hosted-engine --vm-status
> 
> 
> !! Cluster is in GLOBAL MAINTENANCE mode !!
> 
> 
> 
> --== Host ovirt-1.x.com (id: 1) status ==--
> 
> Host ID: 1
> Host timestamp: 6750990
> Score  : 0
> Engine status  : unknown stale-data
> Hostname  : ovirt-1.x.com
> Local maintenance 

[ovirt-users] Re: Unable to remove host from ovirt engine

2022-04-25 Thread Strahil Nikolov via Users
I think you can use 'hosted-engine --clean-metadata --host-id=1'
In my case I had to use --force-cleanup, but I wouldn't recommend using it.
Best Regards,Strahil Nikolov
 
 
  On Mon, Apr 25, 2022 at 18:08, Joseph Gelinas 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.

https://lists.ovirt.org/archives/list/users@ovirt.org/thread/QCFPKQ3OKPOUV266MFJUMVTNG2OHLJVW/

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-status
The 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.x.com (id: 2) status ==--

Host ID                            : 2
Host timestamp                    : 12515451
Score                              : 3274
Engine status                      : {"vm": "down", "health": "bad", "detail": 
"unknown", "reason": "vm not running on this host"}
Hostname                          : ovirt-3.x.com
Local maintenance                  : False
stopped                            : False
crc32                              : 9cf92792
conf_on_shared_storage            : True
local_conf_timestamp              : 12515451
Status up-to-date                  : True
Extra metadata (valid at timestamp):
    metadata_parse_version=1
    metadata_feature_version=1
    timestamp=12515451 (Mon Apr 25 14:08:51 2022)
    host-id=2
    score=3274
    vm_conf_refresh_time=12515451 (Mon Apr 25 14:08:51 2022)
    conf_on_shared_storage=True
    maintenance=False
    state=GlobalMaintenance
    stopped=False


--== Host ovirt-2.x.com (id: 3) status ==--

Host ID                            : 3
Host timestamp                    : 12513269
Score                              : 3400
Engine status                      : {"vm": "up", "health": "good", "detail": 
"Up"}
Hostname                          : ovirt-2.x.com
Local maintenance                  : False
stopped                            : False
crc32                              : 4a89d706
conf_on_shared_storage            : True
local_conf_timestamp              : 12513269
Status up-to-date                  : True
Extra metadata (valid at timestamp):
    metadata_parse_version=1
    metadata_feature_version=1
    timestamp=12513269 (Mon Apr 25 14:09:00 2022)
    host-id=3
    score=3400
    vm_conf_refresh_time=12513269 (Mon Apr 25 14:09:00 2022)
    conf_on_shared_storage=True
    maintenance=False
    state=GlobalMaintenance
    stopped=False


!! Cluster is in GLOBAL MAINTENANCE mode !!





[root@ovirt-3 ~]# hosted-engine --vm-status


!! Cluster is in GLOBAL MAINTENANCE mode !!



--== Host ovirt-1.x.com (id: 1) status ==--

Host ID                            : 1
Host timestamp                    : 6750990
Score                              : 0
Engine status                      : unknown stale-data
Hostname                          : ovirt-1.x.com
Local maintenance                  : False
stopped                            : True
crc32                              : 5290657b
conf_on_shared_storage            : True
local_conf_timestamp              : 6750950
Status up-to-date                  : False
Extra metadata (valid at timestamp):
    metadata_parse_version=1
    metadata_feature_version=1
    timestamp=6750990 (Thu Feb 17 22:17:53 2022)
    host-id=1
    score=0
    vm_conf_refresh_time=6750950 (Thu Feb 17 22:17:12 2022)
    conf_on_shared_storage=True
    maintenance=False
    state=AgentStopped
    stopped=True


--== Host ovirt-3.x.com (id: 2) status ==--

Host ID                            : 2
Host timestamp                    : 12515501
Score                              : 3279
Engine status                      : {"vm": "down", "health": "bad", "detail": 
"unknown", "reason": "vm not running on this host"}
Hostname                          : ovirt-3.x.com
Local maintenance                  : False
stopped                            : False
crc32                              : 0845cd93
conf_on_shared_storage            : True
local_conf_timestamp              : 12515501
Status up-to-date                  : True
Extra metadata (valid at timestamp):
    metadata_parse_version=1
    metadata_feature_version=1
    timestamp=12515501 (Mon Apr 25 14:09:42 2022)
    host-id=2
    score=3279
    vm_conf_refresh_time=12515501 (Mon Apr 25 14:09:42 2022)
    conf_on_shared_storage=True
    maintenance=False