Bug 823160 - api: host statistics: memory.free value is wrong
Summary: api: host statistics: memory.free value is wrong
Keywords:
Status: CLOSED DUPLICATE of bug 826643
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-api
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Ori Liel
QA Contact:
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-19 15:39 UTC by Einav Cohen
Modified: 2012-06-21 08:34 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-21 08:34:59 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Einav Cohen 2012-05-19 15:39:28 UTC
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:
always

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:
VDS.getmem_available()

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 08:34:59 UTC

*** 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.