Skip to content

Instantly share code, notes, and snippets.

@hany
Created September 18, 2015 16:01
Show Gist options
  • Save hany/d2fdea4f3d3ef0e387e9 to your computer and use it in GitHub Desktop.
Save hany/d2fdea4f3d3ef0e387e9 to your computer and use it in GitHub Desktop.
Terraform failures
$ terraform destroy
Do you really want to destroy?
Terraform will delete all your managed infrastructure.
There is no undo. Only 'yes' will be accepted to confirm.
Enter a value: yes
cloudstack_vpc.staging: Refreshing state... (ID: d8a21605-c6d1-4131-9f39-7df46ad94b43)
cloudstack_network_acl.allow_all_main: Refreshing state... (ID: 6c892aec-4f06-404e-a79e-f2c81e19a5b1)
cloudstack_ipaddress.prod-app-tier-ip: Refreshing state... (ID: 9cd3c0e6-b53d-441f-8536-42437f1af01f)
cloudstack_ipaddress.prod-util-tier-ip: Refreshing state... (ID: 4a93df89-ac76-4082-9a92-df43df5bf77d)
cloudstack_ipaddress.prod-proxy-tier-ip: Refreshing state... (ID: 2e783447-e60b-4c93-bd89-08b9ca0dfa3c)
cloudstack_vpn_gateway.test: Refreshing state... (ID: 017db941-a8dd-4fa8-ac59-6adc952ee5b2)
cloudstack_ipaddress.prod-db-tier-ip: Refreshing state... (ID: accde8cb-039b-4e55-81d2-98b254b1e3c7)
cloudstack_network_acl_rule.allow_all_main: Refreshing state... (ID: 6c892aec-4f06-404e-a79e-f2c81e19a5b1)
cloudstack_network.util: Refreshing state... (ID: dcb4d936-8d57-4e31-8c63-1af3b0298107)
cloudstack_network.proxy: Refreshing state... (ID: 9d68dd90-9d68-4844-9908-f4b5e4c6ff5c)
cloudstack_network.db: Refreshing state... (ID: 6b15c835-d817-49ce-85b7-7ecff25ff195)
cloudstack_network.app: Refreshing state... (ID: afc129b9-c9c0-4efc-b38d-995e5291ba27)
cloudstack_instance.prod-wrkr01: Refreshing state... (ID: ec0e6468-b176-4cd7-9b34-b51841e507ed)
cloudstack_instance.prod-queue01: Refreshing state... (ID: cf490838-a4ae-4ed0-ab0b-1e8fd2864a30)
cloudstack_instance.prod-proxy01: Refreshing state... (ID: 67846a88-53f4-49a9-a23b-a9b6b9bdd75e)
cloudstack_instance.prod-db01: Refreshing state... (ID: 6a3c582f-e550-42a6-8557-c4b68cd0653c)
cloudstack_instance.prod-app02: Refreshing state... (ID: 2cb64ae0-606f-42f5-a5c7-631a0239ac12)
cloudstack_instance.prod-app01: Refreshing state... (ID: 103197f6-9754-4d99-897d-1699d0ad1532)
cloudstack_port_forward.prod-proxy-ssh-map: Refreshing state... (ID: 2e783447-e60b-4c93-bd89-08b9ca0dfa3c)
cloudstack_port_forward.prod-db-ssh-map: Refreshing state... (ID: accde8cb-039b-4e55-81d2-98b254b1e3c7)
cloudstack_port_forward.prod-util-ssh-map: Refreshing state... (ID: 4a93df89-ac76-4082-9a92-df43df5bf77d)
cloudstack_port_forward.prod-app-ssh-map: Refreshing state... (ID: 9cd3c0e6-b53d-441f-8536-42437f1af01f)
cloudstack_port_forward.prod-proxy-ssh-map: Destroying...
cloudstack_port_forward.prod-db-ssh-map: Destroying...
cloudstack_port_forward.prod-app-ssh-map: Destroying...
cloudstack_vpn_gateway.test: Destroying...
cloudstack_port_forward.prod-util-ssh-map: Destroying...
cloudstack_vpn_gateway.test: Destruction complete
cloudstack_port_forward.prod-proxy-ssh-map: Destruction complete
cloudstack_ipaddress.prod-proxy-tier-ip: Destroying...
cloudstack_instance.prod-proxy01: Destroying...
cloudstack_port_forward.prod-db-ssh-map: Destruction complete
cloudstack_instance.prod-db01: Destroying...
cloudstack_ipaddress.prod-db-tier-ip: Destroying...
cloudstack_ipaddress.prod-proxy-tier-ip: Destruction complete
cloudstack_ipaddress.prod-db-tier-ip: Destruction complete
cloudstack_port_forward.prod-app-ssh-map: Destruction complete
cloudstack_instance.prod-app02: Destroying...
cloudstack_ipaddress.prod-app-tier-ip: Destroying...
cloudstack_instance.prod-app01: Destroying...
cloudstack_port_forward.prod-util-ssh-map: Destruction complete
cloudstack_ipaddress.prod-util-tier-ip: Destroying...
cloudstack_instance.prod-queue01: Destroying...
cloudstack_instance.prod-wrkr01: Destroying...
cloudstack_ipaddress.prod-util-tier-ip: Destruction complete
cloudstack_ipaddress.prod-app-tier-ip: Destruction complete
cloudstack_instance.prod-db01: Destruction complete
cloudstack_network.db: Destroying...
cloudstack_instance.prod-proxy01: Destruction complete
cloudstack_network.proxy: Destroying...
cloudstack_instance.prod-app02: Destruction complete
cloudstack_instance.prod-queue01: Destruction complete
cloudstack_network.db: Destruction complete
cloudstack_network.proxy: Destruction complete
Error applying plan:
2 error(s) occurred:
* cloudstack_instance.prod-app01: Error destroying instance: Timeout while waiting for async job to finish
* cloudstack_instance.prod-wrkr01: Error destroying instance: Timeout while waiting for async job to finish
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
mbp:hany_gist hany$ date
Fri 18 Sep 2015 11:44:04 EDT
mbp:hany_gist hany$ date && terraform destroy && date
Fri 18 Sep 2015 11:44:46 EDT
Do you really want to destroy?
Terraform will delete all your managed infrastructure.
There is no undo. Only 'yes' will be accepted to confirm.
Enter a value: yes
cloudstack_vpc.staging: Refreshing state... (ID: d8a21605-c6d1-4131-9f39-7df46ad94b43)
cloudstack_network_acl.allow_all_main: Refreshing state... (ID: 6c892aec-4f06-404e-a79e-f2c81e19a5b1)
cloudstack_network_acl_rule.allow_all_main: Refreshing state... (ID: 6c892aec-4f06-404e-a79e-f2c81e19a5b1)
cloudstack_network.util: Refreshing state... (ID: dcb4d936-8d57-4e31-8c63-1af3b0298107)
cloudstack_network.app: Refreshing state... (ID: afc129b9-c9c0-4efc-b38d-995e5291ba27)
cloudstack_instance.prod-app01: Refreshing state... (ID: 103197f6-9754-4d99-897d-1699d0ad1532)
cloudstack_instance.prod-wrkr01: Refreshing state... (ID: ec0e6468-b176-4cd7-9b34-b51841e507ed)
cloudstack_instance.prod-app01: Destroying...
cloudstack_instance.prod-wrkr01: Destroying...
Error applying plan:
2 error(s) occurred:
* cloudstack_instance.prod-wrkr01: Error destroying instance: Timeout while waiting for async job to finish
* cloudstack_instance.prod-app01: Error destroying instance: Timeout while waiting for async job to finish
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
mbp:hany_gist hany$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment