nova/nova/tests/unit/scheduler
Balazs Gibizer 5af28c4de5 Support interface attach with QoS ports
The following logic is added to the ComputeManager attach_interface
flow:

* gather the resource request of the port from neutron
* query allocation candidates restricted to the current compute node
  from placement
* extend the existing allocation of the instance with one of the
  allocation candidates in placement
* update the InstancePCIRequest (if any) to ensure that the PCI claim
  only allocates VF from the PF the placement resources are allocated from
* ensure that during port binding neutron gets the RP UUID, the resources
  are allocated from, in the allocation key of the binding profile

This patch bumps the compute service version to indicate that QoS
interface attach is supported. Also the check that was so far rejected
such attach is now updated to only reject it if the compute service
version is too old.

The "scheduling" during interface attach for PCI backed ports has the
same limitation as normal scheduling for such ports. It always selects
the first allocation candidate returned by placement even if later in
the process it turns out that such allocation candidate points to a PCI
PF that has no free VFs left.

Blueprint: support-interface-attach-with-qos-ports

Change-Id: Id4684093e8bdf3b61667490443e3d2f6ed65f4b3
2021-02-11 16:43:17 +01:00
..
client Refactor ResourceRequest constructor 2021-01-18 15:40:42 +01:00
filters Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
weights Don't recompute weighers' minval/maxval attributes 2020-04-01 11:46:48 +02:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py Add support for translating CPU policy extra specs, image meta 2019-09-18 00:21:10 +01:00
ironic_fakes.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_filter_scheduler.py Fix mock for 'autospec' and 'new' together 2020-07-06 16:11:15 +00:00
test_filters.py Remove six.moves 2020-11-07 03:25:02 +00:00
test_host_filters.py Modify left filters for RequestSpec 2015-12-11 12:27:20 +01:00
test_host_manager.py Fix the instance_uuid for test 2020-11-18 23:20:16 +11:00
test_manager.py trivial: Remove FakeScheduler 2020-02-18 15:13:45 +00:00
test_request_filter.py Switch from unittest2 compat methods to Python 3.x methods 2020-06-23 14:16:07 +02:00
test_rpcapi.py Use long_rpc_timeout in select_destinations RPC call 2018-11-20 09:03:53 -05:00
test_scheduler_utils.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_utils.py Support interface attach with QoS ports 2021-02-11 16:43:17 +01:00