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
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
null_resource.nodes_service[0]: Refreshing state... (ID: 6013027129072800198)
null_resource.nodes_service[1]: Refreshing state... (ID: 1842577283801475772)
null_resource.volumes_service[0]: Refreshing state... (ID: 931939086905373848)
null_resource.volumes_service[2]: Refreshing state... (ID: 4302373968823752440)
null_resource.volumes_service[1]: Refreshing state... (ID: 8676549776352687611)
null_resource.volumes_service[3]: Refreshing state... (ID: 3907152824123562973)
openstack_compute_instance_v2.service[0]: Refreshing state... (ID: 39749ebf-f15a-4547-bd3d-0e7344acddf9)
openstack_compute_instance_v2.service[1]: Refreshing state... (ID: 7605c41d-71a1-42d2-a4a9-5e94fe07241c)
------------------------------------------------------------------------
Error running plan: 1 error(s) occurred:
* openstack_compute_volume_attach_v2.service: 4 error(s) occurred:
* openstack_compute_volume_attach_v2.service[1]: Resource 'null_resource.service_volid' does not have attribute 'triggers.instance_id' for variable 'null_resource.service_volid.*.triggers.instance_id'
* openstack_compute_volume_attach_v2.service[3]: Resource 'null_resource.service_volid' does not have attribute 'triggers.instance_id' for variable 'null_resource.service_volid.*.triggers.instance_id'
* openstack_compute_volume_attach_v2.service[0]: Resource 'null_resource.service_volid' does not have attribute 'triggers.instance_id' for variable 'null_resource.service_volid.*.triggers.instance_id'
* openstack_compute_volume_attach_v2.service[2]: Resource 'null_resource.service_volid' does not have attribute 'triggers.volume_id' for variable 'null_resource.service_volid.*.triggers.volume_id'
Expected Behavior
The instnaces are already in place. Volumes should be created and attached in one step. Expected behaviour is:
Calculate plan
Create volumes
Generate ids in "null_resource.service_volid"
Attach volumes
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:
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 freeto 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: