From 07d1cdc2d471f33549d626cfc97a37b34abf88c8 Mon Sep 17 00:00:00 2001 From: Tobias Henkel Date: Fri, 18 May 2018 07:58:08 +0200 Subject: [PATCH] Log connection port in static driver on timeout When there is a timeout checking a static node we also should log the connection-port. Change-Id: I7e6291e18d6fc714d593b538a47b6849c9a99c0f --- nodepool/driver/static/provider.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodepool/driver/static/provider.py b/nodepool/driver/static/provider.py index 40294db72..6712e9ea5 100644 --- a/nodepool/driver/static/provider.py +++ b/nodepool/driver/static/provider.py @@ -43,7 +43,8 @@ class StaticNodeProvider(Provider): timeout=node["timeout"]) except exceptions.ConnectionTimeoutException: raise StaticNodeError( - "%s: ConnectionTimeoutException" % node["name"]) + "%s:%s: ConnectionTimeoutException" % ( + node["name"], node["connection-port"])) # Check node host-key if set(node["host-key"]).issubset(set(keys)):