Skip to content

VMware: volume statistics show wrong values #3416

@andrijapanicsb

Description

@andrijapanicsb
ISSUE TYPE
  • Bug Report
COMPONENT NAME
GetVolumeStatsCommand
CLOUDSTACK VERSION
4.11+ (tested 4.11.2 and Master)
CONFIGURATION

NA

OS / ENVIRONMENT

NA

SUMMARY

physical volume size reported is wrong, and doesn't change after you write a lot of data to the VM's root disk (be it linked clone or full clone)

STEPS TO REPRODUCE

configure "volume.stats.interval" to 60000 (these are milliseconds, not seconds as stated atm - I raised a separate PR for this).

  1. Grep management-server.log for "GetVolumeStatsCommand" and observe it's running each minute

  2. Inside the VM, write i.e. 50MB to disk - "dd=/dev/urandom of=ddfile bs=1M count=50; sync"

  3. Wait for next run of GetVolumeStatsCommand from the mgmt logs - check the size reported in the text output and also on the GUI

EXPECTED RESULTS

Correct physical size is reported

ACTUAL RESULTS

0.53KB reported instead of the real size (linked clone - from image bellow is ~ 220MB)

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions