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.
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.
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.
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.
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.
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/23523 has been resolved.
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.