Bug #5123
closedProxy reuses existing leases ignoring DHCP range specified
Description
Reported by Nick Jones.
I think the confusion comes about because the expected behaviour - having
filled out the autosuggestion range range in the Foreman UI - is that it'll
only return a suggested address from within that range. The function
within subnet.rb re-uses the existing lease if found for the autosuggestion
when it comes to provisioning, which may well be outside of this range when
you're using the auto discovery feature like we're doing.
Updated by Lukas Zapletal over 10 years ago
I think the behaviour we were expecting in pseudo code would be something
like :
if host has been provisioned before in foreman ( ie. it is a registered
host and has a static DHCP lease defined )
re-use existing dhcp record
elif host is a discovered host ( ie. it has a dynamic lease )
check autosuggestion range and suggest free IP
Updated by Dominic Cleal over 10 years ago
- Status changed from New to Ready For Testing
- Target version set to 1.8.4
Updated by Anonymous over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 54ee3a8a72d3f3f092d676d540cd60fd1abdb0bd.
Updated by Dominic Cleal over 10 years ago
- Translation missing: en.field_release set to 4