Do not dump all instances in the scheduler

There is a log message in the scheduler which dumps all instances
running on a compute host. There are at least 2 problems with this:
1. it generates huge amount of logs which are not really useful
2. it crashes when there is an instance with non-ascii name

Instead of fixing 2), just print instance UUIDs.

Closes-Bug: #1790126
Related-Bug: #1620692
Change-Id: I0eda1c58a7eb54121230c880818b4b1d0fdf4893
(cherry picked from commit 4fd7c93726)
(cherry picked from commit 1a22c456b4)
(cherry picked from commit 16b2a56005)
This commit is contained in:
Radoslav Gerganov 2018-08-31 13:53:19 +03:00 committed by Stephen Finucane
parent 17c8e6c8d1
commit fc8cd8f3b3
1 changed files with 2 additions and 1 deletions

View File

@ -178,7 +178,8 @@ class HostState(object):
LOG.debug("Update host state with service dict: %s", service)
self.service = ReadOnlyDict(service)
if inst_dict is not None:
LOG.debug("Update host state with instances: %s", inst_dict)
LOG.debug("Update host state with instances: %s",
list(inst_dict))
self.instances = inst_dict
return _locked_update(self, compute, service, aggregates, inst_dict)