Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 805176

Summary: ipa-server-install doesn't stop on error
Product: Red Hat Enterprise Linux 7 Reporter: Dmitri Pal <dpal>
Component: ipaAssignee: Martin Kosek <mkosek>
Status: CLOSED DEFERRED QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: jgalipea, mbasti, mkosek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-21 15:26:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dmitri Pal 2012-03-20 16:02:51 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/2539

The ipa-server-install script should stop immediately on error. Currently there seem to be cases where the script continues executing the following operations after encountering an error. 

In the following example the setup-ds.pl fails because it doesn't have a write permission to /var/lock/dirsrv (due to prior DS installation). The script should have stopped at step 2, but it continues until step 16.

{{{
Configuring directory server: Estimated time 1 minute
  [1/35]: creating directory server user
  [2/35]: creating directory server instance
ipa         : CRITICAL failed to restart ds instance Command '/usr/sbin/setup-ds.pl --silent --logfile - -f /tmp/tmp5T3Bad' returned non-zero exit status 1
ipa         : CRITICAL Failed to restart the directory server ([Errno 111] Connection refused). See the installation log for details.
  [3/35]: adding default schema
  [4/35]: enabling memberof plugin
ipa         : CRITICAL Failed to load memberof-conf.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /usr/share/ipa/memberof-conf.ldif -x -D cn=Directory Manager -y /tmp/tmpzvtksY' returned non-zero exit status 255
  [5/35]: enabling referential integrity plugin
ipa         : CRITICAL Failed to load referint-conf.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /usr/share/ipa/referint-conf.ldif -x -D cn=Directory Manager -y /tmp/tmpqlzZeS' returned non-zero exit status 255
  [6/35]: enabling winsync plugin
ipa         : CRITICAL Failed to load ipa-winsync-conf.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /usr/share/ipa/ipa-winsync-conf.ldif -x -D cn=Directory Manager -y /tmp/tmp0zTgQb' returned non-zero exit status 255
  [7/35]: configuring replication version plugin
ipa         : CRITICAL Failed to load version-conf.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /usr/share/ipa/version-conf.ldif -x -D cn=Directory Manager -y /tmp/tmp6PXTcK' returned non-zero exit status 255
  [8/35]: enabling IPA enrollment plugin
ipa         : CRITICAL Failed to load enrollment-conf.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /tmp/tmpyYdtu2 -x -D cn=Directory Manager -y /tmp/tmpEl3ngZ' returned non-zero exit status 255
  [9/35]: enabling ldapi
ipa         : CRITICAL Failed to load ldapi.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /tmp/tmpTOmPEB -x -D cn=Directory Manager -y /tmp/tmpKjZIyT' returned non-zero exit status 255
  [10/35]: configuring uniqueness plugin
ipa         : CRITICAL Failed to load unique-attributes.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /tmp/tmpjKgBwc -x -D cn=Directory Manager -y /tmp/tmpdH0fpH' returned non-zero exit status 255
  [11/35]: configuring uuid plugin
ipa         : CRITICAL Failed to load uuid-conf.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /usr/share/ipa/uuid-conf.ldif -x -D cn=Directory Manager -y /tmp/tmptsrGb9' returned non-zero exit status 255
ipa         : CRITICAL Failed to load uuid-ipauniqueid.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /tmp/tmpOFgBkl -x -D cn=Directory Manager -y /tmp/tmpWAZ2Lg' returned non-zero exit status 255
  [12/35]: configuring modrdn plugin
ipa         : CRITICAL Failed to load modrdn-conf.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /usr/share/ipa/modrdn-conf.ldif -x -D cn=Directory Manager -y /tmp/tmpumHuEX' returned non-zero exit status 255
ipa         : CRITICAL Failed to load modrdn-krbprinc.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /tmp/tmplIN1IS -x -D cn=Directory Manager -y /tmp/tmpb4DBy_' returned non-zero exit status 255
  [13/35]: enabling entryUSN plugin
ipa         : CRITICAL Failed to load entryusn.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /usr/share/ipa/entryusn.ldif -x -D cn=Directory Manager -y /tmp/tmpZvbhPA' returned non-zero exit status 255
  [14/35]: configuring lockout plugin
ipa         : CRITICAL Failed to load lockout-conf.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /usr/share/ipa/lockout-conf.ldif -x -D cn=Directory Manager -y /tmp/tmpUEKYOx' returned non-zero exit status 255
  [15/35]: creating indices
ipa         : CRITICAL Failed to load indices.ldif: Command '/usr/bin/ldapmodify -h edewata-f17.example.com -v -f /usr/share/ipa/indices.ldif -x -D cn=Directory Manager -y /tmp/tmpp2ZLGa' returned non-zero exit status 255
  [16/35]: configuring ssl for ds instance
Unexpected error - see ipaserver-install.log for details:
 {'desc': "Can't contact LDAP server"}
}}}

Comment 2 Martin Kosek 2015-01-21 15:26:43 UTC
Thank you taking your time and submitting this request for Red Hat Enterprise Linux. Unfortunately, this bug was not given a priority and was deferred both in the upstream project and in Red Hat Enterprise Linux.

Given that we are unable to fulfill this request in following Red Hat Enterprise Linux releases, I am closing the Bugzilla as DEFERRED. To request that Red Hat re-considers the decision, please re-open the Bugzilla via appropriate support channels and provide additional business and/or technical details about its importance to you.

Note that you can still track this request or even contribute patches in the referred upstream Trac ticket.