Last time I had to do this I removed from the database.

(at your own risk)
On ovirt engine switch to the postgres user from root:

su - postgres

Enable postgres 10 and connect to the engine database:

. scl_source enable rh-postgresql10
psql -d engine

Change <host name to remove> to the name (Name column of the host in the UI) of the host you want to get rid of ( leave the '\' and \'' in place )

BEGIN;
\set host '\'<host name to remove>\''
DELETE FROM vds_dynamic WHERE vds_id IN (SELECT vds_id FROM vds_static WHERE vds_name = :host);
DELETE FROM vds_statistics WHERE vds_id IN (SELECT vds_id FROM vds_static WHERE vds_name = :host);
DELETE FROM vds_static WHERE vds_name = :host;
COMMIT;
<CTRL d - exit>



On Tue, 21 Apr 2020 at 15:19, Shareef Jalloq <shareef@jalloq.co.uk> wrote:
Hi,

I seem to have got a stale host in my engine that I can't remove.  I recently reinstalled oVirt Node on this host and while trying to refresh the host in the engine, have got it in some state where I can't do anything.

The host is listed as Status=Unassigned.  Under the Management pull down I only have Restart and Stop options, both of which error if selected.  The Remove button is not available.

How do I force a removal of this host from the view so I can reload it?

Shareef.
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@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/TCBGLVCLMTZSQAURDDVGHKYXXQ36NO5H/