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 commit4fd7c93726
) (cherry picked from commit1a22c456b4
) (cherry picked from commit16b2a56005
)
This commit is contained in:
parent
17c8e6c8d1
commit
fc8cd8f3b3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue