nova/nova/tests/unit/scheduler/filters
Matt Riedemann 46ba7e8df5 Deprecate TypeAffinityFilter
This deprecates the TypeAffinityFilter. This filter, which
is really an anti-affinity filter for flavors, attempts to
ensure that no two flavors show up on the same host. However,
to do this it relies on the flavors.id primary key, which is
subject to "change" if/when the admin deletes and recreates a
flavor (this is how Horizon allows you to 'edit' a flavor).
When you do that, you have a new flavor with a new id primary
key and the filter will not know the difference. So you could
really end up with more than one m1.large instance on the
same host, which defeats the purpose of the filter.

This filter is also problematic for
blueprint put-host-manager-instance-info-on-a-diet because in
that blueprint we want to stop sending full instance objects
over RPC from all compute services to the scheduler just to
track affinity and anti-affinity. All we really need for the
ServerGroupAffinityFilter and ServerGroupAntiAffinityFilter
is the list of instance uuids on a host, not the full object.
If we can get rid of TypeAffinityFilter, we can change the
compute<>scheduler RPC calls to just pass the list of instance
uuids for update_instance_info rather than sending an InstanceList.

Change-Id: I660e0316b11afcad65c0fe7bd167ddcec9239a8b
2017-05-27 10:15:25 +00:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_affinity_filters.py Merge "Replace uuid4() with uuidsentinel" 2016-10-11 15:01:09 +00:00
test_aggregate_image_properties_isolation_filters.py [scheduler][tests]: Fix incorrect aggr mock values 2016-11-25 19:54:15 +03:00
test_aggregate_instance_extra_specs_filters.py [scheduler][tests]: Fix incorrect aggr mock values 2016-11-25 19:54:15 +03:00
test_aggregate_multitenancy_isolation_filters.py Modify Aggregate filters for RequestSpec 2015-11-24 23:39:14 +01:00
test_availability_zone_filters.py [scheduler][tests]: Fix incorrect aggr mock values 2016-11-25 19:54:15 +03:00
test_compute_capabilities_filters.py Allow irrelevant,self-defined specs in ComputeCapacityFilter 2016-07-07 17:53:10 +00:00
test_compute_filters.py Modify default filters for RequestSpec 2015-11-30 09:47:27 +01:00
test_core_filters.py Modify metric-related filters for RequestSpec 2015-11-30 09:47:29 +01:00
test_disk_filters.py Remove unnecessary setUp and tearDown 2016-09-20 14:52:19 +08:00
test_exact_core_filter.py Apply scheduler limits to Exact* filters 2016-02-01 09:41:51 +00:00
test_exact_disk_filter.py Apply scheduler limits to Exact* filters 2016-02-01 09:41:51 +00:00
test_exact_ram_filter.py Apply scheduler limits to Exact* filters 2016-02-01 09:41:51 +00:00
test_extra_specs_ops.py Add ALL-IN operator to extra spec ops 2014-11-20 07:55:30 +01:00
test_image_props_filters.py objects: Move 'vm_mode' to 'fields.VMMode' 2016-11-25 16:19:44 +00:00
test_io_ops_filters.py conf: Group scheduler options 2016-10-07 14:36:21 +01:00
test_isolated_hosts_filter.py conf: Group scheduler options 2016-10-07 14:36:21 +01:00
test_json_filters.py Modify left filters for RequestSpec 2015-12-11 12:27:20 +01:00
test_metrics_filters.py Use flake8-import-order 2017-03-06 06:50:23 -08:00
test_num_instances_filters.py conf: Group scheduler options 2016-10-07 14:36:21 +01:00
test_numa_topology_filters.py scheduler: Don't modify RequestSpec.numa_topology 2017-01-23 17:26:06 +00:00
test_pci_passthrough_filters.py PCI: Check pci_requests object is empty before passing to support_requests 2017-01-25 11:14:39 +02:00
test_ram_filters.py Modify default filters for RequestSpec 2015-11-30 09:47:27 +01:00
test_retry_filters.py Modify default filters for RequestSpec 2015-11-30 09:47:27 +01:00
test_trusted_filters.py Use TimeFixture from oslo_utils to override time in tests 2015-12-18 12:15:00 -05:00
test_type_filters.py Deprecate TypeAffinityFilter 2017-05-27 10:15:25 +00:00
test_utils.py Remove unnecessary setUp and tearDown 2016-09-20 14:52:19 +08:00