Skip to content
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

[DISCUSS] How should we handle a successful deprovision with a failure in workflow state update #691

Open
dbwiddis opened this issue Apr 30, 2024 · 1 comment
Assignees
Labels
discuss v2.18.0 Issues targeting release v2.18.0

Comments

@dbwiddis
Copy link
Member

Coming from #689 (comment)

When deprovisioning, successfully deleting all resources gives a successful response to the user.

There is a possibility of an unexpected failure resetting the state document to NOT_STARTED (if template exists) or deleting it (if template doesn't exist). Presently this state index failure is only logged.

What solution would you like?

Keep this status quo, as the failures are extremely unlikely to occur, and can be corrected with another deprovisioning.

What alternatives have you considered?

Waiting to return a result to a user until the state document is updated, and returning a more verbose error message of the form "resources were successfully deprovisioned, but the workflow state update failed, try deprovisioning again. This may or may not succeed and may be confusing.

@dbwiddis
Copy link
Member Author

dbwiddis commented May 6, 2024

While attempting to write REST integration tests for this, it was a challenge as the REST request returned successfully while the state deletion was still processing. I'm leaning heavily toward waiting to return to the user until the state document is deleted (or not). The user can still get a verbose response describing the problem.

@dbwiddis dbwiddis added backlog Good to have functionality not critical for next release and removed v2.15.0 labels May 9, 2024
@dbwiddis dbwiddis added v2.18.0 Issues targeting release v2.18.0 and removed backlog Good to have functionality not critical for next release labels Sep 18, 2024
@dbwiddis dbwiddis self-assigned this Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss v2.18.0 Issues targeting release v2.18.0
Projects
None yet
Development

No branches or pull requests

1 participant