VMware Cloud Director event logs report incorrect values for the vm.storageAllocationMb property when multiple snapshots exist on a Virtual Machine (VM). The reported size reflects a multiplication of the first snapshot size by the total number of snapshots rather than the cumulative total.
Symptoms:
vm.storageAllocationMb values increase exponentially with each new snapshot.Verification Example:
From the VCD event data, we observed:
Therefore, snapshot size = 292.22 GB − 230.04 GB = 62.18 GB
This snapshot size matches the total snapshot size shown in the vCloud Director UI.
From the data, we observed:
Therefore, snapshot size = 354.41 GB − 230.04 GB = 124.37 GB
This snapshot size does not match the total snapshot size shown in the vCloud Director UI. Ideally, the storageAllocationMb should have reflected: 230.04 GB (VSAN) + 62.18 GB (1st snapshot) + 10.26 GB (2nd snapshot) = 302.48 GB.
It is believed that the resulting 124.37 GB is actually the size of the first snapshot (62.18 GB) multiplied by the number of snapshots at that point in time (2), i.e., 62.18 × 2 = 124.37 GB.
From the data, we observed:
Therefore, snapshot size = 416.59 GB − 230.04 GB = 186.55 GB
This snapshot size also does not match the total snapshot size shown in the vCloud Director UI. Ideally, the storageAllocationMb should have reflected: 230.04 GB (VSAN) + 62.18 GB (1st snapshot) + 10.26 GB (2nd snapshot) + 8.01 GB (3rd snapshot) = 310.49 GB.
Analysis suggest that the resulting 186.55 GB is, similarly, the size of the first snapshot (62.18 GB) multiplied by the number of snapshots at that point (3), i.e., 62.18 × 3 = 186.55 GB.
VMware Cloud Director 10.6.1.2
This caused due to a code-level defect in the composite key implementation within VmSnapshotStorageClassMetricsView preventing correct tracking of snapshot storage size.
The issue is resolved in VMware Cloud Director 10.6.2.
To resolve this issue, upgrade to VMware Cloud Director 10.6.2 or higher. Refer Download Broadcom products, patches and software to download this release.
Workaround: Perform manual billing for end-clients by verifying snapshot sizes directly in the vCloud Director UI until the upgrade is completed.