Change in vdsm[master]: m2c: get more information about ssl connection

piotr.kliczewski at gmail.com piotr.kliczewski at gmail.com
Wed May 4 11:09:41 UTC 2016


Piotr Kliczewski has uploaded a new change for review.

Change subject: m2c: get more information about ssl connection
......................................................................

m2c: get more information about ssl connection

Sometimes during runtime we see in the logs: "M2Crypto.SSL.SSLError:
unexpected eof". In order to understand the state of the connection we
want temporarily print ssl session information.

This patch should be reverted when we know that the error is expected or
the issue was fixed.


Change-Id: Icfae375617477d6345e48907dc85f6336724f1f3
Signed-off-by: pkliczewski <piotr.kliczewski at gmail.com>
---
M lib/vdsm/m2cutils.py
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/16/57016/1

diff --git a/lib/vdsm/m2cutils.py b/lib/vdsm/m2cutils.py
index fa0d2aa..20b0e2a 100644
--- a/lib/vdsm/m2cutils.py
+++ b/lib/vdsm/m2cutils.py
@@ -100,6 +100,7 @@
     def __init__(self, raw, certfile=None, keyfile=None, ca_certs=None,
                  session_id="vdsm", protocol="sslv23"):
         self.context = SSL.Context(protocol)
+        self.context.set_info_callback()
         self.context.set_session_id_ctx(session_id)
 
         if certfile and keyfile:
@@ -174,6 +175,7 @@
 
     def _initContext(self):
         self.context = context = SSL.Context(self.protocol)
+        self.context.set_info_callback()
         context.set_session_id_ctx(self.session_id)
 
         self._loadCertChain()


-- 
To view, visit https://gerrit.ovirt.org/57016
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icfae375617477d6345e48907dc85f6336724f1f3
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Piotr Kliczewski <piotr.kliczewski at gmail.com>


More information about the vdsm-patches mailing list