summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2018-11-30 14:20:34 -0800
committerJames E. Blair <jeblair@redhat.com>2018-11-30 14:20:34 -0800
commitbd10ff9540ba61c1c62e0ded88e24da9b2b5a7cd (patch)
treeaa22bcb4d88e03edcaac9b96574f198c64b62f7b
parenta0e4ff87f7bece0c81a5260a4e1fdefe9d711a18 (diff)
Log exceptions deleting ZK nodes
Notes
Notes (review): Code-Review+2: Tobias Henkel <tobias.henkel@bmw.de> Code-Review+2: Clark Boylan <cboylan@sapwetik.org> Workflow+1: Clark Boylan <cboylan@sapwetik.org> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sat, 01 Dec 2018 03:51:02 +0000 Reviewed-on: https://review.openstack.org/621301 Project: openstack-infra/nodepool Branch: refs/heads/master
-rwxr-xr-xnodepool/launcher.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/nodepool/launcher.py b/nodepool/launcher.py
index 9e0f15f..2988272 100755
--- a/nodepool/launcher.py
+++ b/nodepool/launcher.py
@@ -106,7 +106,11 @@ class NodeDeleter(threading.Thread):
106 else: 106 else:
107 node_exists = True 107 node_exists = True
108 108
109 self.delete(self._zk, self._provider_manager, self._node, node_exists) 109 try:
110 self.delete(self._zk, self._provider_manager,
111 self._node, node_exists)
112 except Exception:
113 self.log.exception("Error deleting node %s:", self._node)
110 114
111 115
112class PoolWorker(threading.Thread, stats.StatsReporter): 116class PoolWorker(threading.Thread, stats.StatsReporter):