Enhancement #3253

Avoid slapd restart when updating openldap-servers package

Added by Giacomo Sanchietti almost 6 years ago. Updated almost 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-directory
Target version:v6.6
Resolution: NEEDINFO:No

Description

Slapd process is currently handled by upstart and not by init.d as in a standard CentOS installation.
When upgrading openldap-servers the %post rpm script tries to restart the current slapd instance, but the restart can lead to conflicts with the upstart script.

The solution is to use a different pid file for the slapd instance launched from upstart.
The init.d system will see slapd as not running and the process will non be restarted in case of a openldap-servers upgrade.

Associated revisions

Revision 2a65b6c4
Added by Giacomo Sanchietti almost 6 years ago

Confine upstart slapd instance. Refs #3253

Change pid path to avoid conflicts
between init.d and upstart.

History

#1 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from NEW to TRIAGED
  • Target version set to v6.6
  • % Done changed from 0 to 20

#2 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#3 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#4 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-directory-2.2.2-1.1.g2a65b6c.ns6.noarch.rpm
Test case 1
  • On a clean machine install nethserver-directory from testing repository
  • Check slapd is running under upstart: status slapd. Must return: slapd start/running, process <pid>
  • Check slapd is NOT running init.d: service slapd status Must return: slapd is stopped
Test case 2
  • Upgrade the package on a system where slapd is already running
  • Test slapd is restarted after the upgrade
  • Check slapd is running under upstart: status slapd. Must return: slapd start/running, process <pid>
  • Check slapd is NOT running init.d: service slapd status Must return: slapd is stopped

#5 Updated by dz0 0te almost 6 years ago

  • Assignee set to dz0 0te

#6 Updated by dz0 0te almost 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (dz0 0te)
  • % Done changed from 70 to 90

System and Package Version installed
VM KVM - Clean install of Nethserver 6.6 fully updated
Package Installed:
Other Package installed: none

Test Original Problem
Enhancement

Install Updated Package

yum --enablerepo=nethserver-testing install nethserver-directory-2.2.2-1.1.g2a65b6c.ns6

Test Results after install
Test case 1:
  1. status slapd
    slapd start/running, process 1692
  2. service slapd status
    slapd is stopped

Test case 2 (with File Server mod installed):
pre update:

# status slapd
slapd start/running, process 2290
# service slapd status
slapd (pid  2290) is running...

post update and reboot:

# status slapd
slapd start/running, process 778
# service slapd status
slapd is stopped

Verified or Reopen
Verified

Note
...

#7 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-directory-2.2.3-1.ns6.noarch.rpm

Also available in: Atom PDF