summaryrefslogtreecommitdiff
path: root/nova/compute
diff options
context:
space:
mode:
authorBalazs Gibizer <balazs.gibizer@est.tech>2021-02-23 15:02:06 +0100
committerBalazs Gibizer <balazs.gibizer@est.tech>2021-02-23 15:02:06 +0100
commitfef371a425d603e184f22d3b630b2c3bd27c7cae (patch)
tree1b3bdb0ae0a9f0b3d4f758fceb9fa798e5f6821f /nova/compute
parent8ca5d2169fc3ba5cf86f830a93cf92bae925e1f4 (diff)
downloadnova-fef371a425d603e184f22d3b630b2c3bd27c7cae.tar.gz
Follow up for QoS interface attach
This patch fixes minor comments from Id4684093e8bdf3b61667490443e3d2f6ed65f4b3 Change-Id: I6e70e24d837b6f194972386a32ad757ce25dcee0 Blueprint: support-interface-attach-with-qos-ports
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/manager.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index a78bbdfc45..0beedeea9d 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -7602,6 +7602,13 @@ class ComputeManager(manager.Manager):
if not request_groups:
return None, None
+ # NOTE(gibi): we assume a single RequestGroup here as:
+ # 1) there can only be a single port per interface attach request
+ # 2) a single port can only request resources in a single RequestGroup
+ # as per the current neutron API.
+ # #2) might change in the future so both
+ # nova.network.neutron.API.create_resource_requests() and this function
+ # takes a list of groups
request_group = request_groups[0]
# restrict the resource request to the current compute node. The