We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c3c88e commit f9998e4Copy full SHA for f9998e4
1 file changed
server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
@@ -2033,6 +2033,10 @@ public Volume migrateVolume(MigrateVolumeCmd cmd) {
2033
throw new InvalidParameterValueException("Volume must be in ready state");
2034
}
2035
2036
+ if (vol.getPoolId() == storagePoolId) {
2037
+ throw new InvalidParameterValueException("Volume " + vol + " is already on the destination storage pool");
2038
+ }
2039
+
2040
boolean liveMigrateVolume = false;
2041
Long instanceId = vol.getInstanceId();
2042
Long srcClusterId = null;
@@ -3384,4 +3388,4 @@ public String getConfigComponentName() {
3384
3388
public ConfigKey<?>[] getConfigKeys() {
3385
3389
return new ConfigKey<?>[] {ConcurrentMigrationsThresholdPerDatastore};
3386
3390
3387
-}
3391
+}
0 commit comments