-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Error deleting node pool: googleapi: Error 404: Not found #3896
Comments
I can't be completely sure without debug logs but it looks like you have a race condition when trying to delete the cluster and the pool. When the cluster is deleted before the pool has finished deleting the call to delete the pool is failing. If this is the problem then looking at your config it's probably because there isn't a direct relation (via interpolation) between the node pool and the cluster in the terraform config. You can confirm by checking the terraform graph and seeing the two resources are dependent. |
@chrisst Thank you for your help. I was hoping that |
I got the dependency working by adding a local-exec to refer to
|
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Terraform Version
Terraform v0.11.13
Affected Resource(s)
Terraform Configuration Files
node_pool-green:
Debug Output
I don't have the debug output yet. It fails sometimes only
Panic Output
https://gist.github.com/dhawal55/8d8b6e4248cab6eb88e54e582cf09af5
Expected Behavior
Terraform should have deleted the node pool and not failed with "Not Found" error
Actual Behavior
The deletes node pool command goes through and the node pool is deleted but terraform tries again to delete the node pool and fails with "Not found" error. This doesn't occur everytime so probably there is some race condition where it fails.
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: