Piotr Kliczewski has uploaded a new change for review.
Change subject: vdscli: host verification fails on client side
......................................................................
vdscli: host verification fails on client side
When we provide hostname or run functional tests and attempt to connect
to the server using jsonrpcvdscli we fail ssl handshake due to how
m2cytpro host verification is written. In order to establish a
connection we need to provide ip address instead.
Change-Id: Iae0b8e71f4e3e03432db6c8f9dcf0a69c4612fc2
Signed-off-by: pkliczewski <piotr.kliczewski(a)gmail.com>
---
M lib/vdsm/jsonrpcvdscli.py
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/49/45449/1
diff --git a/lib/vdsm/jsonrpcvdscli.py b/lib/vdsm/jsonrpcvdscli.py
index e1efb3f..787f4b8 100644
--- a/lib/vdsm/jsonrpcvdscli.py
+++ b/lib/vdsm/jsonrpcvdscli.py
@@ -124,7 +124,8 @@
useSSL=None,
responseQueue=None):
if host is None:
- host = socket.gethostname()
+ _, _, addrlist = socket.gethostbyaddr(socket.gethostname())
+ host = addrlist[0]
if port is None:
port = int(config.getint('addresses', 'management_port'))
--
To view, visit
https://gerrit.ovirt.org/45449
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iae0b8e71f4e3e03432db6c8f9dcf0a69c4612fc2
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Piotr Kliczewski <piotr.kliczewski(a)gmail.com>