Skip to content

vmware: volume utilisation is always zero#4225

Merged
yadvr merged 3 commits intoapache:4.14from
shapeblue:vmware-disk-utilisation
Aug 5, 2020
Merged

vmware: volume utilisation is always zero#4225
yadvr merged 3 commits intoapache:4.14from
shapeblue:vmware-disk-utilisation

Conversation

@yadvr
Copy link
Copy Markdown
Member

@yadvr yadvr commented Jul 28, 2020

  • This fixes issues of virtual size to be twice in case the disk is a linked-clone root disk. The virtual size of root disk (first in chain) must be used.
  • Fixes to report the physical size for a volume whose stat is being collected

After the fix utilisation is seen as below:
Screenshot from 2020-07-28 18-07-08

Logs also show valid values like:

2020-07-28 12:17:09,296 DEBUG [c.c.h.v.m.DatastoreMO] (DirectAgent-38:ctx-1a415fb5 10.10.4.235, cmd: GetVolumeStatsCommand) (logid:7c3f9cb8) File found = ROOT-3.vmdk, size=157134848
2020-07-28 12:17:09,471 DEBUG [c.c.h.v.m.DatastoreMO] (DirectAgent-38:ctx-1a415fb5 10.10.4.235, cmd: GetVolumeStatsCommand) (logid:7c3f9cb8) File found = b86db0909f7236d7acb343b0572bca65.vmdk, size=1201016832
2020-07-28 12:17:09,656 DEBUG [c.c.h.v.m.DatastoreMO] (DirectAgent-38:ctx-1a415fb5 10.10.4.235, cmd: GetVolumeStatsCommand) (logid:7c3f9cb8) File found = 2aee4824309444cba11c0508f33181ad.vmdk, size=0
2020-07-28 12:17:09,831 DEBUG [c.c.h.v.m.DatastoreMO] (DirectAgent-38:ctx-1a415fb5 10.10.4.235, cmd: GetVolumeStatsCommand) (logid:7c3f9cb8) File found = ROOT-4.vmdk, size=11329536
2020-07-28 12:17:10,040 DEBUG [c.c.h.v.m.DatastoreMO] (DirectAgent-38:ctx-1a415fb5 10.10.4.235, cmd: GetVolumeStatsCommand) (logid:7c3f9cb8) File found = 970775ec1cf233c08d6a3f0aaac9bec6.vmdk, size=1023160320

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

This fixes issues of virtual size to be twice in case the disk is a
linked-clone root disk. The virtual size of root disk (first in chain)
must be used.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr yadvr added this to the 4.14.1.0 milestone Jul 28, 2020
@yadvr yadvr changed the base branch from master to 4.14 July 28, 2020 10:58
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr
Copy link
Copy Markdown
Member Author

yadvr commented Jul 28, 2020

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@yadvr yadvr requested a review from borisstoyanov July 28, 2020 12:44
@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔centos7 ✔debian. JID-1615

@yadvr
Copy link
Copy Markdown
Member Author

yadvr commented Jul 28, 2020

@blueorangutan test centos7 vmware-67u3

@blueorangutan
Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests

@yadvr yadvr closed this Jul 29, 2020
@yadvr yadvr reopened this Jul 29, 2020
@Spaceman1984
Copy link
Copy Markdown
Contributor

@rhtyd I had a look at this, the physical size is reflecting correctly, but that utilization field is a bit strange on the front end, seems like the value should be multiplied by 100?

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-2227)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server 7
Total time taken: 44247 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4225-t2227-vmware-67u3.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_supported_versions.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Smoke tests completed. 81 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_add_delete_kubernetes_supported_version Error 1807.30 test_kubernetes_supported_versions.py
ContextSuite context=Test01DeployVM>:setup Error 0.00 test_vm_life_cycle.py
ContextSuite context=Test02VMLifeCycle>:setup Error 0.00 test_vm_life_cycle.py

@yadvr
Copy link
Copy Markdown
Member Author

yadvr commented Jul 30, 2020

@Spaceman1984 historically the volume utilisation has been a ratio of physical size by virtual size. But it makes sense to show it as a more human readable percentage. Fixed it cc @borisstoyanov

@yadvr
Copy link
Copy Markdown
Member Author

yadvr commented Jul 30, 2020

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔centos7 ✔debian. JID-1624

@borisstoyanov
Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Copy link
Copy Markdown
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Screenshot 2020-07-30 at 12 26 32

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-2239)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 46269 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4225-t2239-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Smoke tests completed. 82 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_04_deploy_and_upgrade_kubernetes_cluster Failure 1220.11 test_kubernetes_clusters.py

@borisstoyanov borisstoyanov requested a review from PaulAngus August 3, 2020 11:17
@yadvr yadvr requested a review from DaanHoogland August 4, 2020 05:56
Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code makes sense but i have no idea on the consequences and accuracy, So I'm trusting @borisstoyanov 's assement in that respect.

@yadvr yadvr merged commit 2fce8b7 into apache:4.14 Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants