Project

General

Profile

Actions

Bug #21100

closed

When cf-serverd starts it can kill an unrelated process

Added by Benoît PECCATTE 7 months ago. Updated about 2 months ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Regression:
No

Description

This is due to a race condition in the lock handling:
- cfengine interprocess locks are stored in lmdb
- when cf-serverd starts, it holds a lock and releases it on stop
- when it restarts, it checks this lock and if it expired, it tries to kill the owning process
- sometime with pid turnover, it can be possible that this pid has been reused by another process in the meantime

We should add a check to make sure we only ever kill cfengine processes

Actions #1

Updated by Benoît PECCATTE 7 months ago

  • Target version changed from 6.2.14 to 6.1.20
Actions #2

Updated by Benoît PECCATTE 7 months ago

  • Status changed from New to In progress
  • Assignee set to Benoît PECCATTE
Actions #3

Updated by Benoît PECCATTE 7 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Félix DALLIDET
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/2597
Actions #5

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 6.1.20 to 6.1.21
Actions #6

Updated by Vincent MEMBRÉ 5 months ago

  • Target version changed from 6.1.21 to 6.1.22
Actions #7

Updated by Benoît PECCATTE 3 months ago

  • Pull Request changed from https://github.com/Normation/rudder-packages/pull/2597 to https://github.com/Normation/rudder-packages/pull/2665
Actions #8

Updated by Benoît PECCATTE 3 months ago

  • Target version changed from 6.1.22 to 6.2.20
  • Regression set to No
Actions #9

Updated by Benoît PECCATTE 2 months ago

  • Status changed from Pending technical review to Pending release
Actions #10

Updated by Vincent MEMBRÉ about 2 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.2.20, 7.1.7 and 7.2.1 which were released today.

Actions

Also available in: Atom PDF