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

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

Open
jakauppila opened this issue Jan 21, 2025 · 0 comments
Labels

Comments

@jakauppila
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant