mirror of https://github.com/apache/cloudstack.git
remove the unnecessary check for tags when migrating volumes
This commit is contained in:
parent
6a1ddf7d14
commit
4f779c26ca
|
|
@ -2202,10 +2202,6 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
|||
if (diskOffering.equals(null)) {
|
||||
throw new CloudRuntimeException("volume '" + vol.getUuid() + "', has no diskoffering. Migration target cannot be checked.");
|
||||
}
|
||||
if (!doesTargetStorageSupportDiskOffering(destPool, diskOffering)) {
|
||||
throw new CloudRuntimeException(String.format("Migration target pool [%s, tags:%s] has no matching tags for volume [%s, uuid:%s, tags:%s]", destPool.getName(),
|
||||
getStoragePoolTags(destPool), vol.getName(), vol.getUuid(), diskOffering.getTags()));
|
||||
}
|
||||
|
||||
if (liveMigrateVolume && destPool.getClusterId() != null && srcClusterId != null) {
|
||||
if (!srcClusterId.equals(destPool.getClusterId())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue