yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #76353
[Bug 1767315] Re: "openstack hypervisor stats show" shows wrong memory information
this is not a but at least not as reported.
free_ram_mb is not ment to be equal to the free value of "free -m"
memory_mb is 4047 and memory_mb 4096
as a result the total amount of memery that you have acounted against
guests is 49 mb more then the avalible ram
so free_ram_mb which is caluated as memory_mb - memory_mb_used
is -49 as you are oversubsibed by 49MBs
the default ram allocation ratio is 1.5 which is why you are allowed to allocate more ram then you have up to 6GiB in your
case.
not that memory_mb_used is calulated by suming the total ram of all vms
scheduled to a node + the reserved_host_memory_mb config value which i
would guess defaults to 4096 in triplo.
https://docs.openstack.org/nova/latest/configuration/config.html#DEFAULT.reserved_host_memory_mb
** Changed in: nova
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1767315
Title:
"openstack hypervisor stats show" shows wrong memory information
Status in OpenStack Compute (nova):
Invalid
Bug description:
Description
===========
"openstack hypervisor stats show" shows wrong memory information
Steps to reproduce
==================
- The deployment is done through tripleo-quickstart for openstack queens
(overcloud) [stack@undercloud ~]$ openstack hypervisor stats show
+----------------------+-------+
| Field | Value |
+----------------------+-------+
| count | 1 |
| current_workload | 0 |
| disk_available_least | 43 |
| free_disk_gb | 49 |
| free_ram_mb | -49 |
| local_gb | 49 |
| local_gb_used | 0 |
| memory_mb | 4047 |
| memory_mb_used | 4096 |
| running_vms | 0 |
| vcpus | 2 |
| vcpus_used | 0 |
+----------------------+-------+
(overcloud) [stack@undercloud ~]$
[root@overcloud-novacompute-0 ~]# free -m
total used free shared buff/cache available
Mem: 3742 556 203 1 2982 2688
Swap: 0 0 0
[root@overcloud-novacompute-0 ~]#
Expected result
===============
Should leverage the actual available memory.
Actual result
=============
Showing wrong memory value.
Environment
===========
- Openstack queens
[heat-admin@overcloud-novacompute-0 ~]$ rpm -qa | grep nova
openstack-nova-placement-api-17.0.3-0.20180420001136.bf0a069.el7.centos.noarch
python-nova-17.0.3-0.20180420001136.bf0a069.el7.centos.noarch
puppet-nova-12.4.1-0.20180423041756.95ca7cd.el7.centos.noarch
openstack-nova-scheduler-17.0.3-0.20180420001136.bf0a069.el7.centos.noarch
python2-novaclient-9.1.1-0.20180213141814.a1c0074.el7.centos.noarch
openstack-nova-conductor-17.0.3-0.20180420001136.bf0a069.el7.centos.noarch
openstack-nova-migration-17.0.3-0.20180420001136.bf0a069.el7.centos.noarch
openstack-nova-console-17.0.3-0.20180420001136.bf0a069.el7.centos.noarch
openstack-nova-common-17.0.3-0.20180420001136.bf0a069.el7.centos.noarch
openstack-nova-compute-17.0.3-0.20180420001136.bf0a069.el7.centos.noarch
openstack-nova-api-17.0.3-0.20180420001136.bf0a069.el7.centos.noarch
openstack-nova-novncproxy-17.0.3-0.20180420001136.bf0a069.el7.centos.noarch
[heat-admin@overcloud-novacompute-0 ~]$
Logs & Configs
==============
- default configuration
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1767315/+subscriptions
References