commit 696d27a0e2ccf0916fc6bd3eabf73f2b007e7830
Author: Balazs Gibizer <email address hidden>
Date: Sat Aug 6 16:09:54 2022 +0200
Update RequestSpec.pci_request for resize
Nova uses the RequestSpec.pci_request in the PciPassthroughFilter to
decide if the PCI devicesm, requested via the pci_alias in the flavor
extra_spec, are available on a potential target host. During resize the
new flavor might contain different pci_alias request than the old flavor
of the instance. In this case Nova should use the pci_alias from the new
flavor to scheduler the destination host of the resize. However this
logic was missing and Nova used the old pci_request value based on the
old flavor. This patch adds the missing logic.
Closes-Bug: #1983753
Closes-Bug: #1941005
Change-Id: I73c9ae27e9c42ee211a53bed3d849650b65f08be
(cherry picked from commit a93092e0d5c1483f9ad48276708ee35c54ce44fe)
(cherry picked from commit b6c7ee07ad2a6503b8aad0921cca70e61e60259d)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /853270 /opendev. org/openstack/ nova/commit/ 696d27a0e2ccf09 16fc6bd3eabf73f 2b007e7830
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit 696d27a0e2ccf09 16fc6bd3eabf73f 2b007e7830
Author: Balazs Gibizer <email address hidden>
Date: Sat Aug 6 16:09:54 2022 +0200
Update RequestSpec. pci_request for resize
Nova uses the RequestSpec. pci_request in the PciPassthroughF ilter to
decide if the PCI devicesm, requested via the pci_alias in the flavor
extra_spec, are available on a potential target host. During resize the
new flavor might contain different pci_alias request than the old flavor
of the instance. In this case Nova should use the pci_alias from the new
flavor to scheduler the destination host of the resize. However this
logic was missing and Nova used the old pci_request value based on the
old flavor. This patch adds the missing logic.
Closes-Bug: #1983753 e211a53bed3d849 650b65f08be f9ad48276708ee3 5c54ce44fe) 3b8aad0921cca70 e61e60259d)
Closes-Bug: #1941005
Change-Id: I73c9ae27e9c42e
(cherry picked from commit a93092e0d5c1483
(cherry picked from commit b6c7ee07ad2a650