Improve MCI dynamic provisioning with enhanced rollback#2067
Merged
cb-github-robot merged 1 commit intocloud-barista:mainfrom Aug 3, 2025
Merged
Improve MCI dynamic provisioning with enhanced rollback#2067cb-github-robot merged 1 commit intocloud-barista:mainfrom
cb-github-robot merged 1 commit intocloud-barista:mainfrom
Conversation
…hanism - Add granular resource tracking during MCI creation - Implement selective rollback of only created resources (not all shared resources) - Add CreatedResource struct to track individual resource creation - Replace DelAllSharedResources with selective rollback mechanism - Improve error handling and resource cleanup in concurrent provisioning - Enhance rollback safety by only deleting resources created in current operation Changes: * provisioning.go: Add VmReqWithCreatedResources and selective rollback logic * common.go: Clean up unused string constants, standardize resource naming * resource/common.go: Improve resource type handling with case-insensitive comparison * rest/server: Update API call to use new DeleteSharedResources function This ensures safer resource management and prevents accidental deletion of pre-existing shared resources during MCI creation failures.
Member
Author
|
/approve |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes:
This ensures safer resource management and prevents accidental deletion of pre-existing shared resources during MCI creation failures.