nova/nova/tests/unit/compute
Dan Smith b29a461a8b Refined fix for validating image on rebuild
This aims to fix the issue described in bug 1664931 where a rebuild
fails to validate the existing host with the scheduler when a new
image is provided. The previous attempt to do this could cause rebuilds
to fail unnecessarily because we ran _all_ of the filters during a
rebuild, which could cause usage/resource filters to prevent an otherwise
valid rebuild from succeeding.

This aims to classify filters as useful for rebuild or not, and only apply
the former during a rebuild scheduler check. We do this by using an internal
scheduler hint, indicating our intent. This should (a) filter out
all hosts other than the one we're running on and (b) be detectable by
the filtering infrastructure as an internally-generated scheduling request
in order to trigger the correct filtering behavior.

Conflicts:
      nova/tests/functional/test_servers.py

NOTE(mriedem): The conflict is due to the need to override the
_setup_scheduler_service method in Pike.

Closes-Bug: #1664931
Change-Id: I1a46ef1503be2febcd20f4594f44344d05525446
(cherry picked from commit f7c688b8ef)
2017-11-27 20:51:11 -05:00
..
monitors Allow monitor plugins to set own metric object 2016-06-27 14:38:32 +05:30
__init__.py
eventlet_utils.py
fake_resource_tracker.py rt: explicitly pass compute node to _update() 2017-01-12 11:30:03 -08:00
test_claims.py rt: use a single ResourceTracker object instance 2017-01-16 14:09:25 -05:00
test_compute.py Remove dest node allocations during live migration rollback 2017-10-05 19:30:30 -04:00
test_compute_api.py Refined fix for validating image on rebuild 2017-11-27 20:51:11 -05:00
test_compute_cells.py Count instances to check quota 2017-07-18 17:31:15 +00:00
test_compute_mgr.py Merge "Remove dest node allocations during live migration rollback" into stable/pike 2017-10-24 12:49:51 +00:00
test_compute_utils.py Handle deleted instances when refreshing the info_cache 2017-09-21 13:51:25 +00:00
test_compute_xen.py conf: Remove config option compute_ manager 2016-12-08 20:05:52 +08:00
test_flavors.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_host_api.py Handle uuid in HostAPI.compute_node_get 2017-06-19 09:57:49 -04:00
test_keypairs.py Stop using mox stubs in test_keypairs.py 2017-06-26 14:50:40 +09:00
test_provider_tree.py placement: adds ProviderTree for nested resources 2017-06-26 11:33:38 +01:00
test_resource_tracker.py Avoid deleting allocations for instances being built 2017-11-06 07:05:55 -05:00
test_rpcapi.py conf: remove *_topic config opts 2017-07-17 21:27:02 -07:00
test_shelve.py Call terminate_connection when shelve_offloading 2017-09-14 22:39:01 +00:00
test_stats.py Address nits in Ia2296302 2016-03-08 16:48:08 +00:00
test_virtapi.py Remove mox from nova/tests/unit/compute/test_virtapi.py 2016-11-28 08:52:00 +00:00