Project

General

Profile

Actions

Bug #4499

closed

Rudder init script kill all agent on Open VZ (or similar system)

Added by Nicolas CHARLES about 10 years ago. Updated about 8 years ago.

Status:
Released
Priority:
1
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

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 2 (0 open2 closed)

Related to Rudder - Bug #4498: Several issues with process management on Proxmox host (and container)RejectedActions
Related to Rudder - Bug #7381: Process management issues on nodes hosting LXC containersReleasedAlexis MoussetActions
Actions

Also available in: Atom PDF