Bug 1813953

Summary: [RFE] Free IPs Suggested are often already used in Infoblox records
Product: Red Hat Satellite Reporter: roarora
Component: Infoblox integrationAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: sganar
Severity: medium Docs Contact: Zuzana Lena Ansorgova <zuansorg>
Priority: unspecified    
Version: 6.6.0CC: ajambhul, bangelic, bhoppus, bkearney, dsinglet, georgerobinson, ktordeur, lstejska, lzap, pgozart, sadas, sganar, zuansorg
Target Milestone: 6.14.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
.Infoblox plugin no longer suggests IP addresses already in use Previously, when you used the Infoblox plugin as the DHCP provider, it suggested free IP addresses that were already in use. With this fix, you can configure the plugin to check the availability of IP addresses. The availability checks are enabled by default.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-08 14:17:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description roarora 2020-03-16 14:44:21 UTC
Description of problem:

When provisioning using Infoblox as DHCP provider, the free IP suggested is often already taken in infoblox records.

It seems that foreman-proxy just pings a random IP and selects it as free IP.

Pinging is blocked at times or host are down. In Satellite 6.7, pinging is optional via a setting but I am not sure how it will affect this behaviour. 

Version-Release number of selected component (if applicable):

Expected results:

foreman-proxy should check with infoblox and offer only unused IPs.

Comment 4 Lukas Zapletal 2020-03-18 10:12:30 UTC
Hello, let me explain how Infoblox integration was implemented into Satellite.

Our DHCP Capsule has a simple API to add/delete records and to find a free IP. It simply fetches all available IP reservations and picks the first free IP from the given range, tries to ICMP/TCP ping that IP and return it if it does not respond (this behavior can be turned off in newest version of Satellite). However it does NOT perform reservation via Infoblox IPAM API. This is the limitation of the currennt design where DHCP free IP handling is done by common DHCP module and implementations are not allowed to modify this behavior.

One of our upstream users suggested to perform PTR DNS search in addition to pings to ensure the IP is free, we could implement that. We are unlikely to rewrite DHCP handling completely from scratch in order to allow tighter Infoblox integration. However External IPAM feature is already in the works, we could write a provider for Infoblox that would actually allocate IP addresses using Infoblox instead of our DHCP Capsule. That would be the cleanest solution.

Comment 6 Lukas Zapletal 2020-03-31 14:57:06 UTC
At the moment, DHCP IPAM only avoids reservation on that DHCP server. It assumes that Satellite manages the network anyway, so all hosts from Satellite inventory are there. It does not perform a "cross-check", no.

Comment 18 George R 2022-07-11 16:33:41 UTC
I am asking the community to look into this issue again.  This isn't working for me as well on satellite 6.10.  It's probably time for a review and refresh of the smart-proxy as Infoblox NIOS API is now at 2.12.  Thank you.

Comment 19 Brad Buckingham 2022-09-02 20:25:18 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 23 Bryan Kearney 2022-09-20 12:01:28 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/23523 has been resolved.

Comment 28 sganar 2023-06-01 12:18:55 UTC
Verified.

Tested on Satellite 6.14.0 snap 1

Steps followed: 
1. Satellite + Infoblox Integration
2. provision a host and note the IP
3. Again provision some hosts and check if the IP suggested is not already in use 

Observation: 
Satellite and Infoblox Integration is working fine and the free IPs suggested while creating a host are not already used.

Comment 32 errata-xmlrpc 2023-11-08 14:17:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.14 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:6818

Comment 33 Red Hat Bugzilla 2024-06-09 04:25:02 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days