You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flasharray: moving or copying a volume between two pools creates it in the old pool's pod #14852
When a volume is moved or copied from one FlashArray pool to another, the new volume is created in the source pool's pod on the array. CloudStack still records it under the destination pool.
So CloudStack and the array disagree on where the volume lives. Capacity is wrong in both pools, and maintenance or deletion of a pool acts on volumes that are really in the other pod.
It happens on migrateVolume of a detached volume, on cold migrateVirtualMachineWithVolume, and on create volume from snapshot when the new volume goes to a different pool. Data is not corrupted. Only the placement is wrong.
The copy step in AdaptiveDataStoreDriverImpl builds the array connection from the source pool and uses the source pool for the destination volume too.
versions
ACS 4.22.1.1, KVM, FlashArray over FibreChannel, Purity//FA 6.10.6
The steps to reproduce the bug
Add two FlashArray primary storage pools on the same array, each pointing at a different pod, with the same storage tag.
Create a data volume, attach it to a VM so it gets created on the array, then detach it.
Migrate it to the other pool: migrate volume volumeid=<id> storageid=<pool B>
The API says the volume is on pool B. List the volumes on the array.
Volume moved from pool p1 to pool p2. CloudStack shows p2:
On the array the volume is in the p1 pod, and p2 got nothing:
> purevol list "cs-prim-fc-p1::*"
cs-prim-fc-p1::vol-4-1-2-22 20G Source: cs-prim-fc-p1::vol-3-1-2-21-20261121212707
> purevol list "cs-prim-fc-p2::*"
cs-prim-fc-p2::cs-prim-fc-p2-testvol 2G
What to do about it?
Use the destination pool for the array connection and for the new volume, so the copy lands in the destination pod. If the two pools are on different arrays, the copy should fail with a clear error instead of silently landing in the wrong place.
Activity