Fix confusing log message in scheduler

Not having enough resources for creating the instance is a lot more
probable reason for no allocation candidates than compute node is just
starting up. This patch changes the log message to state both reasons.

Change-Id: I5d0cefbf833e797d560e115148beae35b0c48959
Closes-Bug: #1782309
This commit is contained in:
Radoslav Gerganov 2018-07-18 11:02:00 +03:00
parent fd6ba0f5c5
commit c3fe54a74d
1 changed files with 3 additions and 3 deletions

View File

@ -148,9 +148,9 @@ class SchedulerManager(manager.Manager):
allocation_request_version) = res
if not alloc_reqs:
LOG.debug("Got no allocation candidates from the Placement "
"API. This may be a temporary occurrence as compute "
"nodes start up and begin reporting inventory to "
"the Placement service.")
"API. This could be due to insufficient resources "
"or a temporary occurrence as compute nodes start "
"up.")
raise exception.NoValidHost(reason="")
else:
# Build a dict of lists of allocation requests, keyed by