-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nexus] Make Instance Deletion actually idempotent (#7556)
Marking an instance deleted, within the "instance deletion saga", invokes `datastore.project_delete_instance`. This API performs the following tasks: 1. Marks the instance record "Destroyed", and detaches all disks 2. Performs a variety of other cleanup tasks (deleting SSH keys, not-yet-but-soon cleaning up affinity groups, marking migrations as deleted). These operations are not in a transaction, so it's possible for step (1) to succeed, but step (2) to not happen. In this case, it's critical that a second invocation of this API be able to actually perform cleanup. This PR adjusts the implementation of `project_delete_instance` to make this actually true.
- Loading branch information
Showing
2 changed files
with
134 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters