-
Notifications
You must be signed in to change notification settings - Fork 329
"waypoint destroy" doesn't work on incomplete deployments #533
Comments
Thanks yes this is something we know about and need to resolve for 0.2. |
Some logs from the
|
Hi @mitchellh since this was reported in 2020, I'm curious if this issue has seen any progress. The issue affects more than "interrupted" deploys. It also spills over to, e.g. periodic Nomad Jobspecs. Example output from
|
Summarizing the desired behavior based on comments in #2089, #2636, and this issue: if a deployment fails or is canceled, My take on this is that if a deployment failed/was canceled, the attempt to destroy the resources is "best-effort" and not guaranteed. I think it's worth warning the user about this scenario as well. Also of note, I have (so far) only been able to reproduce this with a local runner. Canceling a deployment with on-demand runners, and then attempting to delete it after the fact, has so far resulted in a successful destroy operation in my testing. Will keep pushing it though! |
Looks like this is still a problem. Here are two paths to reproduce it Steps to reproduce:
In fact, the deployment is still present in the cluster, and the k8s platform plugin's I spooled this up in the debugger, and found we're silently exiting here: waypoint/internal/core/app_deploy_destroy.go Lines 290 to 293 in 88abbbc
It's not logging that message, so I suspect there's also a problem with that logger. I've also observed this happen when the helm plugin returns an error and there is no user ctrl-c event. |
Describe the bug
"waypoint destroy" command doesn't destroy resources created by "waypoint up" if waypoint up didn't successfully completed.
Steps to Reproduce
Create new deployment and interrupt after kubernetes deployment. Then use "waypoint destroy", this command returns okay but deployment is still there.
Expected behavior
"waypoint destroy" should clear resources whether deployment is successful or not.
The text was updated successfully, but these errors were encountered: