summaryrefslogtreecommitdiff
path: root/nova/conductor
diff options
context:
space:
mode:
authorBalazs Gibizer <gibi@redhat.com>2022-08-19 16:46:23 +0200
committerBalazs Gibizer <gibi@redhat.com>2022-12-21 16:17:34 +0100
commitf86f1800f05f42b44e99f565e9718692ee190df5 (patch)
treeecc0b9467c1148d2ee9a5efdc6377abc45b7c6b3 /nova/conductor
parentf1d82c0d0a0ef5932bb1e25120015c1099f03d18 (diff)
downloadnova-f86f1800f05f42b44e99f565e9718692ee190df5.tar.gz
Store allocated RP in InstancePCIRequest
After the scheduler selected a target host and allocated an allocation candidate that is passed the filters nova need to make sure that PCI claim will allocate the real PCI devices from the RP which is allocated in placement. Placement returns the request group - provider mapping for each allocation candidate so nova can map which InstancePCIRequest was fulfilled from which RP in the selected allocation candidate. This mapping is then recorded in the InstancePCIRequest object and used during the PCI claim to filter for PCI pools that can be used to claim PCI devices from. blueprint: pci-device-tracking-in-placement Change-Id: I18bb31e23cc014411db68c31317ed983886d1a8e
Diffstat (limited to 'nova/conductor')
-rw-r--r--nova/conductor/tasks/live_migrate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/conductor/tasks/live_migrate.py b/nova/conductor/tasks/live_migrate.py
index f8819b0dc8..cca97c53f7 100644
--- a/nova/conductor/tasks/live_migrate.py
+++ b/nova/conductor/tasks/live_migrate.py
@@ -542,7 +542,7 @@ class LiveMigrationTask(base.TaskBase):
# will be persisted when post_live_migration_at_destination
# runs.
compute_utils.\
- update_pci_request_spec_with_allocated_interface_name(
+ update_pci_request_with_placement_allocations(
self.context, self.report_client,
self.instance.pci_requests.requests, provider_mapping)
try: