Bug 823160 - api: host statistics: memory.free value is wrong
api: host statistics: memory.free value is wrong
Status: CLOSED DUPLICATE of bug 826643
Product: oVirt
Classification: Community
Component: ovirt-engine-api (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Ori Liel
Depends On:
  Show dependency treegraph
Reported: 2012-05-19 11:39 EDT by Einav Cohen
Modified: 2012-06-21 04:34 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-21 04:34:59 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Einav Cohen 2012-05-19 11:39:28 EDT
Description of problem:
Memory host statistics in api don't add-up correctly.
The "memory.free" value seem to be wrong (after comparing the numbers with the ones shown in admin GUI).

Version-Release number of selected component (if applicable):
oVirt upstream

How reproducible:

Steps to Reproduce:
1. under root api URL, navigate to: hosts/<host-GUID>/statistics
2. check the memory.total, memory.used, memory.free values
Actual results:
numbers don't add up (memory.used + memory.free <> memory.total)

Expected results:
numbers add up (memory.used + memory.free = memory.total)

Additional info:
in api, memory.free is calculated as:

So VDS.getmem_available() doesn't seem to represent the Host's free memory (not sure if by design or due to a bug).

The engine's "Host.getmem_available()" probably reflects the vdsm's "memAvailable" value returned from the "getVdsStats" vdsm api verb.

So bug is in either rest-api, engine-core or vdsm.
Comment 1 Ori Liel 2012-06-21 04:34:59 EDT

*** This bug has been marked as a duplicate of bug 826643 ***

Note You need to log in before you can comment on or make changes to this bug.