diff mbox series

[ovs-dev,2/2] ovn-detrace: Improve DB connection error messages.

Message ID 20201023080730.21492.44080.stgit@dceara.remote.csb
State Accepted
Headers show
Series ovn-detrace: Fix OVS interface decoding and error reporting. | expand

Commit Message

Dumitru Ceara Oct. 23, 2020, 8:07 a.m. UTC
Fixes: b326503f8176 ("ovn-detrace: Support SSL remotes.")
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
---
 utilities/ovn-detrace.in |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/utilities/ovn-detrace.in b/utilities/ovn-detrace.in
index 2344f52..1dd98df 100755
--- a/utilities/ovn-detrace.in
+++ b/utilities/ovn-detrace.in
@@ -98,9 +98,12 @@  class OVSDB(object):
                                             OVSDB.STREAM_TIMEOUT_MS)
             if not error and strm:
                 break
+
+            sys.stderr.write('Unable to connect to {}, error: {}\n'.format(r,
+                os.strerror(error)))
             strm = None
         if not strm:
-            raise Exception("Unable to connect to %s" % self.remote)
+            raise Exception('Unable to connect to %s' % self.remote)
 
         rpc = jsonrpc.Connection(strm)
         req = jsonrpc.Message.create_request('get_schema', [schema_name])