Skip to content

Commit 98d4275

Browse files
Merge pull request #4257 from RodrigoDLopez/Remove_tags_check_when_migrate_volume
remove the unnecessary check for tags when migrating volumes
2 parents 490658c + 4f779c2 commit 98d4275

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2396,10 +2396,6 @@ public Volume migrateVolume(MigrateVolumeCmd cmd) {
23962396
if (diskOffering == null) {
23972397
throw new CloudRuntimeException("volume '" + vol.getUuid() + "', has no diskoffering. Migration target cannot be checked.");
23982398
}
2399-
if (!doesTargetStorageSupportDiskOffering(destPool, diskOffering)) {
2400-
throw new CloudRuntimeException(String.format("Migration target pool [%s, tags:%s] has no matching tags for volume [%s, uuid:%s, tags:%s]", destPool.getName(),
2401-
getStoragePoolTags(destPool), vol.getName(), vol.getUuid(), diskOffering.getTags()));
2402-
}
24032399

24042400
if (liveMigrateVolume && State.Running.equals(vm.getState()) &&
24052401
destPool.getClusterId() != null && srcClusterId != null) {

0 commit comments

Comments
 (0)