Fix handling of pci_requests in consume_from_instance.
Properly retrieve requests from pci_requests in consume_from_instance.
Without this the call to numa_fit_instance_to_host will fail because
it expects the request list.
And change the order in which apply_requests and numa_fit_instance_to_host
are called. Calling apply_requests first will remove devices from pools
and may make numa_fit_instance_to_host fail.
Change-Id: I41cf4e8e5c1dea5f91e5261a8f5e88f46c7994ef
Closes-bug: #1444021
(cherry picked from commit 0913e799e9ce3138235f5ea6f80159f468ad2aaa)
Reviewed: https:/ /review. openstack. org/175789 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=bf79742d26a e66886bcdc55eea f27e1d7ce24be5
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit bf79742d26ae668 86bcdc55eeaf27e 1d7ce24be5
Author: Przemyslaw Czesnowicz <email address hidden>
Date: Tue Apr 14 16:28:57 2015 +0100
Fix handling of pci_requests in consume_ from_instance.
Properly retrieve requests from pci_requests in consume_ from_instance. instance_ to_host will fail because instance_ to_host instance_ to_host fail.
Without this the call to numa_fit_
it expects the request list.
And change the order in which apply_requests and numa_fit_
are called. Calling apply_requests first will remove devices from pools
and may make numa_fit_
Change-Id: I41cf4e8e5c1dea 5f91e5261a8f5e8 8f46c7994ef 8235f5ea6f80159 f468ad2aaa)
Closes-bug: #1444021
(cherry picked from commit 0913e799e9ce313