Merge pull request #4257 from RodrigoDLopez/Remove_tags_check_when_migrate_volume

remove the unnecessary check for tags when migrating volumes
This commit is contained in:
Harikrishna 2021-07-29 09:53:52 +05:30 committed by GitHub
commit 98d42750cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -2396,10 +2396,6 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
if (diskOffering == 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 && State.Running.equals(vm.getState()) &&
destPool.getClusterId() != null && srcClusterId != null) {