-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 crash on destroy #412
Comments
It is reproducable locally each time, first pass crashes, second succeeds. Could be coincidental of course.
|
Same issue and steps to reproduce. |
@pmoust Can you share a configuration that makes this fail? I'll keep trying to find it in the mean time. |
@mitchellh What you could try in the mean time is to If that is not reproducing it, try adding a resource that is depending on it (i.e. make the instance to have a public facing IP and have its subnet have an internet gateway for 0.0.0.0/0) that also might be an issue with my configuration seeing your commits fixing Dependency Violation issues (waiting 5*mins retrying). Sorry for not providing a simple configuration for you to check -I am at the beach atm-, I can share configuration by Monday. |
Actually thinking of second paragraph: it's a separate issue opened PR #448 |
Here are my configs to reproduce and the crash.log file https://github.com/blkperl/ops-terraform/tree/terraform_issue_412 Still learning terraform, when I do apply the remote-exec fails because it can't connect to the instance, and then when I try to destroy terraform crashes. |
Got it to reproduce. The easiest config to do this:
|
The tainted resources are separate elements in the graph.
Fixed! THis uncovered another issue, which I'm working on now, but the one in this subject is fixed. |
Simple configuration with
aws_vpc
,aws_vpc_subnet
,aws_route53_record
,aws_instance
,aws_security_group
records linked together.After local provisioner failed, and
aws_instance
got tainted, I ranterraform destroy
that on first pass resulted on crash.Second pass was successful.
Terraform version: just built from upstream.
Here is the crash.log
The text was updated successfully, but these errors were encountered: