Bug #5123
closed
Proxy reuses existing leases ignoring DHCP range specified
Added by Lukas Zapletal about 11 years ago.
Updated almost 7 years ago.
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.
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
- Status changed from New to Ready For Testing
- Target version set to 1.8.4
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 4
Also available in: Atom
PDF