From 8922ff334ec1b065b4e2e379033616414b93768d Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Fri, 31 Jul 2020 09:56:21 +0000 Subject: [PATCH] Port NUMA affinity policy, revisit Since the conversation reported in [1], the information to be reported to Nova will not be stored in the port "resource_request" and the NUMA affinity policies will not be considered as resource provider traits. NUMA is going to be modeled in Placement soon, but until this feature does not land in a stable version, Neutron will only provide this information via an extension. Related-Bug: #1886798 [1]https://review.opendev.org/#/c/739961/ Change-Id: I2a96e5ba394f4476121cbc916634e1c4d4b4212f --- specs/victoria/port-numa-affinity-policy.rst | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/specs/victoria/port-numa-affinity-policy.rst b/specs/victoria/port-numa-affinity-policy.rst index cdd22af3b..dd893297b 100644 --- a/specs/victoria/port-numa-affinity-policy.rst +++ b/specs/victoria/port-numa-affinity-policy.rst @@ -56,19 +56,9 @@ based on the PCINUMAAffinityPolicy [5]_ enum defined in Nova. That field could have different values: "required", "legacy" and "preferred". This information will be populated in the "port" dictionary when informing to -Nova. This parameter will be a trait added in the "resource_request" parameter, -in the "required" list. This parameter was included in the Nova microversion -2.72 [6]_. This information will be used during the server scheduling to -filter the host requirements using the Placement API. - -By default, the value of this new parameter will be "None", to keep -backwards compatibility. In this case, no trait will be added to the -"resource_request" parameter. - -.. code-block:: python - - port_resource['resource_request'] = { - 'required': [os_traits.COMPUTE_NUMA_POLICY_REQUIRED]} +Nova. This parameter will be added as a new extension in the port dictionary, +in a new field called "numa_affinity_policy". By default, the value of this new +parameter will be "None", to keep backwards compatibility. Data Model Impact @@ -177,4 +167,3 @@ References .. [3] https://specs.openstack.org/openstack/nova-specs/specs/rocky/implemented/numa-aware-vswitches.html .. [4] https://specs.openstack.org/openstack/nova-specs/specs/ussuri/implemented/vm-scoped-sriov-numa-affinity.html#alternatives .. [5] https://github.com/openstack/nova/blob/d4c857dfcb1ccfa5410de55671e69c722bbc990e/nova/objects/fields.py#L740-L746 -.. [6] https://docs.openstack.org/api-guide/compute/port_with_resource_request.html