Feature #23406
closedForeman should pre allocate ip addresses in IPAM to prevent conflicts
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.
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.
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
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.
Updated by Anonymous over 6 years ago
- Related to Refactor #22622: Switch to smart-proxy's custom implementation of unused_ip functionality added
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.
Updated by Anonymous over 6 years ago
- Related to Bug #23523: Infoblox DHCP gives unreliable free IPs added