Project

General

Profile

Actions

Bug #4499

closed

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

Added by Nicolas CHARLES almost 11 years ago. Updated over 8 years ago.

Status:
Released
Priority:
1 (highest)
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 #1

Updated by Nicolas CHARLES almost 11 years ago

  • Project changed from Rudder to 34
Actions #2

Updated by Vincent MEMBRÉ almost 11 years ago

  • Target version changed from 2.8.3 to 2.8.4
Actions #3

Updated by Vincent MEMBRÉ almost 11 years ago

  • Target version changed from 2.8.4 to 133
Actions #4

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 133 to 2.9.5
Actions #5

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.9.5 to 2.9.6
Actions #6

Updated by Jonathan CLARKE over 10 years ago

  • Target version changed from 2.9.6 to 2.9.7
Actions #7

Updated by Jonathan CLARKE over 10 years ago

  • Target version changed from 2.9.7 to 150
Actions #8

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 150 to 2.10.4
Actions #9

Updated by Nicolas PERRON over 10 years ago

  • Target version changed from 2.10.4 to 2.6.18
Actions #10

Updated by Nicolas PERRON over 10 years ago

  • Target version changed from 2.6.18 to 2.10.5
Actions #11

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.10.5 to 2.10.6
Actions #12

Updated by Matthieu CERDA about 10 years ago

  • Target version changed from 2.10.6 to 2.10.7
Actions #13

Updated by Vincent MEMBRÉ about 10 years ago

  • Target version changed from 2.10.7 to 2.10.8
Actions #14

Updated by Vincent MEMBRÉ about 10 years ago

  • Target version changed from 2.10.8 to 2.10.9
Actions #15

Updated by Nicolas CHARLES almost 10 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

Actions #16

Updated by Nicolas CHARLES almost 10 years ago

  • Assignee set to Benoît PECCATTE
Actions #17

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.11.6 to 2.11.7
Actions #18

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.11.7 to 2.11.8
Actions #19

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.11.8 to 2.11.9
Actions #20

Updated by Benoît PECCATTE almost 10 years ago

  • Project changed from 34 to Rudder
  • Category set to Packaging
Actions #21

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.11.9 to 2.11.10
Actions #22

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.11.10 to 2.11.11
Actions #23

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.11.11 to 2.11.12
Actions #24

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.11.12 to 2.11.13
Actions #25

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.11.13 to 2.11.14
Actions #26

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.11.14 to 2.11.15
Actions #27

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.11.15 to 2.11.16
Actions #28

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.11.16 to 2.11.17
Actions #29

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.11.17 to 2.11.18
Actions #30

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 2.11.18 to 2.11.19
Actions #31

Updated by Alexis Mousset almost 9 years ago

  • Related to Bug #7381: Process management issues on nodes hosting LXC containers added
Actions #32

Updated by Alexis Mousset almost 9 years ago

  • Status changed from New to In progress
  • Assignee changed from Benoît PECCATTE to Alexis Mousset
Actions #33

Updated by Alexis Mousset almost 9 years ago

  • Status changed from In progress to Pending technical review
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/879
Actions #34

Updated by Alexis Mousset almost 9 years ago

  • Assignee changed from Alexis Mousset to Benoît PECCATTE
Actions #35

Updated by Alexis Mousset almost 9 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #36

Updated by Vincent MEMBRÉ over 8 years ago

  • 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.

Actions

Also available in: Atom PDF