Project

General

Custom queries

Profile

Actions

Bug #23523

closed

Infoblox DHCP gives unreliable free IPs

Added by Sébastien Bernard about 7 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
DHCP plugin
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Since 1.17 upgrade, foreman dhcp proxy changed the way it gives free adresses.
We're seeing now random adresses from setup ranges being given.
However, we had randoms errors when creating hosts saying that the adresses used for the creation were not available.

What I'm seeing now is that foreman_proxy uses now the Proxy::DHCP::FreeIps::find_free_ips to get the new ips.
I'm not really sure this use the infoblox URL to get a new IPs from the infoblox reservation.

Instead it tries to generate a new random address from the <from -> to> range and tries to ping it with tcp_pingable? function or icmp_pingable? function.
However, the logic behind seems to be a little flawed.
Every error returned by the TCPSocket.new will be considered as adddresse available.
It assumes also that the host should be pingable from the foreman host.

I don't really know which module should be corrected, the smart_proxy or the infoblox_dhcp_plugin.
So I'm opening this issue on the main component.


Files

smart-proxy-patch-dhcp-free-ips.diff smart-proxy-patch-dhcp-free-ips.diff 1.21 KB Sébastien Bernard, 05/17/2018 10:57 PM

Related issues 3 (0 open3 closed)

Related to Smart Proxy - Refactor #22496: Suggest new IP does not workClosed02/02/2018Actions
Related to Smart Proxy - Bug #20173: Concurrent calls to Subnet#unused_ip may return the same ip addressClosed06/30/2017Actions
Related to Smart Proxy - Feature #23406: Foreman should pre allocate ip addresses in IPAM to prevent conflictsDuplicate04/26/2018Actions
#3

Updated by Anonymous about 7 years ago

  • Tracker changed from Bug to Support
#7

Updated by Anonymous about 7 years ago

#8

Updated by Anonymous about 7 years ago

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

Updated by Anonymous about 7 years ago

  • Related to Feature #23406: Foreman should pre allocate ip addresses in IPAM to prevent conflicts added
#11

Updated by Sébastien Bernard about 7 years ago

#12

Updated by Lukas Zapletal about 5 years ago

  • Tracker changed from Support to Bug
  • Project changed from Smart Proxy to Infoblox
  • Subject changed from infoblox DHCP gives unreliable free ips. to Infoblox DHCP gives unreliable free IPs
  • Category set to DHCP plugin
  • Triaged changed from No to Yes
#14

Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart_proxy_dhcp_infoblox/pull/50 added
#15

Updated by Tim Eilers over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF