Skip to content

Improve MCI dynamic provisioning with enhanced rollback#2067

Merged
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main
Aug 3, 2025
Merged

Improve MCI dynamic provisioning with enhanced rollback#2067
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

  • 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.

…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.
@seokho-son seokho-son requested a review from yunkon-kim as a code owner August 3, 2025 07:09
@seokho-son
Copy link
Copy Markdown
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Aug 3, 2025
@cb-github-robot cb-github-robot merged commit 3051637 into cloud-barista:main Aug 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved This PR is approved and will be merged soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants