nova/nova
Matt Riedemann 49ce59e111 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
(cherry picked from commit 4fe4fbe7a4)
2018-08-30 12:59:43 +00:00
..
api placement: ignore policy scope check failures if not enforcing scope 2018-08-15 00:43:38 +00:00
cells
cmd Reload oslo_context after calling monkey_patch() 2018-08-01 13:54:31 +03:00
common
compute Merge "Update nova network info when doing rebuild for evacuate operation" 2018-08-09 12:06:07 +00:00
conductor Merge "In Python3.7 async is a keyword [1]" 2018-08-03 00:58:06 +00:00
conf Correct the release notes related to nova-consoleauth 2018-08-23 20:57:14 +00:00
console Use nova.db.api directly 2018-07-10 14:56:27 +00:00
consoleauth
db [placement] Move resource_class_cache into placement hierarchy 2018-08-03 14:55:49 +01:00
hacking Use nova.db.api directly 2018-07-10 14:56:27 +00:00
image Implement certificate_utils 2018-06-12 14:44:32 -04:00
ipv6
keymgr
locale Imported Translations from Zanata 2018-07-13 06:58:20 +00:00
network Merge "Assorted cleanups from numa-aware-vswitches series" 2018-07-29 03:41:15 +00:00
notifications Transform metrics.update notification 2018-07-18 09:13:27 +09:00
objects Filter out instances without a host when populating AZ 2018-08-21 09:50:30 -04:00
pci network: update pci request spec to handle trusted tags 2018-05-31 13:55:40 -04:00
policies Remove support for /os-floating-ip-dns REST API 2018-07-18 22:23:45 -04:00
privsep Merge "Revert "Re-using the code of os brick cinder"" 2018-06-19 02:08:35 +00:00
scheduler Use placement microversion 1.26 in update_from_provider_tree 2018-08-20 11:48:57 -04:00
servicegroup
tests Restart scheduler in TestNovaManagePlacementHealAllocations 2018-08-30 12:59:43 +00:00
virt Merge "libvirt: Don't react to VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED events" into stable/rocky 2018-08-24 04:14:02 +00:00
vnc
volume Remove unnecessary parameters from create volume API 2018-06-12 12:06:41 +05:30
__init__.py
availability_zones.py
baserpc.py
block_device.py
cache_utils.py
config.py Set default of oslo.privsep.daemon logging to INFO level 2018-07-30 17:06:10 +00:00
context.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
crypto.py Convert certificate generation to processutils. 2018-05-02 19:18:41 +10:00
debugger.py
exception.py Merge "libvirt: Start populating NUMACell.network_metadata field" 2018-07-28 12:50:27 +00:00
exception_wrapper.py Add full traceback to ExceptionPayload in versioned notifications 2018-06-19 16:46:46 +08:00
filters.py
hooks.py
i18n.py correct referenced url in comments 2018-01-18 09:16:37 +08:00
loadables.py
manager.py conf: Remove 'db_driver' config opt 2018-03-16 17:23:16 +00:00
policy.py
profiler.py
quota.py Merge "Avoid joins in _server_group_count_members_by_user" 2018-08-07 23:16:06 +00:00
rc_fields.py Nix unused raise_if_custom_resource_class_pre_v1_1 2018-06-18 19:52:45 +00:00
rpc.py Use oslo.messaging per-call monitoring 2018-06-11 14:44:10 -07:00
safe_utils.py
service.py Deprecate running API services under eventlet 2018-05-16 03:48:32 +00:00
service_auth.py
test.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
utils.py Adapter raise_exc=False by default 2018-06-22 09:40:33 -05:00
version.py
weights.py
wsgi.py Refactor WSGI apps and utils to limit imports 2018-03-06 22:05:12 +00:00