we have following log when delete opphan node
INFO nova.compute.manager Deleting orphan compute node xx
we might need to know why those node are removed so
we need additional log info about the removal.
however, it's not complete about why it's removed and
what's removed unless we dig into database layer
Change-Id: Icd8a60aea2fbe01f358bcdb010c97751625b47f6
# 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):