Infer single conversion storage pool for VMware import#13235
Open
andrijapanicsb wants to merge 1 commit into
Open
Infer single conversion storage pool for VMware import#13235andrijapanicsb wants to merge 1 commit into
andrijapanicsb wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13235 +/- ##
============================================
- Coverage 18.10% 18.10% -0.01%
- Complexity 16746 16751 +5
============================================
Files 6037 6037
Lines 542933 542974 +41
Branches 66487 66493 +6
============================================
+ Hits 98283 98290 +7
- Misses 433602 433641 +39
+ Partials 11048 11043 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Author
|
@blueorangutan package |
|
@andrijapanicsb a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✔️ suse15. SL-JID 18022 |
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.
Description
This improves the VMware import workflow when
forceconverttopool=trueand the caller does not provideconvertinstancepoolid.Previously, the API always failed in that case, even when the destination environment had exactly one suitable primary storage pool. With this change, CloudStack infers that single suitable pool and proceeds. If no suitable pool exists, or if multiple suitable pools exist, the API still fails with a clear message so the caller can provide
convertinstancepoolidexplicitly.No API parameters are added or removed.
API behavior
When
forceconverttopool=true:convertinstancepoolidis supplied, the selected pool is used and validated as before.convertinstancepoolidis omitted and exactly one suitable KVM primary storage pool exists for the destination cluster or zone, that pool is used automatically.convertinstancepoolid.UI behavior
Testing
mvn -pl server -am -Dtest=UnmanagedVMsManagerImplTest -DfailIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false test