Project

General

Profile

Actions

Bug #10858

open

rudder-server-relay does not clean up apache includes on removal

Added by Janos Mattyasovszky over 7 years ago. Updated about 5 years ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Packaging
Target version:
-
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Priority:
0
Name check:
Fix check:
Regression:

Description

On 4.1.3 / SLES11:

Package rudder-server-relay adds an include to /etc/sysconfig/apache2:

/etc/sysconfig/apache2:. /etc/sysconfig/rudder-relay-apache

RPM scriptlet of rudder-server-relay:

# Add required includes in the apache2 configuration
if ! grep -qE "^. /etc/sysconfig/rudder-relay-apache$" /etc/sysconfig/apache2; then
  echo -e '# This sources the modules/defines needed by Rudder\n. /etc/sysconfig/rudder-relay-apache' >> /etc/sysconfig/apache2
fi

However, it does not remove it after being remove (complete removal, not upgrade).
This breaks apache init script, because the include fails and the whole init script exits, and pain and suffering follows.

Howto reproduce:

# rpm -qa | grep rudder | xargs rpm -e
INFO: Removing group rudder...groupdel: GID `xxxxxx' is primary group of `rudder'.
groupdel: Cannot remove user's primary group.
 Done
INFO: A back up copy of the /opt/rudder/etc/uuid.hive has been created in /var/backups/rudder
INFO: A back up copy of the /var/rudder/cfengine-community/policy_server.dat has been created in /var/backups/rudder
INFO: A back up copy of the /var/cfengine/policy_server.dat has been created in /var/backups/rudder
INFO: A back up copy of the /var/rudder/cfengine-community/ppkeys has been created in /var/backups/rudder
rudder-slapd[10734]: [INFO] Using /etc/default/rudder-slapd for configuration
rudder-slapd[10739]: [OK] virtual memory limit set to unlimited
rudder-slapd[10740]: [INFO] Killing OpenLDAP with force...
rudder-slapd[10742]: [OK] rudder-slapd process killed with force (PID 9091)
rudder-slapd[10743]: [INFO] Killing OpenLDAP replication with force...
rudder-slapd[10749]: [INFO] Found no slurpd process running
warning: /opt/rudder/etc/openldap/slapd.conf saved as /opt/rudder/etc/openldap/slapd.conf.rpmsave
Stopping Jetty: OK
warning: /opt/rudder/etc/rudder-networks.conf saved as /opt/rudder/etc/rudder-networks.conf.rpmsave
warning: /opt/rudder/etc/rudder-networks-policy-server.conf saved as /opt/rudder/etc/rudder-networks-policy-server.conf.rpmsave
warning: /opt/rudder/etc/rudder-networks-policy-server-24.conf saved as /opt/rudder/etc/rudder-networks-policy-server-24.conf.rpmsave
warning: /opt/rudder/etc/rudder-networks-24.conf saved as /opt/rudder/etc/rudder-networks-24.conf.rpmsave
warning: /etc/sysconfig/rudder-relay-apache saved as /etc/sysconfig/rudder-relay-apache.rpmsave

# /etc/init.d/apache2 stop
/etc/sysconfig/apache2: line 292: /etc/sysconfig/rudder-relay-apache: No such file or directory


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #8232: Apache config does not get cleaned up after removal of rudder-webappReleasedBenoît PECCATTE2016-05-02Actions
Actions

Also available in: Atom PDF