The disk offering change (from shared to local pool, and vice versa) for a volume is updated, but the volume is not migrated when Auto migrate is enabled, and updated without any error when Auto migrate is disabled.
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
OS / ENVIRONMENT
MS: CentOS 7 + Hypervisor: KVM + Storage: NFS, Local
SUMMARY
Change disk offering for the volume (attached to a running VM, from shared to local pool), with / without enabling "Auto migrate volume to another storage pool if required". The Offering of the volume is updated in both cases, and the volume remains in the same shared pool.
STEPS TO REPRODUCE
- Deploy a VM
- Create a DATA disk, say DATA01, with Shared Pool disk offering (or Shared Pool disk offering)
- Create a Local Pool disk offering, say LocalDisk (or Use any default Shared Pool disk offering)
- Change Disk Offering of the DATA disk (DATA01), to Local Pool disk offering LocalDisk (or Local Data disk to Shared Pool disk offering)
EXPECTED RESULTS
- The volume offering should change after migrating to local pool, when auto migrate is enabled. otherwise, fail with relevant error.
- The volume offering should not change, when auto migrate is disabled and should throw relevant error.
ACTUAL RESULTS
- The volume offering changes and volume remains in the same pool when auto migrate is enabled.
- The volume offering changes when auto migrate is disabled.