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/master to 6c05d9f
Date Wed, 18 Feb 2015 20:56:00 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 9c381a21c -> 6c05d9f57


CLOUDSTACK-8263: KVM - virsh resize doesnt refresh libvirt's view of the volume size, refresh
pool

Change-Id: I5ea54f7389d72b57bb625e4d87b45b65eb0c96cd


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

Branch: refs/heads/master
Commit: 6c05d9f572ee245b43bb06b384c339d17a20b83d
Parents: 9c381a2
Author: Marcus Sorensen <marcus_sorensen@apple.com>
Authored: Wed Feb 18 12:54:22 2015 -0800
Committer: Marcus Sorensen <marcus_sorensen@apple.com>
Committed: Wed Feb 18 12:55:53 2015 -0800

----------------------------------------------------------------------
 .../com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6c05d9f5/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
index 20d7093..48ad19d 100644
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
@@ -1919,6 +1919,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements
Serv
 
             /* fetch new size as seen from libvirt, don't want to assume anything */
             pool = _storagePoolMgr.getStoragePool(spool.getType(), spool.getUuid());
+            pool.refresh();
             long finalSize = pool.getPhysicalDisk(volid).getVirtualSize();
             s_logger.debug("after resize, size reports as " + finalSize + ", requested "
+ newSize);
             return new ResizeVolumeAnswer(cmd, true, "success", finalSize);


Mime
View raw message