Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find 1 available IP address(es) in this network #314

Open
nigeldao007 opened this issue Aug 28, 2023 · 2 comments
Open

Cannot find 1 available IP address(es) in this network #314

nigeldao007 opened this issue Aug 28, 2023 · 2 comments

Comments

@nigeldao007
Copy link

This may not be an issue per se, it may be just with our understanding of how Infoblox/Terraform provider works. Please forgive my ignorance on this topic; I have reached out to our internal Infoblox support but that team is not sure how this works either.

In Infoblox Web UI, we can see a lot of unused IP addresses, but when the Terraform Infoblox provider makes a request for an IP allocation, we are getting this error back.

image

Any thoughts for what we may be doing wrong?

I believe the ip allocation block calls the next_available_ip function call but from Infoblox perspective, there's none left/available for it to give out, which makes me think next_available_ip API function does not look at the IP range in DHCP scope; can you please explain how this function works if possible?

@Hoonigan-013
Copy link

I'm facing the same issue, when infoblox has DHCP scope this problem happens.
I can get the next available ip with WAPI calls using data sources but it is not the better way.
The call that I made and works was like it:
https://username:[email protected]/wapi/version/**range?network**=10.10.10.0/24&start_addr~=.11&_return_as_object=1

So, I think to this resource works the call should be something as it.

Do you have some workaround to this problem?

@nigeldao007
Copy link
Author

Not sure if this is considered a workaround, but we decided to create new subnets dedicated for terraform provisioning (off limits to human/engineers) and without DHCP scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants