nova/nova/tests/functional
Matt Riedemann 4fe4fbe7a4 Restart scheduler in TestNovaManagePlacementHealAllocations
TestNovaManagePlacementHealAllocations tests rely on the
CachingScheduler specifically because it does not use
placement and therefore does not create allocations during
scheduling, which gives us instances that need to heal
allocations.

However, we have a race in the test setup where the scheduler
is started before the compute services. The CachingScheduler
runs a periodic task on startup to fetch the hosts from the
DB to initialize it's cache, and then uses that during scheduling
until the periodic runs again. So what we can hit is the
scheduler starts, loads an empty cache, then we start the computes
and try to create an instance but because of the empty cache we
fail with a NoValidHost error.

This restarts and resets the CachingScheduler cache *after* we have
started the computes and asserted they are available in the API.

Change-Id: I32f607a436e9851a96877123ae3d1fe51f444f73
Closes-Bug: #1781648
2018-08-29 11:58:12 -04:00
..
api Merge "[placement] Add /reshaper handler for POST" 2018-08-29 09:22:10 +00:00
api_sample_tests Merge "Scrub hw:cpu_model from API samples" 2018-08-03 13:19:28 +00:00
compute Batch results per cell when doing cross-cell listing 2018-08-24 13:29:23 -07:00
db Filter out instances without a host when populating AZ 2018-08-21 09:44:39 -04:00
libvirt tests: Create functional libvirt test base class 2018-08-23 17:37:50 +00:00
notification_sample_tests Transform metrics.update notification 2018-07-18 09:13:27 +09:00
regressions libvirt: Remove usage of migrateToURI{2} APIs 2018-07-31 18:57:28 +02:00
wsgi Fix regression when listing build_requests with marker and ip filter 2018-06-19 15:56:27 -04:00
__init__.py move eventlet GREENDNS override to top level 2014-12-08 17:41:03 -05:00
api_paste_fixture.py Remove legacy v2 API functional tests 2016-05-04 18:17:23 +08:00
api_samples_test_base.py Remove unused request API sample template 2018-08-03 07:00:13 +00:00
integrated_helpers.py Add method to get cpu traits 2018-07-24 12:37:46 +00:00
test_aggregates.py mirror nova host aggregate members to placement 2018-05-30 12:45:20 -04:00
test_compute_mgr.py remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
test_images.py Add create image functional negative tests 2016-12-26 14:15:14 +09:00
test_instance_actions.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_legacy_v2_compatible_wrapper.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_list_servers_ip_filter.py Trivial: Nix duplicate PlacementFixture() in test 2017-12-01 15:39:28 -06:00
test_login.py update api_samples code to use better variables 2015-12-14 11:23:26 +08:00
test_metadata.py Remove unused logging import 2017-02-17 15:17:51 +07:00
test_middleware.py Removes unnecessary utf-8 encoding 2016-12-20 10:27:01 +07:00
test_multiattach.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_nova_manage.py Restart scheduler in TestNovaManagePlacementHealAllocations 2018-08-29 11:58:12 -04:00
test_report_client.py Use placement microversion 1.26 in update_from_provider_tree 2018-08-20 11:29:10 -04:00
test_server_group.py Make scheduler.utils.setup_instance_group query all cells 2018-08-24 23:44:58 +00:00
test_servers.py Merge "Add functional test for forced live migration rollback allocs" 2018-08-09 00:24:57 +00:00