-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform does mot respect explicit dependency in some cases #16420
Comments
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 5, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform v0.10.7
Terraform Configuration Files
Output
Expected Behavior
The instnaces are already in place. Volumes should be created and attached in one step. Expected behaviour is:
Actual Behavior
Between setting up the volumes in "openstack_blockstorage_volume_v2.setup_service_volumes" and attaching them in "openstack_compute_volume_attach_v2.service" I need generate the imstnace ids the volumes have to be attached to using "null_resource.service_volid". For this reason explicite dependencies are defined. But terraform ignores the dependecy for "openstack_blockstorage_volume_v2.setup_service_volumes" in "null_resource.service_volid" and fails with the errors above.
Steps to Reproduce
terraform plan -target=null_resource.target_service_volumes -out=/tmp/.sh_9398.tfplan
terraform apply /tmp/.sh_9398.tfplan
Important Factoids
If splitting it off in two parts end first create the volumes:
terraform plan -target=openstack_blockstorage_volume_v2.setup_service_volumes -out=/tmp/tfplan
terraform apply /tmp/tfplan
Everything works fine.
References
The text was updated successfully, but these errors were encountered: