bhouse-nexthop opened a new pull request, #14750:
URL: https://github.com/apache/cloudstack/pull/14750

   ### Description
   
   Fixes #14749
   
   `checkIfVolumeCanResizeWithNewDiskOffering` shifted an already-bytes size by 
30 again, so its "already having disk offering" guard never matched for 
custom-size offerings.
   
   | changeOfferingForVolume to the same custom offering | before | after |
   |---|---|---|
   | same size, same IOPS | ran the full change path | rejected: "already 
having disk offering" |
   | same size, new IOPS | allowed | allowed |
   | new size | allowed | allowed |
   | compute-only offering (size taken from the volume) | allowed | allowed |
   
   - Drop the second `<< 30`.
   - Only reject when min/max IOPS are also unchanged.
   - Skip compute-only offerings (scale VM to the same custom service offering 
goes through here).
   
   ### Types of changes
   
   - [x] Bug fix (non-breaking change which fixes an issue)
   
   ### Bug Severity
   
   - [x] Minor
   
   ### How Has This Been Tested?
   
   | test | result |
   |---|---|
   | `VolumeApiServiceImplTest` (150 tests, 5 new) | pass |
   | new rejection test against the unfixed code | fails as expected |
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to