infobloxopen / terraform-provider-infoblox

Infoblox NIOS Terraform Provider
https://github.com/infobloxopen/terraform-provider-infoblox
Mozilla Public License 2.0
67 stars 77 forks source link

The version 2.1.0 creates host record on IP addresses which have "Used" mark. #235

Open wilber82 opened 2 years ago

wilber82 commented 2 years ago

I'm using the latest version 2.1.0, and the resource infoblox_ip_allocation. The code created the DNS record on the IP address even though it is marked as "Used". If I run it multiple times with different record names, it will create them on the same IP address.

The code:

resource "infoblox_ip_allocation" "alloc1" {
  fqdn = "test.contoso.com"
  ipv4_addr = "10.1.1.18"
}

Expected behavior: The provider throws out error messages to show the IP address has been used.

ranjishmp commented 2 years ago

@wilber82 We will take a look try to address this in next release

wilber82 commented 1 year ago

Any update?

It looks like this issue is not fixed.

wilber82 commented 1 year ago

Any updates?

praveenmnshet commented 1 year ago

Hi,

For infoblox_ip_allocation it is an expected behaviour. Because just we are allocating an ip-address and no MAC address associated.

Scenario 1: User cannot create Host record with same ip address when enable_dhcp=true option enabled under infoblox_ip_association resource block.

Scenario 2: User can create Host record with same ip address when enable_dhcp=false option enabled under infoblox_ip_association resource block