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.
Steps to verify with standalone 389-ds-base.
1. install older version of 389-ds-base (newer than 1.3.1)
2. systemctl disable dirsrv@SERVER_ID
check there is no dirsrv@SERVER_ID in /etc/systemd/system/dirsrv.target.wants.
3. check ns-slapd is up (record PID)
4. set environment variables for debug logging
export DEBUGPOSTTRANS=/tmp/output
export DEBUGPOSTSETUP=-ddddd
5. run upgrade to 389-ds-base-1.3.4.0-12 (e.g., rpm -U 389-ds-base)
6. check /tmp/output and /tmp/output.upgrade that the upgrade had run.
7. check ns-slapd is up and the PID is different from the one from step 3.
8. check the server instance service remains disabled.
"systemctl status dirsrv@SERVER_ID" does not report enabled.
There is no dirsrv@SERVER_ID in /etc/systemd/system/dirsrv.target.wants.
If 6, 7, and 8 are satisfied, the fix is verified.
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.
https://rhn.redhat.com/errata/RHBA-2015-2351.html
Description of problem: ipa replica upgrade failed in starting dirsrv Version-Release number of selected component (if applicable): ipa-server-4.1.0-18.el7.x86_64 ipa-server-4.2.0-3.el7.x86_64 389-ds-base-1.3.3.1-13.el7.x86_64 389-ds-base-1.3.4.0-9.el7.x86_64 How reproducible: Always Steps to Reproduce: 1.Upgrade 7.1 master to 7.2 2.Upgrade 7.1 replica to 7.2 3.Upgrade fails on replica Actual results: ipa replica upgrade failed Expected results: Upgrade successfully Additional info: :: [ BEGIN ] :: Running 'yum -y update 'ipa*' sssd' . . . 2015-08-10T14:26:53Z DEBUG Upgrading IPA: 2015-08-10T14:26:53Z DEBUG [1/10]: stopping directory server 2015-08-10T14:26:53Z DEBUG Starting external process 2015-08-10T14:26:53Z DEBUG args='/bin/systemctl' 'stop' 'dirsrv' 2015-08-10T14:26:56Z DEBUG Process finished, return code=0 2015-08-10T14:26:56Z DEBUG stdout= 2015-08-10T14:26:56Z DEBUG stderr= 2015-08-10T14:26:56Z DEBUG duration: 3 seconds 2015-08-10T14:26:56Z DEBUG [2/10]: saving configuration 2015-08-10T14:26:56Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state' 2015-08-10T14:26:56Z DEBUG Saving StateFile to '/var/lib/ipa/sysrestore/sysrestore.state' 2015-08-10T14:26:56Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state' 2015-08-10T14:26:56Z DEBUG Saving StateFile to '/var/lib/ipa/sysrestore/sysrestore.state' 2015-08-10T14:26:56Z DEBUG duration: 0 seconds 2015-08-10T14:26:56Z DEBUG [3/10]: disabling listeners 2015-08-10T14:26:56Z DEBUG duration: 0 seconds 2015-08-10T14:26:56Z DEBUG [4/10]: enabling DS global lock 2015-08-10T14:26:56Z DEBUG duration: 0 seconds 2015-08-10T14:26:56Z DEBUG [5/10]: starting directory server 2015-08-10T14:26:56Z DEBUG Starting external process 2015-08-10T14:26:56Z DEBUG args='/bin/systemctl' 'start' 'dirsrv' 2015-08-10T14:26:56Z DEBUG Process finished, return code=1 2015-08-10T14:26:56Z DEBUG stdout= 2015-08-10T14:26:56Z DEBUG stderr=Job for dirsrv failed because the control process exited with error code. See "systemctl status dirsrv" and "journalctl -xe" for details. 2015-08-10T14:26:56Z DEBUG Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 416, in start_creation run_step(full_msg, method) File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 406, in run_step method() File "/usr/lib/python2.7/site-packages/ipaserver/install/upgradeinstance.py", line 176, in __start services.service(self.service_name).start(self.serverid, ldapi=True) File "/usr/lib/python2.7/site-packages/ipaplatform/redhat/services.py", line 163, in start instance_name, capture_output=capture_output, wait=wait) File "/usr/lib/python2.7/site-packages/ipaplatform/base/services.py", line 298, in start capture_output=capture_output) File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line 373, in run raise CalledProcessError(p.returncode, arg_string, stdout) CalledProcessError: Command ''/bin/systemctl' 'start' 'dirsrv'' returned non-zero exit status 1 2015-08-10T14:26:56Z DEBUG [error] CalledProcessError: Command ''/bin/systemctl' 'start' 'dirsrv'' returned non-zero exit status 1 2015-08-10T14:26:56Z DEBUG [cleanup]: stopping directory server 2015-08-10T14:26:56Z DEBUG Starting external process 2015-08-10T14:26:56Z DEBUG args='/bin/systemctl' 'stop' 'dirsrv' 2015-08-10T14:26:56Z DEBUG Process finished, return code=0 2015-08-10T14:26:56Z DEBUG stdout= 2015-08-10T14:26:56Z DEBUG stderr= 2015-08-10T14:26:56Z DEBUG duration: 0 seconds 2015-08-10T14:26:56Z DEBUG [cleanup]: restoring configuration 2015-08-10T14:26:56Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state' 2015-08-10T14:26:56Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state' 2015-08-10T14:26:56Z DEBUG Saving StateFile to '/var/lib/ipa/sysrestore/sysrestore.state' 2015-08-10T14:26:56Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state' 2015-08-10T14:26:56Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state' 2015-08-10T14:26:56Z DEBUG Saving StateFile to '/var/lib/ipa/sysrestore/sysrestore.state' 2015-08-10T14:26:56Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state' 2015-08-10T14:26:56Z DEBUG duration: 0 seconds 2015-08-10T14:26:56Z ERROR IPA server upgrade failed: Inspect /var/log/ipaupgrade.log and run command ipa-server-upgrade manually. 2015-08-10T14:26:56Z DEBUG File "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 171, in execute return_value = self.run() File "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_server_upgrade.py", line 48, in run server.upgrade() File "/usr/lib/python2.7/site-packages/ipaserver/install/server/upgrade.py", line 1563, in upgrade data_upgrade.create_instance() File "/usr/lib/python2.7/site-packages/ipaserver/install/upgradeinstance.py", line 201, in create_instance show_service_name=False) File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 416, in start_creation run_step(full_msg, method) File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 406, in run_step method() File "/usr/lib/python2.7/site-packages/ipaserver/install/upgradeinstance.py", line 176, in __start services.service(self.service_name).start(self.serverid, ldapi=True) File "/usr/lib/python2.7/site-packages/ipaplatform/redhat/services.py", line 163, in start instance_name, capture_output=capture_output, wait=wait) File "/usr/lib/python2.7/site-packages/ipaplatform/base/services.py", line 298, in start capture_output=capture_output) File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line 373, in run raise CalledProcessError(p.returncode, arg_string, stdout) 2015-08-10T14:26:56Z DEBUG The ipa-server-upgrade command failed, exception: CalledProcessError: Command ''/bin/systemctl' 'start' 'dirsrv'' returned non-zero exit status 1 2015-08-10T14:26:56Z ERROR Unexpected error - see /var/log/ipaupgrade.log for details: CalledProcessError: Command ''/bin/systemctl' 'start' 'dirsrv'' returned non-zero exit status 1