-
Notifications
You must be signed in to change notification settings - Fork 13
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 VPC after deleting members/dependencies #105
Comments
Based on the above, this looks like a DO issue as you stated? It would appear they have some kind of eventual consistency issue where their control plane still thinks that the members exist despite being deleted. I'm not sure there's anything we can easily do here. Please let me know if you feel otherwise. |
What do you think about automatic retry with a delay? Waiting 30 seconds usually does it. Another option is to treat a the VPC delete operation as a long-polling tasking with a timeout - Since Pulumi tracks dependencies and there's a deterministic expectation that it should be deletable given deps have been deleted. I get a 100% failure rate running |
That makes sense -- though, I think trying to do this generally via something like pulumi/pulumi#1691 where you could add the wait yourself would be preferable to doing it specifically for DO, so let's use that to track? |
That can work. However I do think every user will run into the same problem so it may make sense for this lib to implement that. |
Stumbled across this bug myself, but I'm pretty sure it's not strictly a DO problem as I've seen it also with Vultr. The real problem seems to be a race condition where pulumi isn't waiting for the resources to be released from the VPC before trying to delete it....they're still in flight when the VPC destroy starts and it errors out. This is why when you look at the console (or run it again), it works successfully because by then the other resources have finished being removed. Retrying is an ugly hack to the situation, we need a more deterministic advancement such that the VPC isn't even attempted to be destroyed prior to all the items in it being CONFIRMED as destroyed... |
Hi Pulumi team,
I'm getting the following error when running
pulumi destroy
As you can see, DO returns an error while trying to delete the VPC although members have been deleted. I can confirm through DO dashboard that members were in fact deleted.
Seems to be a problem with D.O.
Running a second time deletes the VPC without error - note the dependencies do show up in the diff.
Here's the pulumi program:
The text was updated successfully, but these errors were encountered: