I have a host I removed from foreman, and am trying to re-add but it's
telling me:
Failed to save: IP address has already been taken, MAC address has already
been taken
I have checked my DHCP server, and there's no trace of the IP or MAC
address.
No hosts in foreman have this IP or MAC address.
There is no trace of the host on my puppet masters (no certs, node data,
fact data, etc)
I did have an error when I originally tried to remove the host yesterday,
then it worked the second time i tried to delete it, but the error is
buried in the logs (I have several hundred hosts in foreman so the logs are
pretty big)
Is there a way for me to manually remove the IP and MAC from the foreman
database?
Thanks
Bill
Bill,
I ran into similar issues yesterday. I think what you're running into is
this particular bug: Bug #6412: Trying to remove a DHCP record fails due to an invalid subnet check - Smart Proxy - Foreman. The
structure of foreman-proxy has changed a decent bit so I had to manually
apply the change to my 1.5.1 proxy but once I did that it resolved my
issue. If it's helpful, i was able to workaround the issue prior to the
patch by restarting dhcpd.
If you need to manually remove it you can try removing it using omshell.
Tim
ยทยทยท
On Wednesday, July 23, 2014 8:23:52 AM UTC-7, Bill Sirinek wrote:
>
>
> I have a host I removed from foreman, and am trying to re-add but it's
> telling me:
>
> Failed to save: IP address has already been taken, MAC address has already
> been taken
>
>
> I have checked my DHCP server, and there's no trace of the IP or MAC
> address.
> No hosts in foreman have this IP or MAC address.
> There is no trace of the host on my puppet masters (no certs, node data,
> fact data, etc)
>
> I did have an error when I originally tried to remove the host yesterday,
> then it worked the second time i tried to delete it, but the error is
> buried in the logs (I have several hundred hosts in foreman so the logs are
> pretty big)
>
> Is there a way for me to manually remove the IP and MAC from the foreman
> database?
>
> Thanks
>
> Bill
>
>