You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ubuntu@deployer:~/iam-deployment/tftest$ terraform apply
openstack_compute_instance_v2.mmedvecky-test01: Refreshing state... (ID: 15d89d43-cb2a-4af9-a560-8adbe8b2f387)
openstack_compute_instance_v2.mmedvecky-test01: Modifying...
metadata.test_metadata: "test" => ""
metadata.test_metadata2: "" => "test"
openstack_compute_instance_v2.mmedvecky-test01: Modifications complete
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
The state of your infrastructure has been saved to the path
below. This state is required to modify and destroy your
infrastructure, so keep it safe. To inspect the complete state
use the `terraform show` command.
State path: terraform.tfstate
run terraform apply again:
ubuntu@deployer:~/iam-deployment/tftest$ terraform apply
openstack_compute_instance_v2.mmedvecky-test01: Refreshing state... (ID: 15d89d43-cb2a-4af9-a560-8adbe8b2f387)
openstack_compute_instance_v2.mmedvecky-test01: Modifying...
metadata.%: "2" => "1"
metadata.test_metadata: "test" => ""
openstack_compute_instance_v2.mmedvecky-test01: Modifications complete
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
The state of your infrastructure has been saved to the path
below. This state is required to modify and destroy your
infrastructure, so keep it safe. To inspect the complete state
use the `terraform show` command.
State path: terraform.tfstate
and again:
ubuntu@deployer:~/iam-deployment/tftest$ terraform apply
openstack_compute_instance_v2.mmedvecky-test01: Refreshing state... (ID: 15d89d43-cb2a-4af9-a560-8adbe8b2f387)
openstack_compute_instance_v2.mmedvecky-test01: Modifying...
metadata.%: "2" => "1"
metadata.test_metadata: "test" => ""
openstack_compute_instance_v2.mmedvecky-test01: Modifications complete
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
The state of your infrastructure has been saved to the path
below. This state is required to modify and destroy your
infrastructure, so keep it safe. To inspect the complete state
use the `terraform show` command.
State path: terraform.tfstate
See, it always says modifications complete, but the old removed metadata still persists on the host.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 17, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform does not remove metadata when you remove it from .tf file.
TLDR:
some_metadata
andsome_metadata2
Terraform Version
Terraform v0.8.4
Affected Resource(s)
Terraform Configuration Files
create.tf:
modify.tf:
Expected Behavior
test_metadata
should be removedActual Behavior
test_metadata
still existsSteps to Reproduce
create.tf
to your terraform directoryterraform apply
- your VM will be createdtest_metadata
->test_metadata2
terraform apply
terraform apply
again:and again:
See, it always says modifications complete, but the old removed metadata still persists on the host.
The text was updated successfully, but these errors were encountered: