Project

General

Profile

Bug #7516

rudder-inventory-ldap and rudder-jetty don't stop their services on uninstall and rudder-slapd can fail to restart on upgrade

Added by Jonathan CLARKE about 4 years ago. Updated about 4 years ago.

Status:
Released
Priority:
3
Category:
Packaging
Target version:
Severity:
User visibility:
Effort required:
Priority:

Description

As discovered in #7510, removing and reinstalling Rudder packages does not lead to a clean state. In particular, the rudder-inventory-ldap package does not stop slapd when it is removed, and the next time it is installed it also fails to restart slapd.

Two problems, two causes:

  1. Lack of a {pre,post}un scriptlet to stop slapd (at least on RPM systems)
  2. The restart command used doesn't call rudder-slapd forcestop, so it can silently fail if the process wasn't stopped, like if the PID file is missing, for example

Related issues

Related to Rudder - Bug #7515: rudder-agent and rudder-slapd init scripts may fail to stop services if killall is missing or misbehavingReleased2015-11-30Benoît PECCATTEActions
Related to Rudder - Bug #7510: rudder-upgrade fails when *re*installing RudderReleased2015-11-30Benoît PECCATTEActions
#1

Updated by Jonathan CLARKE about 4 years ago

  • Blocks Bug #7510: rudder-upgrade fails when *re*installing Rudder added
#2

Updated by Jonathan CLARKE about 4 years ago

  • Related to Bug #7515: rudder-agent and rudder-slapd init scripts may fail to stop services if killall is missing or misbehaving added
#3

Updated by Jonathan CLARKE about 4 years ago

  • Subject changed from rudder-inventory-ldap doesn't stop rudder-slapd on uninstall and can fail to restart it on upgrade to rudder-inventory-ldap and rudder-jetty don't stop their services on uninstall and rudder-slapd can fail to restart on upgrade

Actually this should also be done for rudder-jetty.

#4

Updated by Jonathan CLARKE about 4 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Jonathan CLARKE to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/820
#5

Updated by Jonathan CLARKE about 4 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
#7

Updated by Vincent MEMBRÉ about 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.17, 3.0.12 and 3.1.5 which were released today.

#8

Updated by Vincent MEMBRÉ about 4 years ago

  • Blocks deleted (Bug #7510: rudder-upgrade fails when *re*installing Rudder)
#9

Updated by Vincent MEMBRÉ about 4 years ago

  • Related to Bug #7510: rudder-upgrade fails when *re*installing Rudder added

Also available in: Atom PDF