Closed mponton-cn closed 7 months ago
We will add this to our backlog and consider this in future releases. Thank you for highlighting this.
@SanjeevManurkar We opened ticket 00442189 on our end for this. As explained in the context of the original ticket, this will affect a Terraform code migration project very soon and will require us to work around the issue. Issue that is clearly a BUG in the provider and should be resolved. I expected better support from Infoblox considering the situation. This is not a feature request. I'm hoping you can review your position and address this quickly with a simple fix release.
We are considering to include fix for this in next release. I will update on timelines for this release in few days from now.
Hi @mponton-cn , we have fixed this issue with our new release v2.6.0 with PR #334
Hence closing this issue.
Summary
If you import a
HOST
record (after setting the properTerraform Internal ID
EA) that has an IP with NO MAC address set and then later try to update the record with Terraform, the Infoblox provider will panic.Steps to Reproduce
Given the follow sample
main.tf
:INFOBLOX_(SERVER|USERNAME|PASSWORD)
environment variables are set properly or specify authentication info to the provider in some other way.main.tf
file for your environment (dns_view
,fqdn
, andipv4_addr
)terraform init
.HOST
record in Infoblox (using the web UI or another tool than Terraform) with an IP address but NO MAC address. Ensure you set aTerraform Internal ID
extensible attribute with a unique value. e.g.:main.tf
and uncomment thecomment
input for the resource to trigger an update:terraform apply
, the provider will panicipv4_addr
, e.g.:terraform apply
, the provider will succeed:Extra Info
More Context
We are in the process of migrating Terraform code from a module using an non-native way of registering DNS names in Infoblox to the native Infoblox provider. Almost (if not all)
HOST
records to be imported have no MAC address. This means that without external intervention to update the records and add a dummy address, the resource imported cannot be update in the future. As you can imagine, we would really love to see this issue fixed.Thanks!