Skip to content

flasharray: moving or copying a volume between two pools creates it in the old pool's pod #14852

In review

Description

@Damans227

problem

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

  1. Add two FlashArray primary storage pools on the same array, each pointing at a different pod, with the same storage tag.
  2. Create a data volume, attach it to a VM so it gets created on the array, then detach it.
  3. Migrate it to the other pool: migrate volume volumeid=<id> storageid=<pool B>
  4. 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:

pool_id: 4
path: type=FIBERWWN; address=...114de; providerName=cs-prim-fc-p1::vol-4-1-2-22; ...

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions