summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2013-04-22 14:17:03 -0400
committerMartin Kosek <mkosek@redhat.com>2013-04-24 15:28:57 +0200
commitbd89e49ed771ff8677cf0e8aa4b0d40eaa0c39b6 (patch)
tree7aa27284a2dde8e2eb0aace4d9e318765f5fbca5 /ipaserver
parent63e79a3d86bb302b954571ec881aae06388392cd (diff)
downloadfreeipa-bd89e49ed771ff8677cf0e8aa4b0d40eaa0c39b6.tar.gz
freeipa-bd89e49ed771ff8677cf0e8aa4b0d40eaa0c39b6.tar.xz
freeipa-bd89e49ed771ff8677cf0e8aa4b0d40eaa0c39b6.zip
Handle socket.gethostbyaddr() exceptions when verifying hostnames.
Log any socket exceptions raised and let the process continue. This failure isn't a show-stopper. Other checks past this will catch any other problems. This was seen when /etc/hosts and /etc/resolv.conf were both empty. https://fedorahosted.org/freeipa/ticket/3581
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/install/installutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py
index 600acfee..bc28dec4 100644
--- a/ipaserver/install/installutils.py
+++ b/ipaserver/install/installutils.py
@@ -128,6 +128,8 @@ def verify_fqdn(host_name, no_host_dns=False, local_hostname=True):
"Please check /etc/hosts or DNS name resolution" % (host_name, ex_name[0]))
except socket.gaierror:
pass
+ except socket.error, e:
+ root_logger.debug('socket.gethostbyaddr() error: %d: %s' % (e.errno, e.strerror))
if no_host_dns:
print "Warning: skipping DNS resolution of host", host_name