Uh oh!
There was an error while loading. Please reload this page.
vmware: fix volume stats logic - #3473
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>
yadvr
commented
Jul 5, 2019
@blueorangutan package |
blueorangutan
commented
Jul 5, 2019
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jul 5, 2019
Packaging result: ✖centos6 ✖centos7 ✔debian. JID-91 |
yadvr
commented
Jul 5, 2019
@blueorangutan package |
blueorangutan
commented
Jul 5, 2019
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jul 5, 2019
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-95 |
yadvr
commented
Jul 5, 2019
@blueorangutan test centos7 vmware-65u2 |
blueorangutan
commented
Jul 5, 2019
@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.
andrijapanicsb
commented
Jul 5, 2019
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... |
blueorangutan
commented
Jul 5, 2019
Trillian test result (tid-107) |
shwstppr
commented
Jul 8, 2019
@blueorangutan package |
blueorangutan
commented
Jul 8, 2019
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jul 8, 2019
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-97 |
yadvr
commented
Jul 8, 2019
@blueorangutan test centos7 vmware-65u2 |
blueorangutan
commented
Jul 8, 2019
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests |
shwstppr
commented
Jul 8, 2019
blueorangutan
commented
Jul 8, 2019
Trillian test result (tid-113) |
yadvr
commented
Jul 9, 2019
@blueorangutan package |
blueorangutan
commented
Jul 9, 2019
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jul 9, 2019
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-102 |
yadvr
commented
Jul 15, 2019
shwstppr
commented
Jul 15, 2019
@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. |
shwstppr
commented
Jul 18, 2019
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 |
yadvr
commented
Jul 22, 2019
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