Issue


RAM shows zero for the compute resource in my OnApp Control Panel.


Environment


OnApp 5.x, 6.x versions


How to Diagnose


To make sure the data provided in Control Panel is wrong, check the .xml page from the API call:

  1. Go to the following page in your browser:
    <Your Control panel URL>/settings/hypervisors.xml => and search for the compute resource.
  2. Once the <free_memory type="integer">183826</free_memory> entry is found, check the value. If the value is other than 0, the data in your Control Panel is wrong. If the value is 0, it means that there is either an issue with snmpd or you are out of RAM. In this case, contact OnApp Support.


Resolution


The reason is the Memory Guarantee option which is enabled for this compute resource. When it is enabled, the memory in the UI is calculated as follows:

<actual free memory on the HV > - sum(memory)_all_stopped_vms_on_the_hv
CODE

If this value is less than or equals 0, then you have no free memory.

To change this value, disable the Memory Guarantee option or clear some of the stopped virtual servers.