Stack stalls when deleted using foreground cascading delete #753
Labels
kind/bug
Some behavior is incorrect or out of spec
needs-triage
Needs attention from the triage team
p1
A bug severe enough to be the next item assigned to an engineer
resolution/fixed
This issue was fixed
What happened?
I deleted a
Stack
using foreground cascading delete, and found that it stalled forever in a deleting state. The stack hasdestroyOnFinalize
enabled, and the status showed that the stack controller was waiting for the workspace to become ready. There was no workspace in existence, because it had just been deleted.To unblock myself, I killed the operator pod. When it came up, it correctly provisioned a workspace, destroyed the stack, and then removed the finalizer.
I believe that the root cause is a race condition between the workspace being deleted and the stack controller creating the replacement. The watch logic in stack controller should trigger upon delete of the workspace.
Example
N/A
Output of
pulumi about
N/A
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: