Dan Kenigsberg has submitted this change and it was merged.

Change subject: XMLRPCServer: make XMLRPCServer able to listen on IPv6 addresses
......................................................................


XMLRPCServer: make XMLRPCServer able to listen on IPv6 addresses

SimpleXMLRPCServer is derived from SocketServer.TCPServer of which the
default address_family is socket.AF_INET, that makes it could only
listen on IPv4 connections. This patch wraps it and extends its
ability on IPv6 networks.

How to test:

  1. Build and install VDSM RPMs
  2. Edit /etc/vdsm/vdsm.conf, change "addresses/management_ip = ::",
and "vars/jsonrpc_enable = false"(as known to break JSONRPC)
  3. Restart VDSM daemon
  4. "netstat -nlp6t" or "ss -nlp6t" should indicate vdsm XMLRPC server
is listening on "::"
  5. "vdsClient -s '[::1]:54321' getVdsCaps" succeeds

Change-Id: I50ab0ba59ac696da2d992afe453c6d3ceb111e94
Signed-off-by: Petr Sebek <[email protected]>
Signed-off-by: Zhou Zheng Sheng <[email protected]>
Signed-off-by: huntxu <[email protected]>
Reviewed-on: http://gerrit.ovirt.org/11520
Reviewed-by: Dan Kenigsberg <[email protected]>
---
M lib/vdsm/SecureXMLRPCServer.py
M lib/vdsm/config.py.in
M lib/vdsm/utils.py
M vdsm/clientIF.py
4 files changed, 24 insertions(+), 20 deletions(-)

Approvals:
  Petr Šebek: Verified; Looks good to me, but someone else must approve
  Dan Kenigsberg: Looks good to me, approved


-- 
To view, visit http://gerrit.ovirt.org/11520
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I50ab0ba59ac696da2d992afe453c6d3ceb111e94
Gerrit-PatchSet: 9
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Hunt Xu <[email protected]>
Gerrit-Reviewer: Assaf Muller <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Hunt Xu <[email protected]>
Gerrit-Reviewer: Mark Wu <[email protected]>
Gerrit-Reviewer: Petr Šebek <[email protected]>
Gerrit-Reviewer: Zhou Zheng Sheng <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to