Use hostname for launch exception

By default, hostname contains informaiton about provider and node id,
include this information to aid in debugging.

Change-Id: I4ddd8a83a9f50d856f78c562d86a83da6d78c759
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-07-25 11:04:58 -04:00
parent 67824d8e64
commit 87b0f66353
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,8 @@ class NodeLauncher(threading.Thread,
self.zk.storeNode(self.node)
statsd_key = 'error.quota'
except Exception as e:
self.log.exception("Launch failed for node %s:", self.node.id)
self.log.exception(
"Launch failed for node %s:", self.node.hostname)
self.node.state = zk.FAILED
self.zk.storeNode(self.node)