cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

vm-import: fix diskoffering checks for root disk

Open shwstppr opened this issue 2 years ago • 5 comments

Description

Use disk offering linked with the service offering while checking for root disk during import

Types of changes

  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] New feature (non-breaking change which adds functionality)
  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] Enhancement (improves an existing feature and functionality)
  • [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
  • [ ] build/CI

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • [ ] Major
  • [ ] Minor

Bug Severity

  • [ ] BLOCKER
  • [ ] Critical
  • [ ] Major
  • [ ] Minor
  • [ ] Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

shwstppr avatar Nov 01 '23 09:11 shwstppr

@shwstppr , this is needed because of the de-coupling of service offering and disk offerings? can you add soem test spec? code lgtm

DaanHoogland avatar Nov 01 '23 10:11 DaanHoogland

Codecov Report

Attention: Patch coverage is 28.57143% with 5 lines in your changes missing coverage. Please review.

Project coverage is 13.07%. Comparing base (3b11663) to head (1abc121). Report is 887 commits behind head on 4.19.

Files with missing lines Patch % Lines
.../apache/cloudstack/vm/UnmanagedVMsManagerImpl.java 28.57% 1 Missing and 4 partials :warning:
Additional details and impacted files
@@            Coverage Diff            @@
##               4.19    #8170   +/-   ##
=========================================
  Coverage     13.06%   13.07%           
- Complexity     9111     9114    +3     
=========================================
  Files          2720     2720           
  Lines        257592   257591    -1     
  Branches      40158    40157    -1     
=========================================
+ Hits          33663    33676   +13     
+ Misses       219698   219681   -17     
- Partials       4231     4234    +3     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Nov 01 '23 10:11 codecov[bot]

@shwstppr , this is needed because of the de-coupling of service offering and disk offerings? can you add soem test spec? code lgtm

@DaanHoogland yes, it could be decoupling or maybe this has been ignored since the addition of VM import. I've not tested this yet. Will add more details soon

shwstppr avatar Nov 01 '23 10:11 shwstppr

@shwstppr is this still relevant/needed?

DaanHoogland avatar Apr 19 '24 09:04 DaanHoogland

@shwstppr is this still relevant/needed?

rohityadavcloud avatar Jun 24 '24 15:06 rohityadavcloud

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

github-actions[bot] avatar Oct 17 '24 09:10 github-actions[bot]