[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16312502#comment-16312502
 ] 

ASF GitHub Bot commented on CLOUDSTACK-9908:
--------------------------------------------

rhtyd closed pull request #2104: CLOUDSTACK-9908 : Primary Storage allocated 
capacity goes very high after VM snapshot
URL: https://github.com/apache/cloudstack/pull/2104
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java
 
b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java
index 00298cedc75..103765b9e11 100644
--- 
a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java
+++ 
b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java
@@ -1306,11 +1306,12 @@ private void 
setVolumeToPathAndSize(List<VolumeObjectTO> volumeTOs, Map<String,
             // get volume's chain size for this VM snapshot; exclude current 
volume vdisk
             DataStoreTO store = volumeTO.getDataStore();
             ManagedObjectReference morDs = 
getDatastoreAsManagedObjectReference(baseName, hyperHost, store);
-            long size = getVMSnapshotChainSize(context, hyperHost, baseName + 
"*.vmdk", morDs, newPath);
+            long size = getVMSnapshotChainSize(context, hyperHost, baseName + 
".vmdk", morDs, newPath);
+            size = getVMSnapshotChainSize(context, hyperHost, baseName + 
"-*.vmdk", morDs, newPath);
 
             if (volumeTO.getVolumeType()== Volume.Type.ROOT) {
                 // add memory snapshot size
-                size += getVMSnapshotChainSize(context, hyperHost, vmName + 
"*.vmsn", morDs, null);
+                size += getVMSnapshotChainSize(context, hyperHost, vmName + 
"-*.vmsn", morDs, null);
             }
 
             volumeTO.setSize(size);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Primary Storage allocated capacity goes very high after VM snapshot
> -------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9908
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9908
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>    Affects Versions: 4.9.0
>            Reporter: jay
>             Fix For: 4.10.1.0
>
>
> Take a VM snapshot, the primary storage allocated capacity goes very high 
> causing the other deployments to fail.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to