Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1142088
Description of problem: ipa-server-install searches CA under different hostname [root@sec-ipa2 ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:16:3e:00:01:c4 brd ff:ff:ff:ff:ff:ff inet 10.34.37.25/23 brd 10.34.37.255 scope global eth0 valid_lft forever preferred_lft forever inet6 2620:52:0:2223::1:4/64 scope global valid_lft forever preferred_lft forever inet6 fe80::216:3eff:fe00:1c4/64 scope link valid_lft forever preferred_lft forever [root@sec-ipa2 ~]# ipa-server-install -a Pass2012! -p Pass2012! --domain=ipa2.baseos.qe --realm=IPA2.BASEOS.QE --hostname sec-ipa2.ipa2.baseos.qe --setup-dns The log file for this installation can be found in /var/log/ipaserver-install.log ============================================================================== This program will set up the IPA Server. This includes: * Configure a stand-alone CA (dogtag) for certificate management * 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) * Configure DNS (bind) To accept the default shown in brackets, press the Enter key. Existing BIND configuration detected, overwrite? [no]: yes Warning: skipping DNS resolution of host sec-ipa2.ipa2.baseos.qe Warning: hostname sec-ipa2.ipa2.baseos.qe does not match system hostname sec-ipa2.ipa.baseos.qe. System hostname will be updated during the installation process to prevent service failures. Unable to resolve IP address for host name Please provide the IP address to be used for this host name: 10.34.37.25 Adding [10.34.37.25 sec-ipa2.ipa2.baseos.qe] to your /etc/hosts file Do you want to configure DNS forwarders? [yes]: yes Enter the IP address of DNS forwarder to use, or press Enter to finish. Enter IP address for a DNS forwarder: No DNS forwarders configured Do you want to configure the reverse zone? [yes]: no The IPA Master Server will be configured with: Hostname: sec-ipa2.ipa2.baseos.qe IP address: 10.34.37.25 Domain name: ipa2.baseos.qe Realm name: IPA2.BASEOS.QE BIND DNS server will be configured to serve IPA domain with: Forwarders: No forwarders Reverse zone: No reverse zone Continue to configure the system with these values? [no]: yes The following operations may take some minutes to complete. Please wait until the prompt is returned. Configuring NTP daemon (ntpd) [1/4]: stopping ntpd [2/4]: writing configuration [3/4]: configuring ntpd to start on boot [4/4]: starting ntpd Done configuring NTP daemon (ntpd). Configuring directory server (dirsrv): Estimated time 1 minute [1/38]: creating directory server user [2/38]: creating directory server instance [3/38]: adding default schema [4/38]: enabling memberof plugin [5/38]: enabling winsync plugin [6/38]: configuring replication version plugin [7/38]: enabling IPA enrollment plugin [8/38]: enabling ldapi [9/38]: configuring uniqueness plugin [10/38]: configuring uuid plugin [11/38]: configuring modrdn plugin [12/38]: configuring DNS plugin [13/38]: enabling entryUSN plugin [14/38]: configuring lockout plugin [15/38]: creating indices [16/38]: enabling referential integrity plugin [17/38]: configuring certmap.conf [18/38]: configure autobind for root [19/38]: configure new location for managed entries [20/38]: configure dirsrv ccache [21/38]: enable SASL mapping fallback [22/38]: restarting directory server [23/38]: adding default layout [24/38]: adding delegation layout [25/38]: creating container for managed entries [26/38]: configuring user private groups [27/38]: configuring netgroups from hostgroups [28/38]: creating default Sudo bind user [29/38]: creating default Auto Member layout [30/38]: adding range check plugin [31/38]: creating default HBAC rule allow_all [32/38]: initializing group membership [33/38]: adding master entry [34/38]: configuring Posix uid/gid generation [35/38]: adding replication acis [36/38]: enabling compatibility plugin [37/38]: tuning directory server [38/38]: configuring directory to start on boot Done configuring directory server (dirsrv). Configuring certificate server (pki-tomcatd): Estimated time 3 minutes 30 seconds [1/22]: creating certificate server user [2/22]: configuring certificate server instance [3/22]: stopping certificate server instance to update CS.cfg [4/22]: disabling nonces [5/22]: set up CRL publishing [6/22]: starting certificate server instance CA did not start in 300s Version-Release number of selected component (if applicable): ipa-server-3.3.3-28.el7 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
See https://bugzilla.redhat.com/show_bug.cgi?id=1142088#c2 for initial investigation.
I'm able to reproduce with 3.3.5 but 4.0.3 works fine for me. Do we want to fix it in 3.3.x?
There is an easy workaround (change hostname before ipa-server-install), so I would not invest in fixing it in 3.3.x and just close as worksforme then.
Metadata Update from @mkosek: - Issue assigned to dkupka - Issue set to the milestone: FreeIPA 4.0.4
Login to comment on this ticket.