mirror of https://github.com/apache/cloudstack.git
Fix Linstor shrink qcow2 volumes (#12387)
This commit is contained in:
parent
750290b8ae
commit
9a38e75abd
|
|
@ -2420,7 +2420,8 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
|||
}
|
||||
}
|
||||
|
||||
if (volume != null && ImageFormat.QCOW2.equals(volume.getFormat()) && !Volume.State.Allocated.equals(volume.getState()) && !StoragePoolType.StorPool.equals(volume.getPoolType())) {
|
||||
if (volume != null && ImageFormat.QCOW2.equals(volume.getFormat()) && !Volume.State.Allocated.equals(volume.getState()) &&
|
||||
!Arrays.asList(StoragePoolType.StorPool, StoragePoolType.Linstor).contains(volume.getPoolType())) {
|
||||
String message = "Unable to shrink volumes of type QCOW2";
|
||||
logger.warn(message);
|
||||
throw new InvalidParameterValueException(message);
|
||||
|
|
|
|||
Loading…
Reference in New Issue