summaryrefslogtreecommitdiffstats
path: root/install/tools
diff options
context:
space:
mode:
authorTomas Krizek <tkrizek@redhat.com>2016-11-29 18:19:07 +0100
committerMartin Basti <mbasti@redhat.com>2016-12-07 16:32:09 +0100
commita24cd01304aaef77b66d0e178585c9ec8bbce9b5 (patch)
tree2e58432807b5fd47d0f6d1675f1c03c17026d0cc /install/tools
parenta77627dd8cca43bd1131a7e186de0ab159763761 (diff)
downloadfreeipa-a24cd01304aaef77b66d0e178585c9ec8bbce9b5.tar.gz
freeipa-a24cd01304aaef77b66d0e178585c9ec8bbce9b5.tar.xz
freeipa-a24cd01304aaef77b66d0e178585c9ec8bbce9b5.zip
ipautil: check for open ports on all resolved IPs
When a hostname is provided to host_port_open, it should check if ports are open for ALL IPs that are resolved from the hostname, instead of checking whether the port is reachable on at least one of the IPs. https://fedorahosted.org/freeipa/ticket/6522 Reviewed-By: Petr Spacek <pspacek@redhat.com>
Diffstat (limited to 'install/tools')
-rwxr-xr-xinstall/tools/ipa-replica-conncheck5
1 files changed, 3 insertions, 2 deletions
diff --git a/install/tools/ipa-replica-conncheck b/install/tools/ipa-replica-conncheck
index 934744dd3..04e23ded5 100755
--- a/install/tools/ipa-replica-conncheck
+++ b/install/tools/ipa-replica-conncheck
@@ -381,8 +381,9 @@ def port_check(host, port_list):
ports_udp_warning = [] # conncheck could not verify that port is open
for port in port_list:
try:
- port_open = ipautil.host_port_open(host, port.port,
- port.port_type, socket_timeout=CONNECT_TIMEOUT)
+ port_open = ipautil.host_port_open(
+ host, port.port, port.port_type,
+ socket_timeout=CONNECT_TIMEOUT, log_errors=True)
except socket.gaierror:
raise RuntimeError("Port check failed! Unable to resolve host name '%s'" % host)
if port_open: