bhouse-nexthop opened a new pull request, #14760: URL: https://github.com/apache/cloudstack/pull/14760
### Description Fixes #14759 `changeDiskOfferingForVolumeInternal` on `main` ran its tail twice: the no-op check, the migrate step and the resize step. Merge 82bfa9fb3f produced the second copy when it resolved 9c0c8da706's reservation `try/finally` from 4.22. | change | why | |---|---| | remove the second copy | an offering change needing migration migrated twice, and one needing a resize resized twice | | keep the first copy | it has main's newer error messages from bc76f2042d (#12367). The removed copy has 4.22's older text. | | new test `changeDiskOfferingForVolumeInternalMigratesAndResizesOnce` | checks one `migrateVolume` to the chosen pool with the new offering, and one `resizeVolumeInternal` | Affects `main` and 4.23.0.0; 4.22 is not affected. #14752 (4.22) edits this block, and once this lands its merge forward to `main` only has one copy to update. ### Types of changes - [x] Bug fix (non-breaking change which fixes an issue) ### Bug Severity - [x] Major ### How Has This Been Tested? | check | result | |---|---| | new test before the fix | fails: `migrateVolume` wanted 1 time, was 2 | | `VolumeApiServiceImplTest` after the fix (`mvn -pl server -am`) | 169/169 pass | | checkstyle | pass | -- 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]
