Add log info in scheduler to mark start of scheduling

This patch adds log info in nova-scheduler to show
whether and when scheduler begins to handle schedule
task for instances. We always want to know the very
start point in order to debug, analyse and optimize
the schedule process.

Change-Id: Ibe5c49813d85f26870dea1d971aeeb0c7ff7a3cd
This commit is contained in:
yuanyue 2017-07-06 17:34:41 -07:00
parent b626a5b919
commit 6a54f66de2
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ class SchedulerManager(manager.Manager):
The result should be a list of dicts with 'host', 'nodename' and
'limits' as keys.
"""
LOG.debug("Starting to schedule for instances: %s", instance_uuids)
# TODO(sbauza): Change the method signature to only accept a spec_obj
# argument once API v5 is provided.