CLOUDSTACK-4273.

This commit is contained in:
Likitha Shetty 2013-08-13 11:13:42 +05:30
parent 314c6579a5
commit 15b40e5cf2

View File

@ -1852,9 +1852,6 @@ public class VolumeManagerImpl extends ManagerBase implements VolumeManager {
boolean createVolumeOnBackend = true;
if (rootVolumeOfVm.getState() == Volume.State.Allocated) {
createVolumeOnBackend = false;
if(isVolumeOnSec) {
throw new CloudRuntimeException("Cant attach uploaded volume to the vm which is not created. Please start it and then retry");
}
}
// Create volume on the backend only when VM's root volume is allocated