Description of problem:
During dirsrv installation using ipa-server-install, command '/usr/sbin/setup-ds.pl' failed. ipa-server-install command proceeded without checking status of installation of dirsrv, which cause further installation failures such as
1. Failed to restart the directory server
2. Failed to load default schema
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create failure in setup-ds.pl (I created a empty directory in /etc/dirsrv/slapd-instance_name)
2. Do ipa-server-install
ipa-server-install proceeds further without checking installation of dirsrv
ipa-server-install fail immediately after setup-ds.pl failures.
Created attachment 1076362 [details]
Created attachment 1076363 [details]
This issue is already tracked in upstream ticket 2539, I will link it to this Bugzilla.
Jan, with the recent installation refactoring, would it be easier to fix this (benign) gap in the installer?
Martin, I believe so, but it's still WIP, the code related to this bug was not updated yet.
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see email@example.com with any questions
Verified on RHEL73 using
1. Created an empty directory named slapd-LABS03-TEST in /etc/dirsrv/
[root@ipa01 dirsrv]# ls -l
drwxr-xr-x. 2 root root 82 Sep 15 15:31 config
drwxr-xr-x. 2 root root 4096 Sep 15 15:31 schema
drwxr-xr-x. 2 root root 6 Sep 15 16:04 slapd-LABS03-TEST <===
2. Installation fails immediately after setup-ds.pl failures. Traceback message is not seen anymore as mentioned in original comment.
[root@ipa01 dirsrv]# ipa-server-install --setup-dns --forwarder=*.*.*.* -r LABS03.TEST -p ***** -a **** --zonemgr=tãako.redhat.com -U
The log file for this installation can be found in /var/log/ipaserver-install.log
This program will set up the IPA Server.
* 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)
WARNING: conflicting time&date synchronization service 'chronyd' will be disabled
in favor of ntpd
Warning: skipping DNS resolution of host ipa01.labs03.test
The domain name has been determined based on the host name.
Checking DNS domain labs03.test., please wait ...
Checking DNS forwarders, please wait ...
The IPA Master Server will be configured with:
IP address(es): *********
Domain name: labs03.test
Realm name: LABS03.TEST
BIND DNS server will be configured to serve IPA domain with:
Forward policy: only
Reverse zone(s): No reverse zone
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/47]: creating directory server user
[2/47]: creating directory server instance
[error] RuntimeError: failed to create ds instance Command '/usr/sbin/setup-ds.pl --silent --logfile - -f /tmp/tmpnout0D' returned non-zero exit status 1
ipa.ipapython.install.cli.install_tool(Server): ERROR failed to create
ds instance Command '/usr/sbin/setup-ds.pl --silent --logfile - -f /tmp/tmpnout0D' returned non-zero exit status 1
ipa.ipapython.install.cli.install_tool(Server): ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.