nova/nova/tests/unit/compute
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
..
monitors Do not log a warning about not using compute monitors 2019-04-04 14:32:53 -04:00
provider_config_data Provider Config File: Coding style and test cases improvement 2020-09-01 01:05:34 +00:00
__init__.py
eventlet_utils.py
fake_resource_tracker.py Tests: autospecs all the mock.patch usages 2019-08-19 09:43:10 -05:00
test_api.py Support interface attach with QoS ports 2021-02-11 16:43:17 +01:00
test_claims.py objects: Introduce 'pcpuset' field for InstanceNUMACell 2020-07-14 00:38:34 +08:00
test_compute.py Support interface attach with QoS ports 2021-02-11 16:43:17 +01:00
test_compute_mgr.py Support interface attach with QoS ports 2021-02-11 16:43:17 +01:00
test_compute_utils.py Refactor update_pci_request_spec_with_allocated_interface_name 2021-01-18 15:40:42 +01:00
test_flavors.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_host_api.py Fix aggregate placement sync issue 2020-05-08 02:40:47 +10:00
test_instance_list.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_keypairs.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_multi_cell_list.py Refactor scatter-gather utility to return exception objects 2018-10-31 15:18:07 -04:00
test_provider_config.py Provider Config File: Coding style and test cases improvement 2020-09-01 01:05:34 +00:00
test_provider_tree.py Add resources dict into _Provider 2019-09-13 08:50:35 +00:00
test_resource_tracker.py Merge "virt: Remove 'get_per_instance_usage' API" 2020-11-09 18:50:31 +00:00
test_rpcapi.py Cyborg shelve/unshelve support 2021-01-15 03:21:17 +00:00
test_shelve.py Refactor update_pci_request_spec_with_allocated_interface_name 2021-01-18 15:40:42 +01:00
test_stats.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_virtapi.py Reduce gen conflict in COMPUTE_STATUS_DISABLED handling 2020-07-10 17:38:13 +02:00