Project

General

Profile

Feature #23406

Foreman should pre allocate ip addresses in IPAM to prevent conflicts

Added by Christian Meißner over 3 years ago. Updated over 3 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
DNS
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Actually foreman is looking for free ip addresses in ipam and setup these for new host creation. Clone virtual machine template and after that creates the ipam entries.

As far as good but if you start in two different session the creation of an host both of them get the same ip address.

This could be prevented if unused_ip pre allocated the collected ip.


Related issues

Related to Smart Proxy - Bug #20173: Concurrent calls to Subnet#unused_ip may return the same ip addressClosed2017-06-30
Related to Infoblox - Refactor #22622: Switch to smart-proxy's custom implementation of unused_ip functionalityClosed2018-02-20
Related to Infoblox - Bug #23523: Infoblox DHCP gives unreliable free IPsNew

History

#1 Updated by Lukas Zapletal over 3 years ago

  • Status changed from New to Resolved

Chris, this has been fixed in recent version of ISC DHCP plugin, so in Foreman 1.15.4+ this won't happen. The call "unused_ip" will "mark" the IP address as "already offered", see #20173 for implementation details. If you are using MS DHCP this has been fixed in 1.17 recently, see #20173 for more details. Other providers might use their own unused handling, that needs to be fixed too.

I am going to close this issue, go ahead and open it if you have Foreman 1.15.4+ but provide more details - Smart Proxy version, DHCP provider version in use.

#2 Updated by Lukas Zapletal over 3 years ago

  • Related to Bug #20173: Concurrent calls to Subnet#unused_ip may return the same ip address added

#3 Updated by Christian Meißner over 3 years ago

Lukas Zapletal wrote:

Chris, this has been fixed in recent version of ISC DHCP plugin, so in Foreman 1.15.4+ this won't happen. The call "unused_ip" will "mark" the IP address as "already offered", see #20173 for implementation details. If you are using MS DHCP this has been fixed in 1.17 recently, see #20173 for more details. Other providers might use their own unused handling, that needs to be fixed too.

I am going to close this issue, go ahead and open it if you have Foreman 1.15.4+ but provide more details - Smart Proxy version, DHCP provider version in use.

We use foreman from 1.15.x to 1.17 with dhcp_infoblox provider and run into this issue. So maybe this have to be assigned to that plugin.

#4 Updated by Dmitri Dolguikh over 3 years ago

  • Related to Refactor #22622: Switch to smart-proxy's custom implementation of unused_ip functionality added

#5 Updated by Dmitri Dolguikh over 3 years ago

  • Status changed from Resolved to Duplicate

Latest infoblox plugin is using the same implementation of free ip functionality as isc dhcpd and a few other providers, which has the behaviour explained by lzap. Please see http://projects.theforeman.org/issues/22622 for additional information.

#6 Updated by Dmitri Dolguikh about 3 years ago

  • Related to Bug #23523: Infoblox DHCP gives unreliable free IPs added

Also available in: Atom PDF