Bug 1766386

Summary: ipa-server-install command fails to create DS Instance
Product: Red Hat Enterprise Linux 7 Reporter: Sneha Veeranki <sveerank>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED DUPLICATE QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.8CC: lkrispen, nkinder, rmeggins, spichugi, tbordaz, vashirov
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-18 20:12:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sneha Veeranki 2019-10-28 22:04:00 UTC
Description of problem:
ipa-server-install command fails to create DS Instance

Version-Release number of selected component (if applicable):
389-ds-base-1.3.10.1-3.el7.x86_64
389-ds-base-libs-1.3.10.1-3.el7.x86_64

How reproducible:
Always

Steps to Reproduce:

1. yum install ipa-server
2. ipa-server-install --domain example.com --realm EXAMPLE.COM --admin-password SECret.123 --ds-password SECret.123 --unattended


Actual results:

# ipa-server-install --domain example.com --realm EXAMPLE.COM --admin-password SECret.123 --ds-password SECret.123 --unattended

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 the KDC to enable PKINIT

WARNING: conflicting time&date synchronization service 'chronyd' will be disabled
in favor of ntpd


The IPA Master Server will be configured with:
Hostname:       xxx
IP address(es): xxx, xxxx
Domain name:    example.com
Realm name:     EXAMPLE.COM

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: 30 seconds
  [1/45]: creating directory server instance
  [error] RuntimeError: failed to create DS instance Command '/usr/sbin/setup-ds.pl --silent --logfile - -f /tmp/tmpjSsaZt' returned non-zero exit status 1
ipapython.admintool: ERROR    failed to create DS instance Command '/usr/sbin/setup-ds.pl --silent --logfile - -f /tmp/tmpjSsaZt' returned non-zero exit status 1
ipapython.admintool: ERROR    The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information



/var/log/ipaserver-install.log

2019-10-28T21:30:44Z DEBUG writing inf template
2019-10-28T21:30:44Z DEBUG
[General]
FullMachineName=   xxx
SuiteSpotUserID=   dirsrv
SuiteSpotGroup=    dirsrv
ServerRoot=    /usr/lib64/dirsrv
[slapd]
ServerPort=   389
ServerIdentifier=   EXAMPLE-COM
Suffix=   dc=example,dc=com
RootDN=   cn=Directory Manager
InstallLdifFile= /var/lib/dirsrv/boot.ldif
inst_dir=   /var/lib/dirsrv/scripts-EXAMPLE-COM

2019-10-28T21:30:44Z DEBUG calling setup-ds.pl
2019-10-28T21:30:44Z DEBUG Starting external process
2019-10-28T21:30:44Z DEBUG args=/usr/sbin/setup-ds.pl --silent --logfile - -f /tmp/tmpjSsaZt
2019-10-28T21:30:46Z DEBUG Process finished, return code=1
2019-10-28T21:30:46Z DEBUG stdout=[19/10/28:17:30:46] - [Setup] Info Could not import LDIF file '/var/lib/dirsrv/boot.ldif'.  Error: 35584.  Output: importing data ...
/usr/sbin/ldif2db: line 118: 21553 Segmentation fault      /usr/sbin/ns-slapd ldif2db -D /etc/dirsrv/slapd-EXAMPLE-COM -n "userRoot" -i "/var/lib/dirsrv/boot.ldif"

Could not import LDIF file '/var/lib/dirsrv/boot.ldif'.  Error: 35584.  Output: importing data ...
/usr/sbin/ldif2db: line 118: 21553 Segmentation fault      /usr/sbin/ns-slapd ldif2db -D /etc/dirsrv/slapd-EXAMPLE-COM -n "userRoot" -i "/var/lib/dirsrv/boot.ldif"

[19/10/28:17:30:46] - [Setup] Fatal Error: Could not create directory server instance 'EXAMPLE-COM'.
Error: Could not create directory server instance 'EXAMPLE-COM'.
[19/10/28:17:30:46] - [Setup] Fatal Exiting . . .
Log file is '-'
Exiting . . .
Log file is '-'


2019-10-28T21:30:46Z DEBUG stderr=
2019-10-28T21:30:46Z DEBUG Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 567, in start_creation
    run_step(full_msg, method)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 557, in run_step
    method()
  File "/usr/lib/python2.7/site-packages/ipaserver/install/dsinstance.py", line 587, in __create_instance
    raise RuntimeError("failed to create DS instance %s" % e)
RuntimeError: failed to create DS instance Command '/usr/sbin/setup-ds.pl --silent --logfile - -f /tmp/tmpjSsaZt' returned non-zero exit status 1

2019-10-28T21:30:46Z DEBUG   [error] RuntimeError: failed to create DS instance Command '/usr/sbin/setup-ds.pl --silent --logfile - -f /tmp/tmpjSsaZt' returned non-zero exit status 1
2019-10-28T21:30:46Z DEBUG   File "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 178, in execute
    return_value = self.run()
  File "/usr/lib/python2.7/site-packages/ipapython/install/cli.py", line 319, in run
    return cfgr.run()
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 360, in run
    return self.execute()
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 386, in execute
    for rval in self._executor():
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 431, in __runner
    exc_handler(exc_info)
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 460, in _handle_execute_exception
    self._handle_exception(exc_info)
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 450, in _handle_exception
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 450, in _handle_exception
    six.reraise(*exc_info)
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 421, in __runner
    step()
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 418, in <lambda>
    step = lambda: next(self.__gen)
  File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from
    six.reraise(*exc_info)
  File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from
    value = gen.send(prev_value)
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 655, in _configure
    next(executor)
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 431, in __runner
    exc_handler(exc_info)
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 460, in _handle_execute_exception
    self._handle_exception(exc_info)
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 518, in _handle_exception
    self.__parent._handle_exception(exc_info)
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 450, in _handle_exception
    six.reraise(*exc_info)
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 515, in _handle_exception
    super(ComponentBase, self)._handle_exception(exc_info)
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 450, in _handle_exception
    six.reraise(*exc_info)
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 421, in __runner
    step()
  File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 418, in <lambda>
    step = lambda: next(self.__gen)
  File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from
    six.reraise(*exc_info)
  File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from
    value = gen.send(prev_value)
  File "/usr/lib/python2.7/site-packages/ipapython/install/common.py", line 65, in _install
    for unused in self._installer(self.parent):
  File "/usr/lib/python2.7/site-packages/ipaserver/install/server/__init__.py", line 590, in main
    master_install(self)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 250, in decorated
    func(installer)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 783, in install
    setup_pkinit=not options.no_pkinit)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/dsinstance.py", line 346, in create_instance
    self.start_creation(runtime=30)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 567, in start_creation
    run_step(full_msg, method)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 557, in run_step
    method()
  File "/usr/lib/python2.7/site-packages/ipaserver/install/dsinstance.py", line 587, in __create_instance
    raise RuntimeError("failed to create DS instance %s" % e)

2019-10-28T21:30:46Z DEBUG The ipa-server-install command failed, exception: RuntimeError: failed to create DS instance Command '/usr/sbin/setup-ds.pl --silent --logfile - -f /tmp/tmpjSsaZt' returned non-zero exit status 1
2019-10-28T21:30:46Z ERROR failed to create DS instance Command '/usr/sbin/setup-ds.pl --silent --logfile - -f /tmp/tmpjSsaZt' returned non-zero exit status 1
2019-10-28T21:30:46Z ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information


Expected results:
Installation should succeed without any errors.

Additional info:

Comment 2 mreynolds 2019-10-28 23:23:42 UTC
This appears at first glance to be a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1765106 which is fixed in: 389-ds-base-1.3.10.1-4.el7

Comment 3 Viktor Ashirov 2019-11-18 20:12:13 UTC

*** This bug has been marked as a duplicate of bug 1765106 ***