Bug #4499
Rudder init script kill all agent on Open VZ (or similar system)
Effort required:
Priority:
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)
Related issues
Updated by Nicolas CHARLES about 6 years ago
- 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
Updated by Benoît PECCATTE almost 6 years ago
- Project changed from packages to Rudder
- Category set to Packaging
Updated by Alexis MOUSSET about 5 years ago
- Related to Bug #7381: Process management issues on nodes hosting LXC containers added
Updated by Alexis MOUSSET about 5 years ago
- Status changed from New to In progress
- Assignee changed from Benoît PECCATTE to Alexis MOUSSET
Updated by Alexis MOUSSET about 5 years ago
- Status changed from In progress to Pending technical review
- Pull Request set to https://github.com/Normation/rudder-packages/pull/879
Updated by Alexis MOUSSET about 5 years ago
- Assignee changed from Alexis MOUSSET to Benoît PECCATTE
Updated by Alexis MOUSSET about 5 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-packages|653fcae53c68044e0703cfcea0dfb7b38e98e887.
Updated by Vincent MEMBRÉ almost 5 years ago
- Status changed from Pending release to Released