From bd725f4ba4449f285a8b1f646dc7a54978211ff9 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Feb 29 2016 12:19:28 +0000 Subject: Make PTR records check optional for IPA installation PTR records are not mandratory for IPA, result fo checks should be only warning not hard error. https://fedorahosted.org/freeipa/ticket/5686 Reviewed-By: Oleg Fayans --- diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index bdbe2e3..ad1ac1a 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -206,15 +206,16 @@ def verify_fqdn(host_name, no_host_dns=False, local_hostname=True): revname = socket.gethostbyaddr(address)[0] except Exception as e: root_logger.debug('Check failed: %s', e) - raise HostReverseLookupError( + root_logger.error( "Unable to resolve the IP address %s to a host name, " - "check /etc/hosts and DNS name resolution" % address) - root_logger.debug('Found reverse name: %s', revname) - if revname != host_name: - raise HostReverseLookupError( - "The host name %s does not match the value %s obtained " - "by reverse lookup on IP address %s" - % (host_name, revname, address)) + "check /etc/hosts and DNS name resolution", address) + else: + root_logger.debug('Found reverse name: %s', revname) + if revname != host_name: + root_logger.error( + "The host name %s does not match the value %s obtained " + "by reverse lookup on IP address %s", host_name, revname, + address) verified.add(address)