Bug #4499
closed
Rudder init script kill all agent on Open VZ (or similar system)
Added by Nicolas CHARLES over 10 years ago.
Updated over 8 years ago.
Description
As reported by Alex in #4498, the init script is too eager in its agent killing
# Presence of PID file
# If the pid file is not readable or is empty, kill all process by name
if [ ! -r ${CFENGINE_COMMUNITY_PID_FILE[$daemon]} -o ! -s ${CFENGINE_COMMUNITY_PID_FILE[$daemon]} ]
then
# Try a killall
/usr/bin/killall -KILL ${CFENGINE_COMMUNITY_BIN[$daemon]}
On a openvz system, it would simply wipe all the daemon running
We should implement a similar fix as in http://www.rudder-project.org/redmine/issues/3928 / https://github.com/Normation/rudder-packages/pull/211/files to detect if its a VZ system, and kill only the relevant deamon
(as vzps.py is present only in 2.8, i'm targeting this ticket to 2.8)
- Project changed from Rudder to 34
- Target version changed from 2.8.3 to 2.8.4
- Target version changed from 2.8.4 to 133
- Target version changed from 133 to 2.9.5
- Target version changed from 2.9.5 to 2.9.6
- Target version changed from 2.9.6 to 2.9.7
- Target version changed from 2.9.7 to 150
- Target version changed from 150 to 2.10.4
- Target version changed from 2.10.4 to 2.6.18
- Target version changed from 2.6.18 to 2.10.5
- Target version changed from 2.10.5 to 2.10.6
- Target version changed from 2.10.6 to 2.10.7
- Target version changed from 2.10.7 to 2.10.8
- Target version changed from 2.10.8 to 2.10.9
- Target version changed from 2.10.9 to 2.11.6
Support for vzps is in branhc 2.11, so this ticket should be fixed in 2.11
- Assignee set to Benoît PECCATTE
- Target version changed from 2.11.6 to 2.11.7
- Target version changed from 2.11.7 to 2.11.8
- Target version changed from 2.11.8 to 2.11.9
- Project changed from 34 to Rudder
- Category set to Packaging
- Target version changed from 2.11.9 to 2.11.10
- Target version changed from 2.11.10 to 2.11.11
- Target version changed from 2.11.11 to 2.11.12
- Target version changed from 2.11.12 to 2.11.13
- Target version changed from 2.11.13 to 2.11.14
- Target version changed from 2.11.14 to 2.11.15
- Target version changed from 2.11.15 to 2.11.16
- Target version changed from 2.11.16 to 2.11.17
- Target version changed from 2.11.17 to 2.11.18
- Target version changed from 2.11.18 to 2.11.19
- Related to Bug #7381: Process management issues on nodes hosting LXC containers added
- Status changed from New to In progress
- Assignee changed from Benoît PECCATTE to Alexis Mousset
- Status changed from In progress to Pending technical review
- Pull Request set to https://github.com/Normation/rudder-packages/pull/879
- Assignee changed from Alexis Mousset to Benoît PECCATTE
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.11.19, 3.0.14, 3.1.8 and 3.2.1 which were released today.
Also available in: Atom
PDF