Project

General

Profile

Actions

Feature #23406

closed

Foreman should pre allocate ip addresses in IPAM to prevent conflicts

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

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
DNS
Target version:
-
Difficulty:
Triaged:
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 3 (0 open3 closed)

Related to Smart Proxy - Bug #20173: Concurrent calls to Subnet#unused_ip may return the same ip addressClosed06/30/2017Actions
Related to Infoblox - Refactor #22622: Switch to smart-proxy's custom implementation of unused_ip functionalityClosed02/20/2018Actions
Related to Infoblox - Bug #23523: Infoblox DHCP gives unreliable free IPsClosedActions
Actions #1

Updated by Lukas Zapletal over 6 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.

Actions #2

Updated by Lukas Zapletal over 6 years ago

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

Updated by Christian Meißner over 6 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.

Actions #4

Updated by Anonymous over 6 years ago

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

Updated by Anonymous over 6 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.

Actions #6

Updated by Anonymous over 6 years ago

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

Also available in: Atom PDF