Conversation
During volume stats calculation, if a volume has more than one disk in the chain-info it is not used to sum the physical and virtual size in the loop, instead any previous entry was overwritten by the last disk. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos6 ✖centos7 ✔debian. JID-91 |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-95 |
|
@blueorangutan test centos7 vmware-65u2 |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests |
anuragaw
left a comment
There was a problem hiding this comment.
LGTM. Haven't tested but code looks solid.
Would be great, @andrijapanic if you can quickly test and LGTM this.
|
Can't comment atm, but @rhtyd this was an issue with both full clones and linked clones. I'll be able to test this after 17th... |
|
Trillian test result (tid-107) |
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-97 |
|
@blueorangutan test centos7 vmware-65u2 |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests |
|
Trillian test result (tid-113) |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-102 |
|
@rhtyd will be looking into this |
|
As reported in #3473 (comment), ROOT-*-delta.vmdk file size increases whenever something is written to instance disk. But this vmdk file is not taken into account while calculating volumes' physical size. |
|
I've verified with debugging https://github.com/apache/cloudstack/blob/master/vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo/VirtualMachineMO.java#L2597-L2609, VirtualDisk points to Even with |
|
Merging this based on lgtms and reviews. It's possible that more fixes need to be done, but at least this change ensures that multi-chained disks are not ignored. I'll keep the original issue open but close/merge this PR. |
DaanHoogland
left a comment
There was a problem hiding this comment.
logic looks sane, i hope we can rely on the vmware logic to be as sane (i.e. chainInfo works as intuitively and consistently as it seems from this code)







During volume stats calculation, if a volume has more than one disk in
the chain-info it is not used to sum the physical and virtual size
in the loop, instead any previous entry was overwritten by the last disk.
Fixes #3416
Types of changes