-
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
EBS Volume Attachement Destroy/Recreate state issue in 0.7.4 #9000
Comments
@sepulworld Since you manually removed an |
This issue is unfortunate, especially given #2957. We re-assign EBS volumes when we rotate instances. That's quite a common pattern. Because of this issue we've to do a |
Hi folks I believe that PR #9792 takes care of this issue - it will allow us to skip the detachment of an EBS volume and let the instance take care of it Please let me know your thoughts on this Paul |
@stack72 I think To reproduce:
Error:
Full config and log is at https://gist.github.com/clstokes/06487cb02dea5e46b538bbcfc4007dea. This is with Terraform v0.8.4. Updated to add Terraform version. |
Not sure if this is another bug or I'm just doing it wrong...but for some reason, Terraform wants to destroy all of my ebs volumes even if jus taint one node.... Config:
I run a Expected Behavior: Terraform should stop the service, unmount volume, detach volume, recreate instance, reattach volume Actual Behavior: Terraform trys to destroy all EBS volumes and get this error:
I'm using version 0.9.8 as well... here is the plan too...
|
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. |
Terraform Version
0.7.4
Affected Resource(s)
aws_volume_attachement
Terraform Configuration Files
Expected Behavior
If the aws_instance.kafka.0 is destroyed through the AWS console, but the attached EBS volume aws_ebs_volume.kafka_ebs.0 is left intact. You would expect the next Terraform 'apply' to recreate the destroyed ec2 instances (aws_instance.kafka.0) and reattach the (aws_ebs_volume.kafka_ebs.0) by recreating aws_volume_attachment.kafka_ebs.0 resource.
Actual Behavior
If the aws_instance.kafka.0 is destroyed through the AWS console, but the attached EBS volume aws_ebs_volume.kafka_ebs.0 is left intact.
Subsequent Terraform apply will attempt to destroy and recreate the aws_volume_attachment.kafka_ebs_att_0 and error with:
This is new behavior after upgrading from 0.7.2 to 0.7.4
The text was updated successfully, but these errors were encountered: