Actions
Bug #10858
openrudder-server-relay does not clean up apache includes on removal
Status:
New
Priority:
N/A
Assignee:
-
Category:
Packaging
Target version:
-
Pull Request:
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
Updated by Janos Mattyasovszky over 7 years ago
- Subject changed from rudder-server-relay does not clean up includes on removal to rudder-server-relay does not clean up apache includes on removal
Updated by Janos Mattyasovszky over 7 years ago
- Category changed from Relay server or API to Packaging
Updated by François ARMAND over 7 years ago
- Severity set to Minor - inconvenience | misleading | easy workaround
- User visibility changed from Getting started - demo | first install | level 1 Techniques to Operational - other Techniques | Technique editor | Rudder settings
- Priority changed from 0 to 17
Updated by Janos Mattyasovszky over 7 years ago
- Related to Bug #8232: Apache config does not get cleaned up after removal of rudder-webapp added
Updated by Benoît PECCATTE about 5 years ago
- Effort required set to Small
- Priority changed from 30 to 0
Actions