Prevent foreman discovery from registering the host if the host is already defined?

Hi, I came across an issue when someone accidentally deleted the
tftp/macfile and rebooted a server into network boot after an
installation. The server was re-added into discovery, even though the host
is already defined in the host table. Is there a way to prevent this from
happening? Now if I delete the entry from discovered_hosts I loose the
facts for the entry.

> Hi, I came across an issue when someone accidentally deleted the
> tftp/macfile and rebooted a server into network boot after an
> installation. The server was re-added into discovery, even though the host
> is already defined in the host table. Is there a way to prevent this from
> happening? Now if I delete the entry from discovered_hosts I loose the
> facts for the entry.

Hey, interesting observation.

Well, if the host was already discovered successfully, your facts were
likely already deleted. Can you verify they are still there?

You can raise a Feature ticket in our RedMine instance with expected
solution - I think a setting that would prevent from discovering
existing hosts would do it.

··· -- Later, Lukas #lzap Zapletal

Yes, facts still exist until I delete the entry from discovery… Will
create a feature ticket. thanks.

··· On Wed, Oct 12, 2016 at 10:57 AM, Lukas Zapletal wrote:

Hi, I came across an issue when someone accidentally deleted the
tftp/macfile and rebooted a server into network boot after an
installation. The server was re-added into discovery, even though the
host
is already defined in the host table. Is there a way to prevent this
from
happening? Now if I delete the entry from discovered_hosts I loose the
facts for the entry.

Hey, interesting observation.

Well, if the host was already discovered successfully, your facts were
likely already deleted. Can you verify they are still there?

You can raise a Feature ticket in our RedMine instance with expected
solution - I think a setting that would prevent from discovering
existing hosts would do it.


Later,
Lukas #lzap Zapletal


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/foreman-users/lpgCawj9U3Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.