remove the unnecessary check for tags when migrating volumes

This commit is contained in:
Rodrigo Lopez 2020-08-10 15:53:06 -03:00
parent 6a1ddf7d14
commit 4f779c26ca
1 changed files with 0 additions and 4 deletions

View File

@ -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())) {