[ops] [nova] Wrong reported memory hypervisor usage

Sean Mooney smooney at redhat.com
Wed Feb 27 10:47:10 UTC 2019


On Wed, 2019-02-27 at 09:33 +0100, Massimo Sgaravatto wrote:
> In the dashboard of my OpenStack Ocata cloud I see that the reported memory usage is wrong for the hypervisors.
> As far as I understand that information should correspond to the "used_now" field of the  "nova host-describe" 
nova host-describe has been removed in later version of nova.
> command. And indeed considering an hypervisor: 
> 
> 
> # nova host-describe cld-blu-01.cloud.pd.infn.it
> +-----------------------------+----------------------------------+-----+-----------+---------+
> | HOST                        | PROJECT                          | cpu | memory_mb | disk_gb |
> +-----------------------------+----------------------------------+-----+-----------+---------+
> | cld-blu-01.cloud.pd.infn.it | (total)                          | 8   | 32722     | 241     |
> | cld-blu-01.cloud.pd.infn.it | (used_now)                       | 19  | 16259     | 23      |
> | cld-blu-01.cloud.pd.infn.it | (used_max)                       | 19  | 38912     | 95      |
> | cld-blu-01.cloud.pd.infn.it | b08eede75d5e4be4b0fe21e68fa9c688 | 1   | 2048      | 20      |
> | cld-blu-01.cloud.pd.infn.it | 7890b3e262264529a19f9743cf2f14bc | 16  | 32768     | 50      |
> | cld-blu-01.cloud.pd.infn.it | 4d8187cffa6a4085ad4a357b8a5afc03 | 2   | 4096      | 25      |
> +-----------------------------+----------------------------------+-----+-----------+---------+
> 
> 
> So for the memory it reports 16259 for used_now, while as far as far I understand it should be 38912 + the memory used
> by the hypervisor
> 
> Am I missing something ?
the hypervisors api's memory_mb_used is (reserved memory + total of all memory associtate with instance on the host).
i would have expected used_now to reflect that.
what does  "openstack hypervisor show cld-blu-01.cloud.pd.infn.it" print.

> 
> Thanks, Massimo
> 




More information about the openstack-discuss mailing list