Skip to content

Inconsistent State with avi_ipamdnsproviderprofile Leading to In-Place Update on Every Terraform Run #619

Open
@jakauppila

Description

@jakauppila

Describe the bug

When managing the avi_ipamdnsproviderprofile resource with the Terraform Provider for Avi, every Terraform plan/apply cycle reports changes even when there have been no modifications in the configuration. Specifically, the infoblox_profile block is flagged as changed on each run, creating unnecessary in-place updates.

Reproduction steps

  1. Configure an avi_ipamdnsproviderprofile resource in Terraform, including the infoblox_profile block.
  2. Run terraform apply.
  3. Run terraform plan again without making any changes to the Terraform configuration.
  4. Observe that Terraform still detects a change in the infoblox_profile block, prompting an update in-place.
terraform {
  required_providers {
    avi = {
      source  = "vmware/avi"
      version = "30.2.2"
    }
  }
}

provider "avi" {
  avi_username   = "USER"
  avi_password   = "PASSWORD"
  avi_controller = "avicontroller.contoso.com"
  avi_tenant     = "admin"
  avi_version    = "30.2.2"
}

resource "avi_ipamdnsproviderprofile" "infoblox-dns" {
  name               = "infoblox-dns"
  type               = "IPAMDNS_TYPE_INFOBLOX_DNS"
  infoblox_profile {
    ip_address {
      addr = "infoblox.contoso.com"
      type = "DNS"
    }
    dns_view = "Internal"
    network_view = "default"
    username = "INFOBLOX_USER"
    password = "INFOBLOX_PASSWORD"
    wapi_version = "2.12.3"
    usable_domains = [ "contoso.com" ]
  }
  allocate_ip_in_vrf = "false"
}

Expected behavior

Terraform should recognize the resource as unchanged if no configuration alterations have been made. The infoblox_profile block should not trigger an in-place update unless a genuine difference exists.

Additional context

Environment:

  • Terraform v1.8.0
  • terraform-provider-avi v30.2.2
  • AVI 30.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions