mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4551: Migrating the data volume from NFS to local storage ,underlying disk offering is not changed.
Even though the volume may get migrated from shared to local storage, it is not possible to update the disk offering. The fix is to disallow migration from shared to local store.
This commit is contained in:
parent
d17024c09b
commit
7e500a5de8
|
|
@ -2245,7 +2245,11 @@ public class VolumeManagerImpl extends ManagerBase implements VolumeManager {
|
|||
+ storagePoolId);
|
||||
}
|
||||
|
||||
if (!volumeOnSharedStoragePool(vol)) {
|
||||
if (volumeOnSharedStoragePool(vol)) {
|
||||
if (destPool.isLocal()) {
|
||||
throw new InvalidParameterValueException("Migration of volume from shared to local storage pool is not supported");
|
||||
}
|
||||
} else {
|
||||
throw new InvalidParameterValueException(
|
||||
"Migration of volume from local storage pool is not supported");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue