Damans227 opened a new pull request, #14853:
URL: https://github.com/apache/cloudstack/pull/14853
Fixes #14852
When a volume is copied or moved between two FlashArray pools, the new
volume is created in the source pool's pod, but CloudStack records it under the
destination pool. The copy step built the array connection and the destination
volume from the source pool. This uses the destination pool for both, so the
volume lands in the destination pod. If the pools are on different arrays, the
copy now fails with "Unable to find current volume to copy from" instead of
landing in the wrong pod.
### Test:
Two FlashArray pools on the same array, cs-prim-fc-p1 and cs-prim-fc-p2,
each on its own pod. Create a 1 GB data volume, attach and detach it so it
exists on the array, then migrate it to the other pool.
**Before:** volume moved from p1 to p2 is created in the p1 pod. p2 gets
nothing.
providerName=cs-prim-fc-p1::vol-4-1-2-22
> purevol list "cs-prim-fc-p2::*"
cs-prim-fc-p2::cs-prim-fc-p2-testvol 2G
**After:** volume moved from p2 to p1 is created in the p1 pod.
> migrate volume volumeid=3e71c4d8-6c60-43e9-a4ba-bb4b7635e12a
storageid=<p1>
"storage": "cs-prim-fc-p1"
providerName=cs-prim-fc-p1::vol-3-1-2-39
> purevol list
cs-prim-fc-p1::vol-3-1-2-39 1G
cs-prim-fc-p2::vol-4-1-2-38-20261125154910


Also added unit tests for the copy going through the destination pool, and
for the copy failing cleanly when the destination cant reach the source.
--
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]