summaryrefslogtreecommitdiff
path: root/nova/conductor
diff options
context:
space:
mode:
authorBalazs Gibizer <balazs.gibizer@est.tech>2020-10-12 16:25:55 +0200
committerBalazs Gibizer <balazs.gibizer@est.tech>2021-01-18 15:40:42 +0100
commitbe9dd3d9dbf19ff50998178f83b1de40e9acc09a (patch)
treee6e3c4362c84bbdf2d8a4c8b5285885401e11911 /nova/conductor
parent20fe077343006a18714fd349c20400cd2746febc (diff)
downloadnova-be9dd3d9dbf19ff50998178f83b1de40e9acc09a.tar.gz
Refactor update_pci_request_spec_with_allocated_interface_name
Make update_pci_request_spec_with_allocated_interface_name only depend on a list of IntancePCIRequest o.vos instead of a whole Instance object. This will come in handy for the qos interface attach case where we only need to make the changes on the Instance o.vo after we are sure that the both the resource allocation and the pci claim is succeeded for the request. Change-Id: I5a6c6d3eed61895b00f9e9c3fb3b5d09d6786e9c blueprint: support-interface-attach-with-qos-ports
Diffstat (limited to 'nova/conductor')
-rw-r--r--nova/conductor/tasks/live_migrate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/conductor/tasks/live_migrate.py b/nova/conductor/tasks/live_migrate.py
index d8531bad86..275a49cee1 100644
--- a/nova/conductor/tasks/live_migrate.py
+++ b/nova/conductor/tasks/live_migrate.py
@@ -545,8 +545,8 @@ class LiveMigrationTask(base.TaskBase):
# runs.
compute_utils.\
update_pci_request_spec_with_allocated_interface_name(
- self.context, self.report_client, self.instance,
- provider_mapping)
+ self.context, self.report_client,
+ self.instance.pci_requests.requests, provider_mapping)
try:
self._check_compatible_with_source_hypervisor(host)
self._call_livem_checks_on_host(host, provider_mapping)