-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable instance create saga to create a new disk (#1873)
* Start wiring up disk-create in instance-create * Attach disk after its created * Flatten attach * Maybe fix create enum * Implement undo * Update subsaga_append to take a dag instead of builder * Wire up disk create subsaga * Fix lint error * Update fn name to be singular to clarify it attaches 1 disk * Improve attach/detaching to not create a saga as a node * Clean up attach iteration logic * Pass direct references down instead of disk array * Fix disk create subsaga params; clean up comments * Appease ye almighty clippy * Update attach params shape to include serialized_athn; project_id * Address nit * Add TODO on correctness of disk lookup by name * instance_id isn't in the subsaga context, pass it down instead * Fix clippy failures * Add integration test to create and attach disks via instance create * Add test for undos of creates/attaches for failed instance create saga * Reduce disk sizes to hopefully resolve zpool failures * Address PR feedback on tests * Comment what test is validating
- Loading branch information
Showing
2 changed files
with
296 additions
and
123 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
Oops, something went wrong.