bhouse-nexthop opened a new issue, #14759:
URL: https://github.com/apache/cloudstack/issues/14759
### problem
On `main`, `VolumeApiServiceImpl.changeDiskOfferingForVolumeInternal` runs
its last block twice in a row. The block is the no-op check, then the migrate
step, then the resize step.
| | effect on `main` |
|---|---|
| offering change needs a migration | volume is migrated twice. The second
target comes from the pool list computed before the first move. |
| offering change needs a resize | volume is resized twice |
| `4.22` | not affected, the block is there once |
| `4.23.0.0` | affected (the release contains 82bfa9fb3f) |
Cause: merge 82bfa9fb3f ("Merge branch '4.22'"). 9c0c8da706 on 4.22 wrapped
the method body in a reservation `try/finally`. The merge kept main's
re-indented copy and also 4.22's copy below it.
### versions
`main` (24.0.0-SNAPSHOT) since 82bfa9fb3f. 4.22 is not affected.
### The steps to reproduce the bug
1. Volume on pool A. Disk offering B whose tags only match pool B.
2. `changeOfferingForVolume id=<vol> diskofferingid=<B> automigrate=true`
3. `migrateVolume` runs twice. The second run picks again from the stale
pool list.
### What to do about it?
Delete the second copy. Keep the first, which has main's newer messages from
bc76f2042d (#12367).
--
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]