cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mlsoren...@apache.org
Subject git commit: updated refs/heads/resize-root to d04452d
Date Mon, 10 Mar 2014 16:01:49 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/resize-root 0eb996735 -> d04452d9a


Add debugging to resizeVolume, to spit out state of volume if failure occurs due to state


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

Branch: refs/heads/resize-root
Commit: d04452d9afee95eb90602ab4d3e5242a1b428c06
Parents: 0eb9967
Author: Marcus Sorensen <marcus@betterservers.com>
Authored: Mon Mar 10 10:01:27 2014 -0600
Committer: Marcus Sorensen <marcus@betterservers.com>
Committed: Mon Mar 10 10:01:27 2014 -0600

----------------------------------------------------------------------
 server/src/com/cloud/storage/VolumeApiServiceImpl.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d04452d9/server/src/com/cloud/storage/VolumeApiServiceImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/storage/VolumeApiServiceImpl.java b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
index 160a9ae..c4e8f00 100644
--- a/server/src/com/cloud/storage/VolumeApiServiceImpl.java
+++ b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
@@ -706,7 +706,8 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
         }
 
         if (volume.getState() != Volume.State.Ready && volume.getState() != Volume.State.Allocated)
{
-            throw new InvalidParameterValueException("Volume should be in ready or allocated
state before attempting a resize");
+            throw new InvalidParameterValueException("Volume should be in ready or allocated
state before attempting a resize. "
+                                                     + "Volume " + volume.getUuid() + " state
is:" + volume.getState());
         }
 
         /*


Mime
View raw message