From c3fe54a74d8a3b5d5338a902e3562733a2b9a564 Mon Sep 17 00:00:00 2001 From: Radoslav Gerganov Date: Wed, 18 Jul 2018 11:02:00 +0300 Subject: [PATCH] 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 --- nova/scheduler/manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nova/scheduler/manager.py b/nova/scheduler/manager.py index 5c85642ac3..3bed65791e 100644 --- a/nova/scheduler/manager.py +++ b/nova/scheduler/manager.py @@ -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