terraform-provider-oci icon indicating copy to clipboard operation
terraform-provider-oci copied to clipboard

terraform cli failed to destroy compartment when the enable_delete is false(the default), yet reported as destroyed successful.

Open luckeyca opened this issue 1 year ago • 3 comments

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 -v Terraform v1.3.0 on linux_amd64

  • provider registry.terraform.io/oracle/oci v4.94.0

Affected Resource(s)

oci_iam_compartment

Terraform Configuration Files

main.tf

resource "oci_identity_compartment" "test_compartment" {
  compartment_id = "non-root-parent-compartment-ocid" (terraform ID only has full access to the parent compartment)
  name           = "test-cmp1"
  description    = "test compartment"
}

management policy for the terraform user group defined at the non-root parent compartment:

allow group terraform-admin-group to manage all-resources in compartment non-root-parent-compartment.

properly TF_VAR variables and OCI_CLI variables are set as below and are identical between the two sets

TF_VAR_tenancy_ocid=tenancy_ocid TF_VAR_user_ocid=terraform_user_ocid TF_VAR_private_key_password=api_key_password TF_VAR_fingerprint=api_key_fingerprint TF_VAR_private_key_path=encrypted_api_private_key TF_VAR_region=ca-toronto-1

OCI_CLI_TENANCY=tenancy_ocid OCI_CLI_USER=terraform_user_ocid OCI_CLI_PASSPHRASE=api_key_password OCI_CLI_FINGERPRINT=api_key_fingerprint OCI_CLI_KEY_FILE=encrypted_api_private_key OCI_CLI_REGION=ca-toronto-1

Expected Behavior

terraform plan, apply and destroy should all work

Actual Behavior

terraform plan and apply work, but destroy does NOT actually work. However, on screen it displays as worked.

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  - destroy

Terraform will perform the following actions:

  # oci_identity_compartment.test_compartment will be destroyed
  - resource "oci_identity_compartment" "test_compartment" {
      - compartment_id = "ocid1.compartment.oc1..423442343" -> null
      - defined_tags   = {
          - "Oracle-Tags.CreatedBy" = "default/oci163dev-cheng-compartment-terraform"
          - "Oracle-Tags.CreatedOn" = "2022-09-22T21:12:28.477Z"
        } -> null
      - description    = "test compartment" -> null
      - freeform_tags  = {} -> null
      - id             = "ocid1.compartment.oc1..dfsferwrwew" -> null
      - is_accessible  = true -> null
      - name           = "test-cmp" -> null
      - state          = "ACTIVE" -> null
      - time_created   = "2022-09-22 21:12:28.577 +0000 UTC" -> null
    }

Plan: 0 to add, 0 to change, 1 to destroy.
oci_identity_compartment.test_compartment: Destroying... [id=ocid1.compartment.oc1..dfsfdfdsfdsfsdfdsfsfds]
oci_identity_compartment.test_compartment: Destruction complete after 0s

Destroy complete! Resources: 1 destroyed.

When checking on OCI console, the test sub-compartment still exists and was NOT deleted. then using oci cli "oci iam compartment delete -c test-sub-compartment-ocid", the test sub-compartment was deleted ok. so it's not terraform id permission problem.

Steps to Reproduce

  1. export the identical environment variables TF_VAR_* and OCI_CLI_* with necessary api keys as details above.
  2. create test sub-compartment in a non-root compartment
resource "oci_identity_compartment" "test_compartment" {
  compartment_id = "non-root-parent-compartment-ocid" (terraform ID only has full access to the parent compartment)
  name           = "test-cmp1"
  description    = "test compartment"
}
  1. terraform plan, apply(both will succeed) and then destroy. the "destroy" reports as successful, but resource will stay.
  2. use oci cli delete fine.

Important Factoids

References

luckeyca avatar Sep 22 '22 21:09 luckeyca

also tested this issue happens to any compartment created under the root compartment as well. And I can confirm this is not a permission issue by taking off and re-applying the management policies. the policy does work for oci cli as expected, but for terraform cli, still plan/apply work, but destroy doesn't, yet the console messages says "destroyed" as reported.

I also tried the following policy with the same issue on terraform cli, but NO ISSUE with oci cli:

allow group terraform-admin-group to manage all-resources in tenancy.

luckeyca avatar Sep 23 '22 13:09 luckeyca

Trace Log:

2022-09-23T10:02:05.862-0400 [INFO]  Terraform version: 1.3.0
2022-09-23T10:02:05.862-0400 [DEBUG] using github.com/hashicorp/go-tfe v1.9.0
2022-09-23T10:02:05.862-0400 [DEBUG] using github.com/hashicorp/hcl/v2 v2.14.0
2022-09-23T10:02:05.862-0400 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2022-09-23T10:02:05.862-0400 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2022-09-23T10:02:05.862-0400 [DEBUG] using github.com/zclconf/go-cty v1.11.0
2022-09-23T10:02:05.862-0400 [INFO]  Go runtime version: go1.19.1
2022-09-23T10:02:05.862-0400 [INFO]  CLI args: []string{"terraform", "destroy", "-auto-approve"}
2022-09-23T10:02:05.862-0400 [TRACE] Stdout is a terminal of width 317
2022-09-23T10:02:05.862-0400 [TRACE] Stderr is a terminal of width 317
2022-09-23T10:02:05.862-0400 [TRACE] Stdin is a terminal
2022-09-23T10:02:05.862-0400 [DEBUG] Attempting to open CLI config file: /home/luc1/.terraformrc
2022-09-23T10:02:05.862-0400 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-09-23T10:02:05.863-0400 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-09-23T10:02:05.863-0400 [DEBUG] ignoring non-existing provider search directory /home/luc1/.terraform.d/plugins
2022-09-23T10:02:05.863-0400 [DEBUG] ignoring non-existing provider search directory /home/luc1/.local/share/terraform/plugins
2022-09-23T10:02:05.863-0400 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2022-09-23T10:02:05.863-0400 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2022-09-23T10:02:05.863-0400 [DEBUG] ignoring non-existing provider search directory /var/lib/snapd/desktop/terraform/plugins
2022-09-23T10:02:05.863-0400 [INFO]  CLI command args: []string{"destroy", "-auto-approve"}
2022-09-23T10:02:05.864-0400 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2022-09-23T10:02:05.864-0400 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2022-09-23T10:02:05.864-0400 [DEBUG] New state was assigned lineage "a4b7c614-4a0b-8c48-7b29-f22bc97f8334"
2022-09-23T10:02:05.864-0400 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2022-09-23T10:02:05.864-0400 [TRACE] Meta.Backend: instantiated backend of type <nil>
2022-09-23T10:02:05.864-0400 [TRACE] providercache.fillMetaCache: scanning directory .terraform/providers
2022-09-23T10:02:05.864-0400 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/oracle/oci v4.94.0 for linux_amd64 at .terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64
2022-09-23T10:02:05.864-0400 [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64 as a candidate package for registry.terraform.io/oracle/oci 4.94.0
2022-09-23T10:02:06.177-0400 [DEBUG] checking for provisioner in "."
2022-09-23T10:02:06.177-0400 [DEBUG] checking for provisioner in "/usr/local/bin"
2022-09-23T10:02:06.177-0400 [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend
2022-09-23T10:02:06.177-0400 [INFO]  backend/local: starting Apply operation
2022-09-23T10:02:06.177-0400 [TRACE] backend/local: requesting state manager for workspace "default"
2022-09-23T10:02:06.177-0400 [TRACE] backend/local: state manager for workspace "default" will:
 - read initial snapshot from terraform.tfstate
 - write new snapshots to terraform.tfstate
 - create any backup at terraform.tfstate.backup
2022-09-23T10:02:06.177-0400 [TRACE] backend/local: requesting state lock for workspace "default"
2022-09-23T10:02:06.177-0400 [TRACE] statemgr.Filesystem: preparing to manage state snapshots at terraform.tfstate
2022-09-23T10:02:06.178-0400 [TRACE] statemgr.Filesystem: existing snapshot has lineage "efa2fda7-fdf6-8881-8c05-24a5788d3bdf" serial 31
2022-09-23T10:02:06.178-0400 [TRACE] statemgr.Filesystem: locking terraform.tfstate using fcntl flock
2022-09-23T10:02:06.178-0400 [TRACE] statemgr.Filesystem: writing lock metadata to .terraform.tfstate.lock.info
2022-09-23T10:02:06.178-0400 [TRACE] backend/local: reading remote state for workspace "default"
2022-09-23T10:02:06.178-0400 [TRACE] statemgr.Filesystem: reading latest snapshot from terraform.tfstate
2022-09-23T10:02:06.178-0400 [TRACE] statemgr.Filesystem: read snapshot with lineage "efa2fda7-fdf6-8881-8c05-24a5788d3bdf" serial 31
2022-09-23T10:02:06.178-0400 [TRACE] backend/local: populating backend.LocalRun for current working directory
2022-09-23T10:02:06.178-0400 [TRACE] Config.VerifyDependencySelections: provider registry.terraform.io/oracle/oci has 4.94.0 to satisfy ">= 4.93.0, < 5.0.0"
2022-09-23T10:02:06.178-0400 [TRACE] terraform.NewContext: starting
2022-09-23T10:02:06.178-0400 [TRACE] terraform.NewContext: complete
2022-09-23T10:02:06.178-0400 [TRACE] backend/local: requesting interactive input, if necessary
2022-09-23T10:02:06.178-0400 [TRACE] LoadSchemas: retrieving schema for provider type "registry.terraform.io/oracle/oci"
2022-09-23T10:02:06.178-0400 [TRACE] terraform.contextPlugins: Initializing provider "registry.terraform.io/oracle/oci" to read its schema
2022-09-23T10:02:06.178-0400 [DEBUG] created provider logger: level=trace
2022-09-23T10:02:06.178-0400 [INFO]  provider: configuring client automatic mTLS
2022-09-23T10:02:06.194-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 args=[.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0]
2022-09-23T10:02:06.194-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 pid=1404
2022-09-23T10:02:06.194-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0
2022-09-23T10:02:06.232-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: 2022/09/23 10:02:06 [INFO] terraform-provider-oci 4.94.0
2022-09-23T10:02:06.232-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: 2022/09/23 10:02:06 Executable runs in Terraform plugin mode by default. For additional usage options, please run with the '-help' flag.
2022-09-23T10:02:06.233-0400 [INFO]  provider.terraform-provider-oci_v4.94.0: configuring server automatic mTLS: timestamp=2022-09-23T10:02:06.233-0400
2022-09-23T10:02:06.239-0400 [DEBUG] provider: using plugin: version=5
2022-09-23T10:02:06.239-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: plugin address: address=/tmp/plugin900781698 network=unix timestamp=2022-09-23T10:02:06.239-0400
2022-09-23T10:02:06.250-0400 [TRACE] GRPCProvider: GetProviderSchema
2022-09-23T10:02:06.250-0400 [TRACE] provider.stdio: waiting for stdio data
2022-09-23T10:02:06.409-0400 [TRACE] GRPCProvider: Close
2022-09-23T10:02:06.410-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2022-09-23T10:02:06.412-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 pid=1404
2022-09-23T10:02:06.412-0400 [DEBUG] provider: plugin exited
2022-09-23T10:02:06.412-0400 [TRACE] Context.Input: Prompting for provider arguments
2022-09-23T10:02:06.412-0400 [TRACE] Context.Input: Provider provider.oci declared at providers.tf:1,1-15
2022-09-23T10:02:06.412-0400 [TRACE] Context.Input: Input for provider.oci: map[string]cty.Value{}
2022-09-23T10:02:06.412-0400 [TRACE] backend/local: running validation operation
2022-09-23T10:02:06.412-0400 [DEBUG] Building and walking validate graph
2022-09-23T10:02:06.412-0400 [TRACE] building graph for walkValidate
2022-09-23T10:02:06.412-0400 [TRACE] Executing graph transform *terraform.ConfigTransformer
2022-09-23T10:02:06.412-0400 [TRACE] ConfigTransformer: Starting for path:
2022-09-23T10:02:06.412-0400 [TRACE] Completed graph transform *terraform.ConfigTransformer with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodeValidatableResource
  ------
2022-09-23T10:02:06.412-0400 [TRACE] Executing graph transform *terraform.RootVariableTransformer
2022-09-23T10:02:06.412-0400 [TRACE] Completed graph transform *terraform.RootVariableTransformer (no changes)
2022-09-23T10:02:06.412-0400 [TRACE] Executing graph transform *terraform.ModuleVariableTransformer
2022-09-23T10:02:06.412-0400 [TRACE] Completed graph transform *terraform.ModuleVariableTransformer (no changes)
2022-09-23T10:02:06.412-0400 [TRACE] Executing graph transform *terraform.LocalTransformer
2022-09-23T10:02:06.412-0400 [TRACE] Completed graph transform *terraform.LocalTransformer (no changes)
2022-09-23T10:02:06.412-0400 [TRACE] Executing graph transform *terraform.OutputTransformer
2022-09-23T10:02:06.412-0400 [TRACE] Completed graph transform *terraform.OutputTransformer (no changes)
2022-09-23T10:02:06.412-0400 [TRACE] Executing graph transform *terraform.OrphanResourceInstanceTransformer
2022-09-23T10:02:06.412-0400 [TRACE] Completed graph transform *terraform.OrphanResourceInstanceTransformer (no changes)
2022-09-23T10:02:06.412-0400 [TRACE] Executing graph transform *terraform.StateTransformer
2022-09-23T10:02:06.412-0400 [TRACE] StateTransformer: pointless no-op call, creating no nodes at all
2022-09-23T10:02:06.412-0400 [TRACE] Completed graph transform *terraform.StateTransformer (no changes)
2022-09-23T10:02:06.412-0400 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2022-09-23T10:02:06.412-0400 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2022-09-23T10:02:06.412-0400 [TRACE] Executing graph transform *terraform.OrphanOutputTransformer
2022-09-23T10:02:06.412-0400 [TRACE] Completed graph transform *terraform.OrphanOutputTransformer (no changes)
2022-09-23T10:02:06.412-0400 [TRACE] Executing graph transform *terraform.AttachResourceConfigTransformer
2022-09-23T10:02:06.412-0400 [TRACE] AttachResourceConfigTransformer: attaching to "oci_identity_compartment.test_compartment" (*terraform.NodeValidatableResource) config from main.tf:3,1-55
2022-09-23T10:02:06.412-0400 [TRACE] AttachResourceConfigTransformer: attaching provider meta configs to oci_identity_compartment.test_compartment
2022-09-23T10:02:06.412-0400 [TRACE] Completed graph transform *terraform.AttachResourceConfigTransformer (no changes)
2022-09-23T10:02:06.412-0400 [TRACE] Executing graph transform *terraform.graphTransformerMulti
2022-09-23T10:02:06.412-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderConfigTransformer
2022-09-23T10:02:06.412-0400 [TRACE] ProviderConfigTransformer: attaching to "provider[\"registry.terraform.io/oracle/oci\"]" provider configuration from providers.tf:1,1-15
2022-09-23T10:02:06.412-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderConfigTransformer with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodeValidatableResource
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:06.412-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.MissingProviderTransformer
2022-09-23T10:02:06.412-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.MissingProviderTransformer (no changes)
2022-09-23T10:02:06.412-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderTransformer
2022-09-23T10:02:06.412-0400 [TRACE] ProviderTransformer: exact match for provider["registry.terraform.io/oracle/oci"] serving oci_identity_compartment.test_compartment
2022-09-23T10:02:06.413-0400 [DEBUG] ProviderTransformer: "oci_identity_compartment.test_compartment" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:06.413-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderTransformer with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodeValidatableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:06.413-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.PruneProviderTransformer
2022-09-23T10:02:06.413-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.PruneProviderTransformer (no changes)
2022-09-23T10:02:06.413-0400 [TRACE] Completed graph transform *terraform.graphTransformerMulti with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodeValidatableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:06.413-0400 [TRACE] Executing graph transform *terraform.RemovedModuleTransformer
2022-09-23T10:02:06.413-0400 [TRACE] Completed graph transform *terraform.RemovedModuleTransformer (no changes)
2022-09-23T10:02:06.413-0400 [TRACE] Executing graph transform *terraform.AttachSchemaTransformer
2022-09-23T10:02:06.413-0400 [TRACE] AttachSchemaTransformer: attaching provider config schema to provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:06.413-0400 [TRACE] AttachSchemaTransformer: attaching resource schema to oci_identity_compartment.test_compartment
2022-09-23T10:02:06.413-0400 [TRACE] Completed graph transform *terraform.AttachSchemaTransformer (no changes)
2022-09-23T10:02:06.413-0400 [TRACE] Executing graph transform *terraform.ModuleExpansionTransformer
2022-09-23T10:02:06.413-0400 [TRACE] Completed graph transform *terraform.ModuleExpansionTransformer (no changes)
2022-09-23T10:02:06.413-0400 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2022-09-23T10:02:06.413-0400 [DEBUG] ReferenceTransformer: "oci_identity_compartment.test_compartment" references: []
2022-09-23T10:02:06.413-0400 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/oracle/oci\"]" references: []
2022-09-23T10:02:06.413-0400 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2022-09-23T10:02:06.413-0400 [TRACE] Executing graph transform *terraform.AttachDependenciesTransformer
2022-09-23T10:02:06.413-0400 [TRACE] Completed graph transform *terraform.AttachDependenciesTransformer (no changes)
2022-09-23T10:02:06.413-0400 [TRACE] Executing graph transform *terraform.attachDataResourceDependsOnTransformer
2022-09-23T10:02:06.413-0400 [TRACE] Completed graph transform *terraform.attachDataResourceDependsOnTransformer (no changes)
2022-09-23T10:02:06.413-0400 [TRACE] Executing graph transform *terraform.DestroyEdgeTransformer
2022-09-23T10:02:06.413-0400 [TRACE] Completed graph transform *terraform.DestroyEdgeTransformer (no changes)
2022-09-23T10:02:06.413-0400 [TRACE] Executing graph transform *terraform.TargetsTransformer
2022-09-23T10:02:06.413-0400 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2022-09-23T10:02:06.413-0400 [TRACE] Executing graph transform *terraform.ForcedCBDTransformer
2022-09-23T10:02:06.413-0400 [TRACE] Completed graph transform *terraform.ForcedCBDTransformer (no changes)
2022-09-23T10:02:06.413-0400 [TRACE] Executing graph transform *terraform.CloseProviderTransformer
2022-09-23T10:02:06.413-0400 [TRACE] Completed graph transform *terraform.CloseProviderTransformer with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodeValidatableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment - *terraform.NodeValidatableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:06.413-0400 [TRACE] Executing graph transform *terraform.CloseRootModuleTransformer
2022-09-23T10:02:06.413-0400 [TRACE] Completed graph transform *terraform.CloseRootModuleTransformer with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodeValidatableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment - *terraform.NodeValidatableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  root - *terraform.nodeCloseModule
    provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
  ------
2022-09-23T10:02:06.413-0400 [TRACE] Executing graph transform *terraform.TransitiveReductionTransformer
2022-09-23T10:02:06.413-0400 [TRACE] Completed graph transform *terraform.TransitiveReductionTransformer with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodeValidatableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment - *terraform.NodeValidatableResource
  root - *terraform.nodeCloseModule
    provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
  ------
2022-09-23T10:02:06.413-0400 [DEBUG] Starting graph walk: walkValidate
2022-09-23T10:02:06.413-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"]": starting visit (*terraform.NodeApplyableProvider)
2022-09-23T10:02:06.413-0400 [DEBUG] created provider logger: level=trace
2022-09-23T10:02:06.413-0400 [INFO]  provider: configuring client automatic mTLS
2022-09-23T10:02:06.420-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 args=[.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0]
2022-09-23T10:02:06.420-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 pid=1420
2022-09-23T10:02:06.420-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0
2022-09-23T10:02:06.451-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: 2022/09/23 10:02:06 [INFO] terraform-provider-oci 4.94.0
2022-09-23T10:02:06.451-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: 2022/09/23 10:02:06 Executable runs in Terraform plugin mode by default. For additional usage options, please run with the '-help' flag.
2022-09-23T10:02:06.451-0400 [INFO]  provider.terraform-provider-oci_v4.94.0: configuring server automatic mTLS: timestamp=2022-09-23T10:02:06.451-0400
2022-09-23T10:02:06.458-0400 [DEBUG] provider: using plugin: version=5
2022-09-23T10:02:06.458-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: plugin address: address=/tmp/plugin2460001701 network=unix timestamp=2022-09-23T10:02:06.458-0400
2022-09-23T10:02:06.469-0400 [TRACE] BuiltinEvalContext: Initialized "provider[\"registry.terraform.io/oracle/oci\"]" provider for provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:06.469-0400 [TRACE] provider.stdio: waiting for stdio data
2022-09-23T10:02:06.469-0400 [TRACE] NodeApplyableProvider: validating configuration for provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:06.469-0400 [TRACE] buildProviderConfig for provider["registry.terraform.io/oracle/oci"]: using explicit config only
2022-09-23T10:02:06.469-0400 [TRACE] GRPCProvider: GetProviderSchema
2022-09-23T10:02:06.625-0400 [TRACE] GRPCProvider: ValidateProviderConfig
2022-09-23T10:02:06.742-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"]": visit complete
2022-09-23T10:02:06.742-0400 [TRACE] vertex "oci_identity_compartment.test_compartment": starting visit (*terraform.NodeValidatableResource)
2022-09-23T10:02:06.742-0400 [TRACE] GRPCProvider: ValidateResourceConfig
2022-09-23T10:02:06.743-0400 [TRACE] vertex "oci_identity_compartment.test_compartment": visit complete
2022-09-23T10:02:06.743-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"] (close)": starting visit (*terraform.graphNodeCloseProvider)
2022-09-23T10:02:06.743-0400 [TRACE] GRPCProvider: Close
2022-09-23T10:02:06.743-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2022-09-23T10:02:06.745-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 pid=1420
2022-09-23T10:02:06.745-0400 [DEBUG] provider: plugin exited
2022-09-23T10:02:06.745-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"] (close)": visit complete
2022-09-23T10:02:06.745-0400 [TRACE] vertex "root": starting visit (*terraform.nodeCloseModule)
2022-09-23T10:02:06.745-0400 [TRACE] vertex "root": visit complete
2022-09-23T10:02:06.746-0400 [TRACE] LoadSchemas: retrieving schema for provider type "registry.terraform.io/oracle/oci"
2022-09-23T10:02:06.746-0400 [INFO]  backend/local: apply calling Plan
2022-09-23T10:02:06.746-0400 [TRACE] Context.destroyPlan: calling Context.plan to get the effect of refreshing the prior state
2022-09-23T10:02:06.746-0400 [DEBUG] Building and walking plan graph for NormalMode
2022-09-23T10:02:06.746-0400 [TRACE] building graph for walkPlan
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.ConfigTransformer
2022-09-23T10:02:06.746-0400 [TRACE] ConfigTransformer: Starting for path:
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.ConfigTransformer with new graph:
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandPlannableResource
  ------
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.RootVariableTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.RootVariableTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.ModuleVariableTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.ModuleVariableTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.LocalTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.LocalTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.OutputTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.OutputTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.OrphanResourceInstanceTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.OrphanResourceInstanceTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.StateTransformer
2022-09-23T10:02:06.746-0400 [TRACE] StateTransformer: creating nodes for deposed instance objects only
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.StateTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.OrphanOutputTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.OrphanOutputTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.AttachResourceConfigTransformer
2022-09-23T10:02:06.746-0400 [TRACE] AttachResourceConfigTransformer: attaching to "oci_identity_compartment.test_compartment (expand)" (*terraform.nodeExpandPlannableResource) config from main.tf:3,1-55
2022-09-23T10:02:06.746-0400 [TRACE] AttachResourceConfigTransformer: attaching provider meta configs to oci_identity_compartment.test_compartment (expand)
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.AttachResourceConfigTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.graphTransformerMulti
2022-09-23T10:02:06.746-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderConfigTransformer
2022-09-23T10:02:06.746-0400 [TRACE] ProviderConfigTransformer: attaching to "provider[\"registry.terraform.io/oracle/oci\"]" provider configuration from providers.tf:1,1-15
2022-09-23T10:02:06.746-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderConfigTransformer with new graph:
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandPlannableResource
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:06.746-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.MissingProviderTransformer
2022-09-23T10:02:06.746-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.MissingProviderTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderTransformer
2022-09-23T10:02:06.746-0400 [TRACE] ProviderTransformer: exact match for provider["registry.terraform.io/oracle/oci"] serving oci_identity_compartment.test_compartment (expand)
2022-09-23T10:02:06.746-0400 [DEBUG] ProviderTransformer: "oci_identity_compartment.test_compartment (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:06.746-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderTransformer with new graph:
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandPlannableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:06.746-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.PruneProviderTransformer
2022-09-23T10:02:06.746-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.PruneProviderTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.graphTransformerMulti with new graph:
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandPlannableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.RemovedModuleTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.RemovedModuleTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.AttachSchemaTransformer
2022-09-23T10:02:06.746-0400 [TRACE] AttachSchemaTransformer: attaching resource schema to oci_identity_compartment.test_compartment (expand)
2022-09-23T10:02:06.746-0400 [TRACE] AttachSchemaTransformer: attaching provider config schema to provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.AttachSchemaTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.ModuleExpansionTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.ModuleExpansionTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2022-09-23T10:02:06.746-0400 [DEBUG] ReferenceTransformer: "oci_identity_compartment.test_compartment (expand)" references: []
2022-09-23T10:02:06.746-0400 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/oracle/oci\"]" references: []
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.AttachDependenciesTransformer
2022-09-23T10:02:06.746-0400 [TRACE] AttachDependenciesTransformer: oci_identity_compartment.test_compartment depends on []
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.AttachDependenciesTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.attachDataResourceDependsOnTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.attachDataResourceDependsOnTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.DestroyEdgeTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.DestroyEdgeTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.TargetsTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.ForcedCBDTransformer
2022-09-23T10:02:06.746-0400 [TRACE] ForcedCBDTransformer: "oci_identity_compartment.test_compartment (expand)" (*terraform.nodeExpandPlannableResource) has no CBD descendent, so skipping
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.ForcedCBDTransformer (no changes)
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.CloseProviderTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.CloseProviderTransformer with new graph:
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandPlannableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandPlannableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.CloseRootModuleTransformer
2022-09-23T10:02:06.746-0400 [TRACE] Completed graph transform *terraform.CloseRootModuleTransformer with new graph:
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandPlannableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandPlannableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  root - *terraform.nodeCloseModule
    provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
  ------
2022-09-23T10:02:06.746-0400 [TRACE] Executing graph transform *terraform.TransitiveReductionTransformer
2022-09-23T10:02:06.747-0400 [TRACE] Completed graph transform *terraform.TransitiveReductionTransformer with new graph:
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandPlannableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandPlannableResource
  root - *terraform.nodeCloseModule
    provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
  ------
2022-09-23T10:02:06.747-0400 [DEBUG] Starting graph walk: walkPlan
2022-09-23T10:02:06.747-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"]": starting visit (*terraform.NodeApplyableProvider)
2022-09-23T10:02:06.747-0400 [DEBUG] created provider logger: level=trace
2022-09-23T10:02:06.747-0400 [INFO]  provider: configuring client automatic mTLS
2022-09-23T10:02:06.753-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 args=[.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0]
2022-09-23T10:02:06.753-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 pid=1434
2022-09-23T10:02:06.753-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0
2022-09-23T10:02:06.790-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: 2022/09/23 10:02:06 [INFO] terraform-provider-oci 4.94.0
2022-09-23T10:02:06.790-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: 2022/09/23 10:02:06 Executable runs in Terraform plugin mode by default. For additional usage options, please run with the '-help' flag.
2022-09-23T10:02:06.791-0400 [INFO]  provider.terraform-provider-oci_v4.94.0: configuring server automatic mTLS: timestamp=2022-09-23T10:02:06.791-0400
2022-09-23T10:02:06.797-0400 [DEBUG] provider: using plugin: version=5
2022-09-23T10:02:06.797-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: plugin address: address=/tmp/plugin2886988451 network=unix timestamp=2022-09-23T10:02:06.797-0400
2022-09-23T10:02:06.808-0400 [TRACE] BuiltinEvalContext: Initialized "provider[\"registry.terraform.io/oracle/oci\"]" provider for provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:06.808-0400 [TRACE] NodeApplyableProvider: configuring provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:06.808-0400 [TRACE] buildProviderConfig for provider["registry.terraform.io/oracle/oci"]: using explicit config only
2022-09-23T10:02:06.808-0400 [TRACE] provider.stdio: waiting for stdio data
2022-09-23T10:02:06.808-0400 [TRACE] GRPCProvider: GetProviderSchema
2022-09-23T10:02:06.954-0400 [TRACE] GRPCProvider: ValidateProviderConfig
2022-09-23T10:02:07.069-0400 [WARN]  ValidateProviderConfig from "provider[\"registry.terraform.io/oracle/oci\"]" changed the config value, but that value is unused
2022-09-23T10:02:07.069-0400 [TRACE] GRPCProvider: ConfigureProvider
2022-09-23T10:02:07.081-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"]": visit complete
2022-09-23T10:02:07.082-0400 [TRACE] vertex "oci_identity_compartment.test_compartment (expand)": starting visit (*terraform.nodeExpandPlannableResource)
2022-09-23T10:02:07.082-0400 [TRACE] vertex "oci_identity_compartment.test_compartment (expand)": expanding dynamic subgraph
2022-09-23T10:02:07.082-0400 [TRACE] vertex "oci_identity_compartment.test_compartment (expand)": entering dynamic subgraph
2022-09-23T10:02:07.082-0400 [TRACE] vertex "oci_identity_compartment.test_compartment": starting visit (*terraform.NodePlannableResource)
2022-09-23T10:02:07.082-0400 [TRACE] vertex "oci_identity_compartment.test_compartment": expanding dynamic subgraph
2022-09-23T10:02:07.082-0400 [TRACE] Executing graph transform *terraform.ResourceCountTransformer
2022-09-23T10:02:07.082-0400 [TRACE] ResourceCountTransformer: adding oci_identity_compartment.test_compartment as *terraform.NodePlannableResourceInstance
2022-09-23T10:02:07.082-0400 [TRACE] Completed graph transform *terraform.ResourceCountTransformer with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodePlannableResourceInstance
  ------
2022-09-23T10:02:07.082-0400 [TRACE] Executing graph transform *terraform.OrphanResourceInstanceCountTransformer
2022-09-23T10:02:07.082-0400 [TRACE] Completed graph transform *terraform.OrphanResourceInstanceCountTransformer (no changes)
2022-09-23T10:02:07.082-0400 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2022-09-23T10:02:07.082-0400 [TRACE] NodeAbstractResourceInstance.AttachResourceState for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.082-0400 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2022-09-23T10:02:07.082-0400 [TRACE] Executing graph transform *terraform.TargetsTransformer
2022-09-23T10:02:07.082-0400 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2022-09-23T10:02:07.082-0400 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2022-09-23T10:02:07.082-0400 [DEBUG] ReferenceTransformer: "oci_identity_compartment.test_compartment" references: []
2022-09-23T10:02:07.082-0400 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2022-09-23T10:02:07.082-0400 [TRACE] Executing graph transform *terraform.RootTransformer
2022-09-23T10:02:07.082-0400 [TRACE] Completed graph transform *terraform.RootTransformer (no changes)
2022-09-23T10:02:07.082-0400 [TRACE] vertex "oci_identity_compartment.test_compartment": entering dynamic subgraph
2022-09-23T10:02:07.082-0400 [TRACE] vertex "oci_identity_compartment.test_compartment": starting visit (*terraform.NodePlannableResourceInstance)
2022-09-23T10:02:07.082-0400 [TRACE] readResourceInstanceState: reading state for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.082-0400 [TRACE] upgradeResourceState: schema version of oci_identity_compartment.test_compartment is still 0; calling provider "oci" for any other minor fixups
2022-09-23T10:02:07.082-0400 [TRACE] GRPCProvider: UpgradeResourceState
2022-09-23T10:02:07.084-0400 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to prevRunState for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.084-0400 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: writing state object for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.084-0400 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to refreshState for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.084-0400 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: writing state object for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.084-0400 [TRACE] NodeAbstractResourceInstance.refresh for oci_identity_compartment.test_compartment
oci_identity_compartment.test_compartment: Refreshing state... [id=ocid1.compartment.oc1..aaaaaaaangejqtb332kzpit4o6i3uoxzsiqevwulvxcjenp3rzgpp4trczra]
2022-09-23T10:02:07.084-0400 [TRACE] GRPCProvider: ReadResource
2022-09-23T10:02:07.160-0400 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to refreshState for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.160-0400 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: writing state object for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.161-0400 [TRACE] Re-validating config for "oci_identity_compartment.test_compartment"
2022-09-23T10:02:07.161-0400 [TRACE] GRPCProvider: ValidateResourceConfig
2022-09-23T10:02:07.161-0400 [TRACE] GRPCProvider: PlanResourceChange
2022-09-23T10:02:07.163-0400 [TRACE] writeChange: recorded NoOp change for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.163-0400 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to workingState for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.163-0400 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: writing state object for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.163-0400 [TRACE] vertex "oci_identity_compartment.test_compartment": visit complete
2022-09-23T10:02:07.163-0400 [TRACE] vertex "oci_identity_compartment.test_compartment": dynamic subgraph completed successfully
2022-09-23T10:02:07.163-0400 [TRACE] vertex "oci_identity_compartment.test_compartment": visit complete
2022-09-23T10:02:07.163-0400 [TRACE] vertex "oci_identity_compartment.test_compartment (expand)": dynamic subgraph completed successfully
2022-09-23T10:02:07.163-0400 [TRACE] vertex "oci_identity_compartment.test_compartment (expand)": visit complete
2022-09-23T10:02:07.163-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"] (close)": starting visit (*terraform.graphNodeCloseProvider)
2022-09-23T10:02:07.163-0400 [TRACE] GRPCProvider: Close
2022-09-23T10:02:07.164-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2022-09-23T10:02:07.166-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 pid=1434
2022-09-23T10:02:07.166-0400 [DEBUG] provider: plugin exited
2022-09-23T10:02:07.166-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"] (close)": visit complete
2022-09-23T10:02:07.166-0400 [TRACE] vertex "root": starting visit (*terraform.nodeCloseModule)
2022-09-23T10:02:07.166-0400 [TRACE] vertex "root": visit complete
2022-09-23T10:02:07.167-0400 [TRACE] Context.destroyPlan: now _really_ creating a destroy plan
2022-09-23T10:02:07.167-0400 [DEBUG] Building and walking plan graph for DestroyMode
2022-09-23T10:02:07.167-0400 [TRACE] building graph for walkPlanDestroy
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.ConfigTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.ConfigTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.RootVariableTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.RootVariableTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.ModuleVariableTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.ModuleVariableTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.LocalTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.LocalTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.OutputTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.OutputTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.OrphanResourceInstanceTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.OrphanResourceInstanceTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.StateTransformer
2022-09-23T10:02:07.167-0400 [TRACE] StateTransformer: creating nodes for both current and deposed instance objects
2022-09-23T10:02:07.167-0400 [TRACE] StateTransformer: added *terraform.NodePlanDestroyableResourceInstance for oci_identity_compartment.test_compartment current object
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.StateTransformer with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodePlanDestroyableResourceInstance
  ------
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2022-09-23T10:02:07.167-0400 [TRACE] NodeAbstractResourceInstance.AttachResourceState for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.OrphanOutputTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.OrphanOutputTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.AttachResourceConfigTransformer
2022-09-23T10:02:07.167-0400 [TRACE] AttachResourceConfigTransformer: attaching to "oci_identity_compartment.test_compartment" (*terraform.NodePlanDestroyableResourceInstance) config from main.tf:3,1-55
2022-09-23T10:02:07.167-0400 [TRACE] AttachResourceConfigTransformer: attaching provider meta configs to oci_identity_compartment.test_compartment
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.AttachResourceConfigTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.graphTransformerMulti
2022-09-23T10:02:07.167-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderConfigTransformer
2022-09-23T10:02:07.167-0400 [TRACE] ProviderConfigTransformer: attaching to "provider[\"registry.terraform.io/oracle/oci\"]" provider configuration from providers.tf:1,1-15
2022-09-23T10:02:07.167-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderConfigTransformer with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodePlanDestroyableResourceInstance
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.167-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.MissingProviderTransformer
2022-09-23T10:02:07.167-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.MissingProviderTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderTransformer
2022-09-23T10:02:07.167-0400 [TRACE] ProviderTransformer: exact match for provider["registry.terraform.io/oracle/oci"] serving oci_identity_compartment.test_compartment
2022-09-23T10:02:07.167-0400 [DEBUG] ProviderTransformer: "oci_identity_compartment.test_compartment" (*terraform.NodePlanDestroyableResourceInstance) needs provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:07.167-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderTransformer with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodePlanDestroyableResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.167-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.PruneProviderTransformer
2022-09-23T10:02:07.167-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.PruneProviderTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.graphTransformerMulti with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodePlanDestroyableResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.RemovedModuleTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.RemovedModuleTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.AttachSchemaTransformer
2022-09-23T10:02:07.167-0400 [TRACE] AttachSchemaTransformer: attaching resource schema to oci_identity_compartment.test_compartment
2022-09-23T10:02:07.167-0400 [TRACE] AttachSchemaTransformer: attaching provider config schema to provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.AttachSchemaTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.ModuleExpansionTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.ModuleExpansionTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2022-09-23T10:02:07.167-0400 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/oracle/oci\"]" references: []
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.AttachDependenciesTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.AttachDependenciesTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.attachDataResourceDependsOnTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.attachDataResourceDependsOnTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.DestroyEdgeTransformer
2022-09-23T10:02:07.167-0400 [TRACE] DestroyEdgeTransformer: "oci_identity_compartment.test_compartment" (*terraform.NodePlanDestroyableResourceInstance) destroys oci_identity_compartment.test_compartment
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.DestroyEdgeTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.TargetsTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.ForcedCBDTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.ForcedCBDTransformer (no changes)
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.CloseProviderTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.CloseProviderTransformer with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodePlanDestroyableResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment - *terraform.NodePlanDestroyableResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.CloseRootModuleTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.CloseRootModuleTransformer with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodePlanDestroyableResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment - *terraform.NodePlanDestroyableResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  root - *terraform.nodeCloseModule
    provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
  ------
2022-09-23T10:02:07.167-0400 [TRACE] Executing graph transform *terraform.TransitiveReductionTransformer
2022-09-23T10:02:07.167-0400 [TRACE] Completed graph transform *terraform.TransitiveReductionTransformer with new graph:
  oci_identity_compartment.test_compartment - *terraform.NodePlanDestroyableResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment - *terraform.NodePlanDestroyableResourceInstance
  root - *terraform.nodeCloseModule
    provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
  ------
2022-09-23T10:02:07.168-0400 [DEBUG] Starting graph walk: walkPlanDestroy
2022-09-23T10:02:07.168-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"]": starting visit (*terraform.NodeApplyableProvider)
2022-09-23T10:02:07.168-0400 [DEBUG] created provider logger: level=trace
2022-09-23T10:02:07.168-0400 [INFO]  provider: configuring client automatic mTLS
2022-09-23T10:02:07.173-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 args=[.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0]
2022-09-23T10:02:07.174-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 pid=1448
2022-09-23T10:02:07.174-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0
2022-09-23T10:02:07.206-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: 2022/09/23 10:02:07 [INFO] terraform-provider-oci 4.94.0
2022-09-23T10:02:07.206-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: 2022/09/23 10:02:07 Executable runs in Terraform plugin mode by default. For additional usage options, please run with the '-help' flag.
2022-09-23T10:02:07.207-0400 [INFO]  provider.terraform-provider-oci_v4.94.0: configuring server automatic mTLS: timestamp=2022-09-23T10:02:07.207-0400
2022-09-23T10:02:07.215-0400 [DEBUG] provider: using plugin: version=5
2022-09-23T10:02:07.215-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: plugin address: address=/tmp/plugin3970943711 network=unix timestamp=2022-09-23T10:02:07.215-0400
2022-09-23T10:02:07.226-0400 [TRACE] BuiltinEvalContext: Initialized "provider[\"registry.terraform.io/oracle/oci\"]" provider for provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:07.226-0400 [TRACE] NodeApplyableProvider: configuring provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:07.226-0400 [TRACE] buildProviderConfig for provider["registry.terraform.io/oracle/oci"]: using explicit config only
2022-09-23T10:02:07.226-0400 [TRACE] GRPCProvider: GetProviderSchema
2022-09-23T10:02:07.226-0400 [TRACE] provider.stdio: waiting for stdio data
2022-09-23T10:02:07.373-0400 [TRACE] GRPCProvider: ValidateProviderConfig
2022-09-23T10:02:07.487-0400 [WARN]  ValidateProviderConfig from "provider[\"registry.terraform.io/oracle/oci\"]" changed the config value, but that value is unused
2022-09-23T10:02:07.487-0400 [TRACE] GRPCProvider: ConfigureProvider
2022-09-23T10:02:07.499-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"]": visit complete
2022-09-23T10:02:07.499-0400 [TRACE] vertex "oci_identity_compartment.test_compartment": starting visit (*terraform.NodePlanDestroyableResourceInstance)
2022-09-23T10:02:07.499-0400 [TRACE] readResourceInstanceState: reading state for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.499-0400 [TRACE] upgradeResourceState: schema version of oci_identity_compartment.test_compartment is still 0; calling provider "oci" for any other minor fixups
2022-09-23T10:02:07.499-0400 [TRACE] GRPCProvider: UpgradeResourceState
2022-09-23T10:02:07.500-0400 [TRACE] GRPCProvider: PlanResourceChange
2022-09-23T10:02:07.500-0400 [TRACE] writeChange: recorded Delete change for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.500-0400 [TRACE] vertex "oci_identity_compartment.test_compartment": visit complete
2022-09-23T10:02:07.500-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"] (close)": starting visit (*terraform.graphNodeCloseProvider)
2022-09-23T10:02:07.500-0400 [TRACE] GRPCProvider: Close
2022-09-23T10:02:07.501-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2022-09-23T10:02:07.502-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 pid=1448
2022-09-23T10:02:07.502-0400 [DEBUG] provider: plugin exited
2022-09-23T10:02:07.502-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"] (close)": visit complete
2022-09-23T10:02:07.502-0400 [TRACE] vertex "root": starting visit (*terraform.nodeCloseModule)
2022-09-23T10:02:07.502-0400 [TRACE] vertex "root": visit complete
2022-09-23T10:02:07.502-0400 [TRACE] LoadSchemas: retrieving schema for provider type "registry.terraform.io/oracle/oci"
2022-09-23T10:02:07.502-0400 [TRACE] LoadSchemas: retrieving schema for provider type "registry.terraform.io/oracle/oci"
2022-09-23T10:02:07.502-0400 [DEBUG] building apply graph to check for errors
2022-09-23T10:02:07.502-0400 [TRACE] Executing graph transform *terraform.ConfigTransformer
2022-09-23T10:02:07.502-0400 [TRACE] ConfigTransformer: Starting for path:
2022-09-23T10:02:07.502-0400 [TRACE] Completed graph transform *terraform.ConfigTransformer with new graph:
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandApplyableResource
  ------
2022-09-23T10:02:07.502-0400 [TRACE] Executing graph transform *terraform.RootVariableTransformer
2022-09-23T10:02:07.502-0400 [TRACE] Completed graph transform *terraform.RootVariableTransformer (no changes)
2022-09-23T10:02:07.502-0400 [TRACE] Executing graph transform *terraform.ModuleVariableTransformer
2022-09-23T10:02:07.502-0400 [TRACE] Completed graph transform *terraform.ModuleVariableTransformer (no changes)
2022-09-23T10:02:07.502-0400 [TRACE] Executing graph transform *terraform.LocalTransformer
2022-09-23T10:02:07.502-0400 [TRACE] Completed graph transform *terraform.LocalTransformer (no changes)
2022-09-23T10:02:07.502-0400 [TRACE] Executing graph transform *terraform.OutputTransformer
2022-09-23T10:02:07.502-0400 [TRACE] Completed graph transform *terraform.OutputTransformer (no changes)
2022-09-23T10:02:07.502-0400 [TRACE] Executing graph transform *terraform.DiffTransformer
2022-09-23T10:02:07.502-0400 [TRACE] DiffTransformer starting
2022-09-23T10:02:07.502-0400 [TRACE] DiffTransformer: found Delete change for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.502-0400 [TRACE] DiffTransformer: oci_identity_compartment.test_compartment will be represented for destruction by oci_identity_compartment.test_compartment (destroy)
2022-09-23T10:02:07.502-0400 [TRACE] DiffTransformer complete
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.DiffTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandApplyableResource
  ------
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2022-09-23T10:02:07.503-0400 [TRACE] NodeAbstractResourceInstance.AttachResourceState for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.OrphanOutputTransformer
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.OrphanOutputTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.AttachResourceConfigTransformer
2022-09-23T10:02:07.503-0400 [TRACE] AttachResourceConfigTransformer: attaching to "oci_identity_compartment.test_compartment (expand)" (*terraform.nodeExpandApplyableResource) config from main.tf:3,1-55
2022-09-23T10:02:07.503-0400 [TRACE] AttachResourceConfigTransformer: attaching provider meta configs to oci_identity_compartment.test_compartment (expand)
2022-09-23T10:02:07.503-0400 [TRACE] AttachResourceConfigTransformer: attaching to "oci_identity_compartment.test_compartment (destroy)" (*terraform.NodeDestroyResourceInstance) config from main.tf:3,1-55
2022-09-23T10:02:07.503-0400 [TRACE] AttachResourceConfigTransformer: attaching provider meta configs to oci_identity_compartment.test_compartment (destroy)
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.AttachResourceConfigTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.graphTransformerMulti
2022-09-23T10:02:07.503-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderConfigTransformer
2022-09-23T10:02:07.503-0400 [TRACE] ProviderConfigTransformer: attaching to "provider[\"registry.terraform.io/oracle/oci\"]" provider configuration from providers.tf:1,1-15
2022-09-23T10:02:07.503-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderConfigTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandApplyableResource
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.503-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.MissingProviderTransformer
2022-09-23T10:02:07.503-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.MissingProviderTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderTransformer
2022-09-23T10:02:07.503-0400 [TRACE] ProviderTransformer: exact match for provider["registry.terraform.io/oracle/oci"] serving oci_identity_compartment.test_compartment (expand)
2022-09-23T10:02:07.503-0400 [DEBUG] ProviderTransformer: "oci_identity_compartment.test_compartment (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:07.503-0400 [TRACE] ProviderTransformer: exact match for provider["registry.terraform.io/oracle/oci"] serving oci_identity_compartment.test_compartment (destroy)
2022-09-23T10:02:07.503-0400 [DEBUG] ProviderTransformer: "oci_identity_compartment.test_compartment (destroy)" (*terraform.NodeDestroyResourceInstance) needs provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:07.503-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandApplyableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.503-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.PruneProviderTransformer
2022-09-23T10:02:07.503-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.PruneProviderTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.graphTransformerMulti with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandApplyableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.RemovedModuleTransformer
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.RemovedModuleTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.AttachSchemaTransformer
2022-09-23T10:02:07.503-0400 [TRACE] AttachSchemaTransformer: attaching resource schema to oci_identity_compartment.test_compartment (expand)
2022-09-23T10:02:07.503-0400 [TRACE] AttachSchemaTransformer: attaching resource schema to oci_identity_compartment.test_compartment (destroy)
2022-09-23T10:02:07.503-0400 [TRACE] AttachSchemaTransformer: attaching provider config schema to provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.AttachSchemaTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.ModuleExpansionTransformer
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.ModuleExpansionTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2022-09-23T10:02:07.503-0400 [DEBUG] ReferenceTransformer: "oci_identity_compartment.test_compartment (expand)" references: []
2022-09-23T10:02:07.503-0400 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/oracle/oci\"]" references: []
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.AttachDependenciesTransformer
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.AttachDependenciesTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.ForcedCBDTransformer
2022-09-23T10:02:07.503-0400 [TRACE] ForcedCBDTransformer: "oci_identity_compartment.test_compartment (destroy)" (*terraform.NodeDestroyResourceInstance) has no CBD descendent, so skipping
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.ForcedCBDTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.DestroyEdgeTransformer
2022-09-23T10:02:07.503-0400 [TRACE] DestroyEdgeTransformer: "oci_identity_compartment.test_compartment (destroy)" (*terraform.NodeDestroyResourceInstance) destroys oci_identity_compartment.test_compartment
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.DestroyEdgeTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.CBDEdgeTransformer
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.CBDEdgeTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.pruneUnusedNodesTransformer
2022-09-23T10:02:07.503-0400 [DEBUG] pruneUnusedNodes: oci_identity_compartment.test_compartment (expand) is no longer needed, removing
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.pruneUnusedNodesTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.TargetsTransformer
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.CloseProviderTransformer
2022-09-23T10:02:07.503-0400 [TRACE] Completed graph transform *terraform.CloseProviderTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.503-0400 [TRACE] Executing graph transform *terraform.CloseRootModuleTransformer
2022-09-23T10:02:07.504-0400 [TRACE] Completed graph transform *terraform.CloseRootModuleTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  root - *terraform.nodeCloseModule
    provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
  ------
2022-09-23T10:02:07.504-0400 [TRACE] Executing graph transform *terraform.TransitiveReductionTransformer
2022-09-23T10:02:07.504-0400 [TRACE] Completed graph transform *terraform.TransitiveReductionTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
  root - *terraform.nodeCloseModule
    provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
  ------

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  - destroy

Terraform will perform the following actions:

  # oci_identity_compartment.test_compartment will be destroyed
  - resource "oci_identity_compartment" "test_compartment" {
      - compartment_id = "ocid1.compartment.oc1..aaaaaaaahoxwegjsy4suya6dordeulj3njjv2tx5bjvvoib" -> null
      - defined_tags   = {
          - "Oracle-Tags.CreatedBy" = "default/terraform"
          - "Oracle-Tags.CreatedOn" = "2022-09-23T14:00:45.147Z"
        } -> null
      - description    = "test compartment" -> null
      - freeform_tags  = {} -> null
      - id             = "ocid1.compartment.oc1..aaaaaaaangejqtb332kzpit4o6i3uoxzsiqevwulvxcjenp3rz" -> null
      - is_accessible  = true -> null
      - name           = "test-cmp1" -> null
      - state          = "ACTIVE" -> null
      - time_created   = "2022-09-23 14:00:45.252 +0000 UTC" -> null
    }

Plan: 0 to add, 0 to change, 1 to destroy.
2022-09-23T10:02:07.504-0400 [INFO]  backend/local: apply calling Apply
2022-09-23T10:02:07.504-0400 [DEBUG] Building and walking apply graph for DestroyMode plan
2022-09-23T10:02:07.504-0400 [TRACE] Executing graph transform *terraform.ConfigTransformer
2022-09-23T10:02:07.504-0400 [TRACE] ConfigTransformer: Starting for path:
2022-09-23T10:02:07.504-0400 [TRACE] Completed graph transform *terraform.ConfigTransformer with new graph:
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandApplyableResource
  ------
2022-09-23T10:02:07.504-0400 [TRACE] Executing graph transform *terraform.RootVariableTransformer
2022-09-23T10:02:07.504-0400 [TRACE] Completed graph transform *terraform.RootVariableTransformer (no changes)
2022-09-23T10:02:07.504-0400 [TRACE] Executing graph transform *terraform.ModuleVariableTransformer
2022-09-23T10:02:07.504-0400 [TRACE] Completed graph transform *terraform.ModuleVariableTransformer (no changes)
2022-09-23T10:02:07.504-0400 [TRACE] Executing graph transform *terraform.LocalTransformer
2022-09-23T10:02:07.504-0400 [TRACE] Completed graph transform *terraform.LocalTransformer (no changes)
2022-09-23T10:02:07.504-0400 [TRACE] Executing graph transform *terraform.OutputTransformer
2022-09-23T10:02:07.504-0400 [TRACE] Completed graph transform *terraform.OutputTransformer (no changes)
2022-09-23T10:02:07.504-0400 [TRACE] Executing graph transform *terraform.DiffTransformer
2022-09-23T10:02:07.505-0400 [TRACE] DiffTransformer starting
2022-09-23T10:02:07.505-0400 [TRACE] DiffTransformer: found Delete change for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.505-0400 [TRACE] DiffTransformer: oci_identity_compartment.test_compartment will be represented for destruction by oci_identity_compartment.test_compartment (destroy)
2022-09-23T10:02:07.505-0400 [TRACE] DiffTransformer complete
2022-09-23T10:02:07.505-0400 [TRACE] Completed graph transform *terraform.DiffTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandApplyableResource
  ------
2022-09-23T10:02:07.505-0400 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2022-09-23T10:02:07.505-0400 [TRACE] NodeAbstractResourceInstance.AttachResourceState for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.505-0400 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2022-09-23T10:02:07.505-0400 [TRACE] Executing graph transform *terraform.OrphanOutputTransformer
2022-09-23T10:02:07.505-0400 [TRACE] Completed graph transform *terraform.OrphanOutputTransformer (no changes)
2022-09-23T10:02:07.505-0400 [TRACE] Executing graph transform *terraform.AttachResourceConfigTransformer
2022-09-23T10:02:07.505-0400 [TRACE] AttachResourceConfigTransformer: attaching to "oci_identity_compartment.test_compartment (destroy)" (*terraform.NodeDestroyResourceInstance) config from main.tf:3,1-55
2022-09-23T10:02:07.505-0400 [TRACE] AttachResourceConfigTransformer: attaching provider meta configs to oci_identity_compartment.test_compartment (destroy)
2022-09-23T10:02:07.505-0400 [TRACE] AttachResourceConfigTransformer: attaching to "oci_identity_compartment.test_compartment (expand)" (*terraform.nodeExpandApplyableResource) config from main.tf:3,1-55
2022-09-23T10:02:07.505-0400 [TRACE] AttachResourceConfigTransformer: attaching provider meta configs to oci_identity_compartment.test_compartment (expand)
2022-09-23T10:02:07.505-0400 [TRACE] Completed graph transform *terraform.AttachResourceConfigTransformer (no changes)
2022-09-23T10:02:07.505-0400 [TRACE] Executing graph transform *terraform.graphTransformerMulti
2022-09-23T10:02:07.505-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderConfigTransformer
2022-09-23T10:02:07.505-0400 [TRACE] ProviderConfigTransformer: attaching to "provider[\"registry.terraform.io/oracle/oci\"]" provider configuration from providers.tf:1,1-15
2022-09-23T10:02:07.505-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderConfigTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandApplyableResource
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.505-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.MissingProviderTransformer
2022-09-23T10:02:07.505-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.MissingProviderTransformer (no changes)
2022-09-23T10:02:07.505-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderTransformer
2022-09-23T10:02:07.505-0400 [TRACE] ProviderTransformer: exact match for provider["registry.terraform.io/oracle/oci"] serving oci_identity_compartment.test_compartment (destroy)
2022-09-23T10:02:07.505-0400 [DEBUG] ProviderTransformer: "oci_identity_compartment.test_compartment (destroy)" (*terraform.NodeDestroyResourceInstance) needs provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:07.505-0400 [TRACE] ProviderTransformer: exact match for provider["registry.terraform.io/oracle/oci"] serving oci_identity_compartment.test_compartment (expand)
2022-09-23T10:02:07.506-0400 [DEBUG] ProviderTransformer: "oci_identity_compartment.test_compartment (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:07.506-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandApplyableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.506-0400 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.PruneProviderTransformer
2022-09-23T10:02:07.506-0400 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.PruneProviderTransformer (no changes)
2022-09-23T10:02:07.506-0400 [TRACE] Completed graph transform *terraform.graphTransformerMulti with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  oci_identity_compartment.test_compartment (expand) - *terraform.nodeExpandApplyableResource
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.506-0400 [TRACE] Executing graph transform *terraform.RemovedModuleTransformer
2022-09-23T10:02:07.506-0400 [TRACE] Completed graph transform *terraform.RemovedModuleTransformer (no changes)
2022-09-23T10:02:07.506-0400 [TRACE] Executing graph transform *terraform.AttachSchemaTransformer
2022-09-23T10:02:07.506-0400 [TRACE] AttachSchemaTransformer: attaching resource schema to oci_identity_compartment.test_compartment (expand)
2022-09-23T10:02:07.506-0400 [TRACE] AttachSchemaTransformer: attaching resource schema to oci_identity_compartment.test_compartment (destroy)
2022-09-23T10:02:07.506-0400 [TRACE] AttachSchemaTransformer: attaching provider config schema to provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:07.506-0400 [TRACE] Completed graph transform *terraform.AttachSchemaTransformer (no changes)
2022-09-23T10:02:07.506-0400 [TRACE] Executing graph transform *terraform.ModuleExpansionTransformer
2022-09-23T10:02:07.506-0400 [TRACE] Completed graph transform *terraform.ModuleExpansionTransformer (no changes)
2022-09-23T10:02:07.506-0400 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2022-09-23T10:02:07.506-0400 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/oracle/oci\"]" references: []
2022-09-23T10:02:07.506-0400 [DEBUG] ReferenceTransformer: "oci_identity_compartment.test_compartment (expand)" references: []
2022-09-23T10:02:07.506-0400 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2022-09-23T10:02:07.506-0400 [TRACE] Executing graph transform *terraform.AttachDependenciesTransformer
2022-09-23T10:02:07.506-0400 [TRACE] Completed graph transform *terraform.AttachDependenciesTransformer (no changes)
2022-09-23T10:02:07.506-0400 [TRACE] Executing graph transform *terraform.ForcedCBDTransformer
2022-09-23T10:02:07.506-0400 [TRACE] ForcedCBDTransformer: "oci_identity_compartment.test_compartment (destroy)" (*terraform.NodeDestroyResourceInstance) has no CBD descendent, so skipping
2022-09-23T10:02:07.506-0400 [TRACE] Completed graph transform *terraform.ForcedCBDTransformer (no changes)
2022-09-23T10:02:07.506-0400 [TRACE] Executing graph transform *terraform.DestroyEdgeTransformer
2022-09-23T10:02:07.506-0400 [TRACE] DestroyEdgeTransformer: "oci_identity_compartment.test_compartment (destroy)" (*terraform.NodeDestroyResourceInstance) destroys oci_identity_compartment.test_compartment
2022-09-23T10:02:07.506-0400 [TRACE] Completed graph transform *terraform.DestroyEdgeTransformer (no changes)
2022-09-23T10:02:07.506-0400 [TRACE] Executing graph transform *terraform.CBDEdgeTransformer
2022-09-23T10:02:07.506-0400 [TRACE] Completed graph transform *terraform.CBDEdgeTransformer (no changes)
2022-09-23T10:02:07.506-0400 [TRACE] Executing graph transform *terraform.pruneUnusedNodesTransformer
2022-09-23T10:02:07.506-0400 [DEBUG] pruneUnusedNodes: oci_identity_compartment.test_compartment (expand) is no longer needed, removing
2022-09-23T10:02:07.506-0400 [TRACE] Completed graph transform *terraform.pruneUnusedNodesTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.506-0400 [TRACE] Executing graph transform *terraform.TargetsTransformer
2022-09-23T10:02:07.506-0400 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2022-09-23T10:02:07.506-0400 [TRACE] Executing graph transform *terraform.CloseProviderTransformer
2022-09-23T10:02:07.507-0400 [TRACE] Completed graph transform *terraform.CloseProviderTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  ------
2022-09-23T10:02:07.507-0400 [TRACE] Executing graph transform *terraform.CloseRootModuleTransformer
2022-09-23T10:02:07.507-0400 [TRACE] Completed graph transform *terraform.CloseRootModuleTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  root - *terraform.nodeCloseModule
    provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
  ------
2022-09-23T10:02:07.507-0400 [TRACE] Executing graph transform *terraform.TransitiveReductionTransformer
2022-09-23T10:02:07.507-0400 [TRACE] Completed graph transform *terraform.TransitiveReductionTransformer with new graph:
  oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
    provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] - *terraform.NodeApplyableProvider
  provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
    oci_identity_compartment.test_compartment (destroy) - *terraform.NodeDestroyResourceInstance
  root - *terraform.nodeCloseModule
    provider["registry.terraform.io/oracle/oci"] (close) - *terraform.graphNodeCloseProvider
  ------
2022-09-23T10:02:07.507-0400 [DEBUG] Starting graph walk: walkDestroy
2022-09-23T10:02:07.507-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"]": starting visit (*terraform.NodeApplyableProvider)
2022-09-23T10:02:07.507-0400 [DEBUG] created provider logger: level=trace
2022-09-23T10:02:07.507-0400 [INFO]  provider: configuring client automatic mTLS
2022-09-23T10:02:07.513-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 args=[.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0]
2022-09-23T10:02:07.513-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 pid=1461
2022-09-23T10:02:07.513-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0
2022-09-23T10:02:07.544-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: 2022/09/23 10:02:07 [INFO] terraform-provider-oci 4.94.0
2022-09-23T10:02:07.544-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: 2022/09/23 10:02:07 Executable runs in Terraform plugin mode by default. For additional usage options, please run with the '-help' flag.
2022-09-23T10:02:07.544-0400 [INFO]  provider.terraform-provider-oci_v4.94.0: configuring server automatic mTLS: timestamp=2022-09-23T10:02:07.544-0400
2022-09-23T10:02:07.550-0400 [DEBUG] provider: using plugin: version=5
2022-09-23T10:02:07.550-0400 [DEBUG] provider.terraform-provider-oci_v4.94.0: plugin address: network=unix address=/tmp/plugin99437891 timestamp=2022-09-23T10:02:07.550-0400
2022-09-23T10:02:07.560-0400 [TRACE] BuiltinEvalContext: Initialized "provider[\"registry.terraform.io/oracle/oci\"]" provider for provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:07.560-0400 [TRACE] NodeApplyableProvider: configuring provider["registry.terraform.io/oracle/oci"]
2022-09-23T10:02:07.560-0400 [TRACE] buildProviderConfig for provider["registry.terraform.io/oracle/oci"]: using explicit config only
2022-09-23T10:02:07.560-0400 [TRACE] GRPCProvider: GetProviderSchema
2022-09-23T10:02:07.560-0400 [TRACE] provider.stdio: waiting for stdio data
2022-09-23T10:02:07.716-0400 [TRACE] GRPCProvider: ValidateProviderConfig
2022-09-23T10:02:07.829-0400 [WARN]  ValidateProviderConfig from "provider[\"registry.terraform.io/oracle/oci\"]" changed the config value, but that value is unused
2022-09-23T10:02:07.829-0400 [TRACE] GRPCProvider: ConfigureProvider
2022-09-23T10:02:07.841-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"]": visit complete
2022-09-23T10:02:07.841-0400 [TRACE] vertex "oci_identity_compartment.test_compartment (destroy)": starting visit (*terraform.NodeDestroyResourceInstance)
2022-09-23T10:02:07.841-0400 [TRACE] readDiff: Read Delete change from plan for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.841-0400 [TRACE] readResourceInstanceState: reading state for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.841-0400 [TRACE] upgradeResourceState: schema version of oci_identity_compartment.test_compartment is still 0; calling provider "oci" for any other minor fixups
2022-09-23T10:02:07.841-0400 [TRACE] GRPCProvider: UpgradeResourceState
oci_identity_compartment.test_compartment: Destroying... [id=ocid1.compartment.oc1..aaaaaaaangejqtb332kzpit4o6i3uoxzsiqevwulvxcje]
2022-09-23T10:02:07.842-0400 [INFO]  Starting apply for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.842-0400 [DEBUG] oci_identity_compartment.test_compartment: applying the planned Delete change
2022-09-23T10:02:07.842-0400 [TRACE] GRPCProvider: ApplyResourceChange
2022-09-23T10:02:07.843-0400 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to workingState for oci_identity_compartment.test_compartment
2022-09-23T10:02:07.843-0400 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: removing state object for oci_identity_compartment.test_compartment
oci_identity_compartment.test_compartment: Destruction complete after 0s
2022-09-23T10:02:07.843-0400 [TRACE] statemgr.Filesystem: creating backup snapshot at terraform.tfstate.backup
2022-09-23T10:02:07.844-0400 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 32
2022-09-23T10:02:07.844-0400 [TRACE] statemgr.Filesystem: writing snapshot at terraform.tfstate
2022-09-23T10:02:07.851-0400 [TRACE] vertex "oci_identity_compartment.test_compartment (destroy)": visit complete
2022-09-23T10:02:07.851-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"] (close)": starting visit (*terraform.graphNodeCloseProvider)
2022-09-23T10:02:07.851-0400 [TRACE] GRPCProvider: Close
2022-09-23T10:02:07.852-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2022-09-23T10:02:07.854-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/oracle/oci/4.94.0/linux_amd64/terraform-provider-oci_v4.94.0 pid=1461
2022-09-23T10:02:07.854-0400 [DEBUG] provider: plugin exited
2022-09-23T10:02:07.854-0400 [TRACE] vertex "provider[\"registry.terraform.io/oracle/oci\"] (close)": visit complete
2022-09-23T10:02:07.854-0400 [TRACE] vertex "root": starting visit (*terraform.nodeCloseModule)
2022-09-23T10:02:07.854-0400 [TRACE] vertex "root": visit complete
2022-09-23T10:02:07.854-0400 [TRACE] statemgr.Filesystem: have already backed up original terraform.tfstate to terraform.tfstate.backup on a previous write
2022-09-23T10:02:07.855-0400 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 33
2022-09-23T10:02:07.855-0400 [TRACE] statemgr.Filesystem: writing snapshot at terraform.tfstate
2022-09-23T10:02:07.857-0400 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
2022-09-23T10:02:07.857-0400 [TRACE] statemgr.Filesystem: unlocking terraform.tfstate using fcntl flock

Destroy complete! Resources: 1 destroyed.

luckeyca avatar Sep 23 '22 14:09 luckeyca

ok. looks I missed the enable_delete = true in the compartment resource block. So the bug is that terraform should NOT report the destroy as successful and should error out which only makes sense. I updated the bug title to make it clear. also this enable_delete setting is not visible from console either which added the confusion when troubleshooting.

also as per documentation: enable_delete. Defaults to false. If omitted or set to false the provider will implicitly import the compartment if there is a name collision, and will not actually delete the compartment on destroy or removal of the resource declaration.

In fact, terraform does remove the resource from terraform state and reported destroy as successful on console output while not actually destroying the resource itself.

luckeyca avatar Sep 23 '22 20:09 luckeyca

Thank you for reporting the issue. We observed the affected resources are not provided in the description or it's incorrect. We request you to add it in issue description as mentioned in below format. Example: affected_resources = oci_core_instance , oci_core_instances

If it's not related to any particular resource then mention affected resource as terraform. Example: affected_resources = terraform

As this works through automation, request you to follow exact syntax.

ravinitp avatar Apr 11 '23 13:04 ravinitp

Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.

tf-oci-pub avatar Jul 21 '23 06:07 tf-oci-pub

The oci_identity_compartment terraform documentation specifically calls out including enable_delete = true in the provider block else terraform destroy does not remove compartments. Can you please include the field in your compartments resource block?

aabulbul avatar Jul 21 '23 09:07 aabulbul