From 6a54f66de2d4dbe4110a86f83afac67c017ed895 Mon Sep 17 00:00:00 2001 From: yuanyue Date: Thu, 6 Jul 2017 17:34:41 -0700 Subject: [PATCH] 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 --- nova/scheduler/manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nova/scheduler/manager.py b/nova/scheduler/manager.py index b38d12c18a20..473be221ad6b 100644 --- a/nova/scheduler/manager.py +++ b/nova/scheduler/manager.py @@ -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.