Skip to content

Version 7.21 broke oci_ocvp_sddc: causes update on every Apply #2463

@olkoko

Description

@olkoko

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version and Provider Version

Terraform v1.2.9
on darwin_arm64
+ provider registry.terraform.io/hashicorp/null v3.2.4
+ provider registry.terraform.io/oracle/oci v7.21.0

Affected Resource(s)

  • oci_ocvp_sddc

Terraform Configuration Files

resource "oci_ocvp_sddc" "cls1" {
  compartment_id          = var.applications_compartment_id
  freeform_tags           = var.freeform_tags
  defined_tags            = var.defined_tags
  display_name            = var.display_name
  is_single_host_sddc     = var.is_single_host_sddc
  is_hcx_enabled          = var.is_hcx_enabled
  ssh_authorized_keys     = var.ssh_authorized_keys
  vmware_software_version = var.vmware_software_version
  esxi_software_version   = var.esxi_software_version
  initial_configuration {
    initial_cluster_configurations {
      compute_availability_domain  = var.availability_domain
      display_name                 = var.cls1_display_name
      capacity_reservation_id      = var.cls1_capacity_reservation_id
      esxi_hosts_count             = var.cls1_hosts
      initial_host_ocpu_count      = var.cls1_ocpus
      initial_host_shape_name      = var.cls1_shape
      initial_commitment           = var.cls1_commitment
      vsphere_type                 = "MANAGEMENT"
      is_shielded_instance_enabled = false
      network_configuration {
        provisioning_subnet_id  = var.cls1_provisioning_subnet_id
        nsx_edge_vtep_vlan_id   = var.cls1_nsx_edge_vtep_vlan_id
        nsx_vtep_vlan_id        = var.cls1_nsx_vtep_vlan_id
        vmotion_vlan_id         = var.cls1_vmotion_vlan_id
        vsan_vlan_id            = var.cls1_vsan_vlan_id
        provisioning_vlan_id    = var.cls1_provisioning_vlan_id
        replication_vlan_id     = var.cls1_replication_vlan_id
        vsphere_vlan_id         = var.cls1_vsphere_vlan_id
        nsx_edge_uplink1vlan_id = var.cls1_nsx_edge_uplink1vlan_id
        nsx_edge_uplink2vlan_id = var.cls1_nsx_edge_uplink2vlan_id
        hcx_vlan_id             = var.cls1_hcx_vlan_id
      }
      datastores {
        datastore_type   = "MANAGEMENT"
        block_volume_ids = var.cls1_management_datastore_id
      }
    }
  }
  lifecycle { ignore_changes = [defined_tags, freeform_tags] }
  timeouts {
    create = "3h"
    delete = "30m"
  }
}

Expected Behavior

There should be no changes to oci_ocvp_sddc unless there was a change in Terraform Configuration File.

Actual Behavior

Terraform tries to update oci_ocvp_sddc on every apply, even when there was no changes in Terraform Configuration File.

  # oci_ocvp_sddc.cls1 will be updated in-place
  ~ resource "oci_ocvp_sddc" "cls1" {
        id                              = "ocid1.vmwaresddc.oc2.us-langley-1.<redacted>"
      + system_tags                     = (known after apply)
        # (33 unchanged attributes hidden)

        # (2 unchanged blocks hidden)
    }

Steps to Reproduce

  1. terraform apply

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-ProgressTerraform Team is working on the reproduce & fixbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions