cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Fix root disk resize (don't allow) when service offering has root disk size, only allow through service offering change

Open sureshanaparti opened this issue 1 year ago • 12 comments

Description

This PR fixes root disk resize (don't allow) when service offering has root disk size, only allow through service offering change.

Fixes #9380

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
  • [ ] test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • [ ] Major
  • [ ] Minor

Bug Severity

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

Screenshots (if appropriate):

How Has This Been Tested?

Manually tested the root resize with service offering having root disk size set.

RootDisk-Resize-Fix

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

sureshanaparti avatar Jul 22 '24 12:07 sureshanaparti

@blueorangutan package

sureshanaparti avatar Jul 22 '24 12:07 sureshanaparti

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Jul 22 '24 12:07 blueorangutan

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 15.07%. Comparing base (54c8b71) to head (413edfe). Report is 45 commits behind head on 4.19.

Files with missing lines Patch % Lines
...n/java/com/cloud/storage/VolumeApiServiceImpl.java 0.00% 0 Missing and 1 partial :warning:
Additional details and impacted files
@@             Coverage Diff              @@
##               4.19    #9428      +/-   ##
============================================
- Coverage     15.07%   15.07%   -0.01%     
- Complexity    11169    11170       +1     
============================================
  Files          5405     5405              
  Lines        472677   472676       -1     
  Branches      60049    58516    -1533     
============================================
- Hits          71269    71268       -1     
  Misses       393479   393479              
  Partials       7929     7929              
Flag Coverage Δ
uitests 4.27% <ø> (ø)
unittests 15.79% <0.00%> (-0.01%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

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

codecov[bot] avatar Jul 22 '24 12:07 codecov[bot]

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✖️ debian ✔️ suse15. SL-JID 10437

blueorangutan avatar Jul 22 '24 13:07 blueorangutan

@blueorangutan test

sureshanaparti avatar Jul 22 '24 18:07 sureshanaparti

@sureshanaparti a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

blueorangutan avatar Jul 22 '24 18:07 blueorangutan

@blueorangutan package

sureshanaparti avatar Jul 22 '24 18:07 sureshanaparti

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Jul 22 '24 18:07 blueorangutan

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10440

blueorangutan avatar Jul 22 '24 19:07 blueorangutan

@blueorangutan test

sureshanaparti avatar Jul 22 '24 19:07 sureshanaparti

@sureshanaparti a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

blueorangutan avatar Jul 22 '24 19:07 blueorangutan

[SF] Trillian test result (tid-10943) Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 50252 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9428-t10943-kvm-centos7.zip Smoke tests completed. 132 look OK, 0 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File

blueorangutan avatar Jul 23 '24 09:07 blueorangutan

@vishesh92 can you confirm if you'd finished manual QA on this? thanks.

yadvr avatar Sep 05 '24 17:09 yadvr

@vishesh92 can you confirm if you'd finished manual QA on this? thanks.

I had an offline discussion with @sureshanaparti and there was some confusion about the expected behaviour.

As of now, if disk size is set in the offering and disk offering's size strictness is disabled, I am not able to resize the disk.

vishesh92 avatar Sep 05 '24 17:09 vishesh92

Had another discussion with @sureshanaparti . This is working as expected. Merging.

vishesh92 avatar Sep 06 '24 05:09 vishesh92