Force host removal on 1.3.2

Hi,
in my Foreman setup I have some hosts which were on a compute resource
(libvirt) which is not available anymore, so I would need to delete the
hosts - I also need to recreate them on a new resource - but Foreman
prevents this because it cannot connect to the old compute resource.

Is there a way to force the removal of those hosts?
I've searched the web but can only find hints to added features in later
Foreman versions; I have 1.3.2 here and cannot upgrade at the moment.

PS: never mind, I found a workaround. But I'm posting this anyway, might be
useful to others ;).
As I also had another working libvirt compute resource, I edited the
address of the old CR to point to the existing libvirt. Then I could delete
the hosts (it looks like Foreman doesn't care if it cannot find the VMs on
the compute resource, as long as it can connect to it).

Marco

Hey,

there should be Unmanage host button available, which you can use to put
the host into puppet only mode. Then you should be able to delete it.

··· On Tue, Apr 22, 2014 at 06:15:41AM -0700, zerozerounouno@gmail.com wrote: > Hi, > in my Foreman setup I have some hosts which were on a compute resource > (libvirt) which is not available anymore, so I would need to delete the > hosts - I also need to recreate them on a new resource - but Foreman > prevents this because it cannot connect to the old compute resource. > > Is there a way to force the removal of those hosts? > I've searched the web but can only find hints to added features in later > Foreman versions; I have 1.3.2 here and cannot upgrade at the moment. > > PS: never mind, I found a workaround. But I'm posting this anyway, might be > useful to others ;). > As I also had another working libvirt compute resource, I edited the > address of the old CR to point to the existing libvirt. Then I could delete > the hosts (it looks like Foreman doesn't care if it cannot find the VMs on > the compute resource, as long as it can connect to it).


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

I tried that, I could unmanage the host, but even then deleting it was
impossible.
Thanks.
Marco

··· Il giorno martedì 22 aprile 2014 15:31:09 UTC+2, Lukas Zapletal ha scritto:

there should be Unmanage host button available, which you can use to put
the host into puppet only mode. Then you should be able to delete it.