Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.1.0, 4.2.0
-
None
-
Security Level: Public (Anyone can view this level - this is the default.)
-
None
Description
Hi folks, I have sent an e-mail about this issue. And I was hoping to discuss it before I opened a jira ticket. However, no one seemed to care about it.
So, here is the problem:
There is a wrong value being presented on infrastructure > Hosts.
The data used to present on statistics tab is got from "listHosts" API method:
http://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/listHosts.html
“listHosts” is the method which returns those values about the host (mem, cpu and etc).
It returns these values about the host’s memory:
memoryallocated the amount of the host's memory currently allocated
memorytotal the memory total of the host
memoryused the amount of the host's memory currently used
The API Doc does not say the metric used on those values. But, I took a look at the CS source code. And it turned out that the first two values are given in bytes, while the third one is given in KB and that is why that value looks so small when presented on statistics tab. It is not being converted in a proper way on the UI.