Bug 2207698

Summary: The `Suggest new` link in the interface tab beside IPv4 Address while creating a host is not suggesting any new IP even if there are many unused IPs in Infoblox
Product: Red Hat Satellite Reporter: sganar
Component: CapsuleAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: high Docs Contact:
Priority: medium    
Version: 6.14.0CC: ahumbe, aruzicka, ehelms, gtalreja, jpathan, lstejska, lzap, nalfassi, rlavi
Target Milestone: UnspecifiedKeywords: TestBlocker
Target Release: UnusedFlags: rlavi: needinfo? (jpathan)
rlavi: needinfo? (ehelms)
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 sganar 2023-05-16 15:05:08 UTC
Description of problem:
The `Suggest new` link in the interface tab beside IPv4 Address while creating a host is not suggesting any new IP even if there are many unused IPs in Infoblox

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


How reproducible:
always

Steps to Reproduce:
1. Do the Satellite and Infoblox integration
2. Create host > Interfaces > IPV4 address 


Actual results:
The ip is not displayed after a number of tries of clicking `suggest new`

Expected results:
The ip should be displayed after a number of tries of clicking `suggest new`

Additional info:

Comment 1 Brad Buckingham 2023-05-18 14:34:09 UTC
Is this a regression from earlier Satellite release?

Comment 2 sganar 2023-05-18 14:47:35 UTC
No, this is not a regression

Comment 6 Leos Stejskal 2023-05-29 11:48:57 UTC
Can you try to reproduce the issue without Infoblox, I believe it won't be related just to the Infoblox,
but more to clean up of IPs in the Capsule.

Can you also upload logs from the Capsule? I quote Nalfassi here:
> I discovered that the `start` method mentioned in this link (https://github.com/theforeman/smart-proxy/blob/develop/modules/dhcp_common/free_ips.rb#L41) is not invoked anywhere, and this is the root cause of the problem.

After providing the information (test with different providers, logs), we should move it to the Capsule component.