nova/nova/tests/unit/scheduler/filters
Mohammed Naser aa5b1326c8 Added ability to configure default architecture for ImagePropertiesFilter
When using ImagePropertiesFilter with multiple architectures inside the
same deployment, it is possible that images can be uploaded without the
hw_architecture property defined.

This results in behaviour where the instance could be scheduled on any
type of hypervisor, resulting in an instance that will successfully
transition to ACTIVE but never properly run because of the difference
in architecture.

This makes the ImagePropertiesFilter problematic as most images are
generally uploaded without the architecture property set because
most documentation does not encourage doing that.

The addition of this flag allows to make using the filter possible
because it allows the deployer to assume a default architecture if
the user did not supply one (assuming it would be the most common
architecture in their deployment, such as x86_64) yet if the user
wants a more specific architecture, they can do it in their image
properties.

In order to avoid a circular import loop, the references to the
architecture field have been moved to a seperate module so that
they can be properly and cleaned imported inside configuration.

Change-Id: Ib52deb095028e93619b93ef9e5f70775df2a403a
Closes-Bug: #1769283
2018-05-14 16:55:13 -04: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 Remove deprecated TrustedFilter 2017-11-28 14:54:31 -05: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 Remove deprecated TrustedFilter 2017-11-28 14:54:31 -05: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_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 Added ability to configure default architecture for ImagePropertiesFilter 2018-05-14 16:55:13 -04:00
test_io_ops_filters.py Fix IoOpsFilter test case class name. 2017-09-26 01:47:54 +09: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_type_filters.py Delete the TypeAffinityFilter 2017-12-14 17:09:56 -05:00
test_utils.py Delete the TypeAffinityFilter 2017-12-14 17:09:56 -05:00