Project

General

Profile

Actions

Bug #5123

closed

Proxy reuses existing leases ignoring DHCP range specified

Added by Lukas Zapletal about 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Lukas Zapletal about 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

Actions #2

Updated by Dominic Cleal about 10 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 1.8.4
Actions #3

Updated by Anonymous about 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Dominic Cleal about 10 years ago

  • translation missing: en.field_release set to 4
Actions

Also available in: Atom PDF