cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject [1/3] git commit: updated refs/heads/master to a8ee45d
Date Tue, 06 Aug 2013 23:02:54 GMT
Updated Branches:
  refs/heads/master 93814d173 -> a8ee45de7


CLOUDSTACK-4116: Volume operations fail: InvocationTargetException when
invoking RPC callback for command: createVolumeCallback


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

Branch: refs/heads/master
Commit: 45c34b9ca8b9e92bbb05bfae3edfcde347f6c525
Parents: 93814d1
Author: Min Chen <min.chen@citrix.com>
Authored: Tue Aug 6 15:10:29 2013 -0700
Committer: Min Chen <min.chen@citrix.com>
Committed: Tue Aug 6 15:41:58 2013 -0700

----------------------------------------------------------------------
 .../com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/45c34b9c/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
index 5956365..ef5c8f6 100644
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
@@ -502,7 +502,7 @@ public class KVMStorageProcessor implements StorageProcessor {
                     }
                     s_logger.debug("Completed backing up RBD snapshot " + snapshotName +
" to  " + snapFile.getAbsolutePath() + ". Bytes written: " + offset);
                     bos.close();
-                    
+
                     s_logger.debug("Attempting to remove snapshot RBD " + snapshotName +
" from image " + snapshotDisk.getName());
                     image.snapRemove(snapshotName);
 
@@ -813,7 +813,7 @@ public class KVMStorageProcessor implements StorageProcessor {
 
             VolumeObjectTO newVol = new VolumeObjectTO();
             newVol.setPath(vol.getName());
-
+            newVol.setSize(volume.getSize());
             return new CreateObjectAnswer(newVol);
         } catch (Exception e) {
             s_logger.debug("Failed to create volume: " + e.toString());


Mime
View raw message