Bug 1625119 - [rhos12] nova reporting incorrect available memory
Summary: [rhos12] nova reporting incorrect available memory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 12.0 (Pike)
Assignee: Stephen Finucane
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On: 1569678 1625120 1625122
Blocks: 1519540
TreeView+ depends on / blocked
 
Reported: 2018-09-04 07:37 UTC by Sahid Ferdjaoui
Modified: 2022-08-16 08:44 UTC (History)
18 users (show)

Fixed In Version: openstack-nova-16.1.5-3.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Cause: When booting an instance with huge pages, nova did not consider the NUMA affinity of huge pages when determining if an instance could fit on the host. Consequence: An error would be raised when booting a instance on a host NUMA node with insufficient huge pages. Fix: Nova now considers NUMA affinity of host huge pages when booting instances with huge pages. Result: Hosts NUMA nodes that have sufficient CPUs but insufficient huge pages will now be rejected.
Clone Of: 1519540
: 1625120 (view as bug list)
Environment:
Last Closed: 2018-12-05 18:50:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1734204 0 None None None 2018-09-04 07:37:30 UTC
OpenStack gerrit 532168 0 None MERGED hardware: fix memory check usage for small/large pages 2021-02-05 15:29:38 UTC
Red Hat Issue Tracker OSP-5101 0 None None None 2022-08-16 08:44:48 UTC
Red Hat Product Errata RHBA-2018:3791 0 None None None 2018-12-05 18:52:23 UTC

Comment 15 Joe H. Rahme 2018-12-04 16:49:53 UTC
VERIFIED that nova now considers hugepage memory unavailable for instances booted on flavor without mem_page_size:


Verification steps:

1. Configure a high amount of huge pages on the compute node:

	[heat-admin@compute-1 ~]$ sudo echo 700 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages                                                                   
	700
	
	[heat-admin@compute-1 ~]$ grep -i HugePages /proc/meminfo 
	AnonHugePages:    212992 kB
	HugePages_Total:     700
	HugePages_Free:      700
	HugePages_Rsvd:        0
	HugePages_Surp:        0
	Hugepagesize:       2048 kB


2. Create a flavor that has more memory than total_memory - total_hugepage

	(overcloud) [stack@undercloud-0 ~]$ openstack flavor create --public m1.large --id auto --ram 2048 --disk 1 --vcpus 1
	
3. Boot an instance on this flavor. Instance fails with a "No valid
   host found" error.

Comment 17 errata-xmlrpc 2018-12-05 18:50:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3791


Note You need to log in before you can comment on or make changes to this bug.