Bug 1715240 - Resize ignores mem_page_size in new flavor
Summary: Resize ignores mem_page_size in new flavor
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z2
: 16.1 (Train on RHEL 8.2)
Assignee: Stephen Finucane
QA Contact: James Parker
URL:
Whiteboard:
: 2008219 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-29 21:38 UTC by Peter Kovacs
Modified: 2024-12-20 18:51 UTC (History)
12 users (show)

Fixed In Version: openstack-nova-20.4.1-1.20200914172612.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-28 15:36:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1831269 0 None None None 2019-05-31 16:50:50 UTC
OpenStack gerrit 662522 0 'None' MERGED Recalculate 'RequestSpec.numa_topology' on resize 2020-12-12 20:34:02 UTC
OpenStack gerrit 708340 0 None MERGED Recalculate 'RequestSpec.numa_topology' on resize 2020-12-12 20:33:33 UTC
Red Hat Issue Tracker OSP-10157 0 None None None 2022-01-05 15:33:05 UTC
Red Hat Product Errata RHEA-2020:4284 0 None None None 2020-10-28 15:37:54 UTC

Description Peter Kovacs 2019-05-29 21:38:18 UTC
Description of problem:

It's not possible to resize an existing instance using different page sizes for the new flavor.

Version-Release number of selected component (if applicable):


How reproducible:
100%


Steps to Reproduce:
1. Create an instance with 2M hugepage size by setting flavor property: hw:mem_page_size=2048
2. Make sure every other compute node is configured with 1G huge pages
3. Create a new flavor with the property: hw:mem_page_size=1048576
4. Resize the instance as " openstack server resize --flavor <new flavor UUID> <instance UUID>"
5. 

Actual results:

Resize will fail wit the error message: "Host does not support requested memory pagesize. Requested: 2048 kB _numa_fit_instance_cell /usr/lib/python2.7/site-packages/nova/virt/hardware.py:936"

Expected results:

Resize operation rebuilds the instance just like cold-migration. It should be able to apply all aspects of the new flavor.

Additional info:

Flavor details:

| 802  | <flavor name>         | 12288 |   20 |         0 |     6 | True      |      |         1.0 | aggregate_instance_extra_specs:pinned='true', hw:cpu_policy='dedicated', hw:cpu_thread_policy='require', hw:mem_page_size='1048576'


$ openstack server resize --flavor 802 <instance UUID> --wait; openstack server resize --confirm <instance UUID>
No valid host was found. No valid host found for resize (HTTP 400) (Request-ID: req-568391e8-9efc-485f-a9cc-71798c62b9d2)

Nova scheduler log:

DEBUG nova.virt.hardware [req-568391e8-9efc-485f-a9cc-71798c62b9d2 ...] Host does not support requested memory pagesize. Requested: 2048 kB _numa_fit_instance_cell /usr/lib/python2.7/site-packages/nova/virt/hardware.py:936

Comment 12 errata-xmlrpc 2020-10-28 15:36:47 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 (Red Hat OpenStack Platform 16.1 bug fix and enhancement 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/RHEA-2020:4284

Comment 13 Artom Lifshitz 2021-10-04 13:31:57 UTC
*** Bug 2008219 has been marked as a duplicate of this bug. ***


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