--no-host-dns should allow us to install IPA server on a hostname without DNS resolvable name. Currently, it doesn't:
--no-host-dns
# ipa-server-install --hostname foo.bar --no-host-dns The log file for this installation can be found in /var/log/ipaserver-install.log ============================================================================== This program will set up the FreeIPA Server. This includes: * Configure the Network Time Daemon (ntpd) * Create and configure an instance of Directory Server * Create and configure a Kerberos Key Distribution Center (KDC) * Configure Apache (httpd) To accept the default shown in brackets, press the Enter key. Enter the fully qualified domain name of the computer on which you're setting up server software. Using the form <hostname>.<domainname> Example: master.example.com. Server host name [foo.bar]: Unexpected error - see ipaserver-install.log for details: Unable to resolve host name, check /etc/hosts or DNS name resolution
Log file:
2011-05-24 09:03:24,695 DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state' 2011-05-24 09:03:24,696 DEBUG Loading Index file from '/var/lib/ipa/sysrestore/sysrestore.index' 2011-05-24 09:03:24,697 DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state' 2011-05-24 09:03:24,697 DEBUG Loading Index file from '/var/lib/ipa-client/sysrestore/sysrestore.index' 2011-05-24 09:03:24,697 DEBUG /usr/sbin/ipa-server-install was invoked with options: {'setup_pkinit': True, 'realm_name': None, 'conf_ntp': True, 'subject': None, 'no_forwarders': False, 'domain_name': None, 'idmax': 0, 'hbac_allow': False, 'no_reverse': False, 'dirsrv_pkcs12': None, 'unattended': False, 'pkinit_pkcs12': None, 'selfsign': False, 'external_ca_file': None, 'no_host_dns': True, 'http_pkcs12': None, 'forwarders': None, 'idstart': 1904200000, 'external_ca': False, 'ip_address': None, 'zonemgr': None, 'setup_dns': False, 'host_name': 'foo.bar', 'debug': False, 'external_cert_file': None, 'pkinit_pin': None, 'uninstall': False} 2011-05-24 09:03:24,697 DEBUG missing options might be asked for interactively later 2011-05-24 09:03:24,697 DEBUG Loading Index file from '/var/lib/ipa/sysrestore/sysrestore.index' 2011-05-24 09:03:24,697 DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state' 2011-05-24 09:03:26,839 DEBUG Unable to resolve host name, check /etc/hosts or DNS name resolution File "/usr/sbin/ipa-server-install", line 987, in <module> sys.exit(main()) File "/usr/sbin/ipa-server-install", line 604, in main host_name = read_host_name(host_default,options.no_host_dns) File "/usr/sbin/ipa-server-install", line 301, in read_host_name raise e
https://bugzilla.redhat.com/show_bug.cgi?id=707229
master: 9152358[[BR]] ipa-2-0: 73e04bd
Metadata Update from @mkosek: - Issue assigned to mkosek - Issue set to the milestone: FreeIPA 2.1 - 2011/06
Login to comment on this ticket.