Hmmm we have a bit of code around leases - the IP address that was assigned
via lease, we should ignore it.

Are you also changing the hostname? Can you try without changing the
hostname?

Also increasing Rails app logging level to debug should show this:

      logger.debug "Comparing #{attrs.values_at(*to_compare)} ==
#{other.attrs.values_at(*to_compare)}"

So we can see all the validations from there.

On Thu, Dec 8, 2016 at 3:33 PM, Alexander Rilik <[email protected]>
wrote:

> Hello,
>
> I am testing the Discovery plugin. I have a DHCP server setup to assign a
> limited range of addresses (dedicated to pxe booting hosts). The remaining
> addresses are out of the DHCP scope to be permanently assigned to the
> hosts. Foreman is configured to autosuggest IPs outside of the DHCP range.
> I'm having this problem:
>
>    1. boot new host, it gets discovered
>    2. open the "provision" > "interfaces" tab. The IP pre-assigned is the
>    one that has been provided by DHCP during PXE boot
>    3. Manually change the address to an address of choice from outside
>    the DHCP range. This will be the real host IP
>    4. Foreman throws a "DHCP records <mac>/<IP> already exists" warning
>    and asks me if I want to overwrite it
>
> Is this the expected behavior? The lease is indeed there because of the
> PXE boot, so the conflict warning makes sense.
> I would like foreman to let me choose whatever IP I want for the host,
> instead.
> The conflict error appears even when configuring the IPAM dropdown in the
> subnet config to "none".
>
> I read a few threads dealing with the same situation but it's still not
> clear to me what would be the suggested DHCP deployment scenario.
>
> Thank you!
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Later,
  Lukas @lzap Zapletal

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to