Updated Branches:
  refs/heads/4.2 54ff7569d -> dbb49ab1e

CLOUDSTACK-4273. Volume test cases fails from BVT, test cases failed during 
attachment.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/dbb49ab1
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/dbb49ab1
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/dbb49ab1

Branch: refs/heads/4.2
Commit: dbb49ab1e0261b00b678b7d696cf687c9a257723
Parents: 54ff756
Author: Likitha Shetty <[email protected]>
Authored: Tue Aug 13 10:23:28 2013 +0530
Committer: Likitha Shetty <[email protected]>
Committed: Tue Aug 13 10:26:18 2013 +0530

----------------------------------------------------------------------
 server/src/com/cloud/storage/VolumeManagerImpl.java | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/dbb49ab1/server/src/com/cloud/storage/VolumeManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/storage/VolumeManagerImpl.java 
b/server/src/com/cloud/storage/VolumeManagerImpl.java
index db1e5aa..62d57f7 100644
--- a/server/src/com/cloud/storage/VolumeManagerImpl.java
+++ b/server/src/com/cloud/storage/VolumeManagerImpl.java
@@ -1847,9 +1847,6 @@ public class VolumeManagerImpl extends ManagerBase 
implements VolumeManager {
         VolumeInfo volOnSecondary = volFactory.getVolume(volume.getId(), 
DataStoreRole.Image);
         if (volOnSecondary != null) {
             isVolumeOnSec = true;
-            if(volOnSecondary.getState() != Volume.State.Uploaded) {
-                throw new InvalidParameterValueException("Volume is not 
uploaded yet. Please try this operation once the volume is uploaded");
-            }
         }
         
         boolean createVolumeOnBackend = true;

Reply via email to