Skip to content

Commit 4f779c2

Browse files
author
Rodrigo Lopez
committed
remove the unnecessary check for tags when migrating volumes
1 parent 6a1ddf7 commit 4f779c2

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
@@ -2202,10 +2202,6 @@ public Volume migrateVolume(MigrateVolumeCmd cmd) {
22022202
if (diskOffering.equals(null)) {
22032203
throw new CloudRuntimeException("volume '" + vol.getUuid() + "', has no diskoffering. Migration target cannot be checked.");
22042204
}
2205-
if (!doesTargetStorageSupportDiskOffering(destPool, diskOffering)) {
2206-
throw new CloudRuntimeException(String.format("Migration target pool [%s, tags:%s] has no matching tags for volume [%s, uuid:%s, tags:%s]", destPool.getName(),
2207-
getStoragePoolTags(destPool), vol.getName(), vol.getUuid(), diskOffering.getTags()));
2208-
}
22092205

22102206
if (liveMigrateVolume && destPool.getClusterId() != null && srcClusterId != null) {
22112207
if (!srcClusterId.equals(destPool.getClusterId())) {

0 commit comments

Comments
 (0)