summaryrefslogtreecommitdiff
path: root/ironic/conductor/task_manager.py
diff options
context:
space:
mode:
authorKan <kansks@cn.ibm.com>2016-01-27 08:36:22 +0000
committerKan <kansks@cn.ibm.com>2016-01-28 09:03:02 +0000
commit93ca514b7c5b5d5c41a20dba448e9fa27eda7ddc (patch)
tree1625660d8c64ff48107f80bcc4c9ecdbd2871d79 /ironic/conductor/task_manager.py
parent8a1063e8031fe2ff895e737baf328af5476df938 (diff)
downloadironic-93ca514b7c5b5d5c41a20dba448e9fa27eda7ddc.tar.gz
Use node uuid in some exception log
The error log using node id in some exception log is not readable, like: 'NodeLocked: Node 16 is locked by host localhost, please retry after the current operation is completed.' Update the node id with node uuid to make it more readable. Change-Id: I83a0adcc28819c44323276d65bc038da7808efac Closes-Bug: #1537992
Diffstat (limited to 'ironic/conductor/task_manager.py')
-rw-r--r--ironic/conductor/task_manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic/conductor/task_manager.py b/ironic/conductor/task_manager.py
index 0cf24ee88..b5bb119d3 100644
--- a/ironic/conductor/task_manager.py
+++ b/ironic/conductor/task_manager.py
@@ -236,7 +236,7 @@ class TaskManager(object):
self.node_id)
LOG.debug("Node %(node)s successfully reserved for %(purpose)s "
"(took %(time).2f seconds)",
- {'node': self.node_id, 'purpose': self._purpose,
+ {'node': self.node.uuid, 'purpose': self._purpose,
'time': self._debug_timer.elapsed()})
self._debug_timer.restart()