Merge "Add more log when delete orphan node"

This commit is contained in:
Jenkins 2016-12-07 07:51:26 +00:00 committed by Gerrit Code Review
commit 4354828605

View File

@ -6562,7 +6562,11 @@ class ComputeManager(manager.Manager):
# Delete orphan compute node not reported by driver but still in db
for cn in compute_nodes_in_db:
if cn.hypervisor_hostname not in nodenames:
LOG.info(_LI("Deleting orphan compute node %s"), cn.id)
LOG.info(_LI("Deleting orphan compute node %(id)s "
"hypervisor host is %(hh)s, "
"nodes are %(nodes)s"),
{'id': cn.id, 'hh': cn.hypervisor_hostname,
'nodes': nodenames})
cn.destroy()
def _get_compute_nodes_in_db(self, context, use_slave=False):