Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

terraform apply always results in change despite not change to .tf #56

@t-settle

Description

@t-settle

vRA 7.x version
7.6
Terraform version
Terraform v0.12.18
terraform-provider-vra7 plugin version

  • provider.vra7 v1.0.0

Describe the bug
After upgrading to vra7 provider v1.0.0, I noticed executing terraform apply multiple times in a row results in a change, when nothing has been changed.

To Reproduce
provider "vra7" {
tenant = "acme"
host = "https://xxxx.xxxx.com"
insecure = "true"
}
resource "vra7_deployment" "myDeployment" {
count = 1
catalog_item_name = "bp_acme_develop"
businessgroup_name = "bizgroup1"
description = "Test Terraform deployment"
reasons = "Testing the vRA 7 Terraform plugin"
resource_configuration {
component_name = "vm"
cluster = 2
configuration = {}
}
}

Run "terraform apply"
get "Resources: 1 added, 0 changed, 0 destroyed."
Run "terraform apply" again
get "Resources: 0 added, 1 changed, 0 destroyed."
where it Null's out all the resources and then reapplies them all exactly the same.

Expected behavior
"Resources: 0 added, 0 changed, 0 destroyed."
on subsequent "terraform apply" with no change to the .tf file

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
Attach logs to help debug the issue

  1. Attach vra-terraform.log
  2. Attach Terraform console log (Enable terraform logs following the steps mentioned in https://www.terraform.io/docs/configuration/environment-variables.html)
  3. crash.log(if any)

Desktop (please complete the following information):

  • OS: [e.g. iOS]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions