Project

General

Profile

Bug #7100

Launching twice in a row a disabled agent make the agent runs

Added by Nicolas CHARLES over 5 years ago. Updated over 4 years ago.

Status:
Released
Priority:
1
Category:
System techniques
Target version:
Severity:
User visibility:
Effort required:
Priority:

Description

If /opt/rudder/etc/disable-agent is set, the agent is supposed to suicide itself
However, locking can get in the way, and if cf-agent is launch twice in a row, the first run locks the promise that check for the file, and the second run will hapilly ignore this file....


Subtasks

Bug #8434: Syntaxt error in promise.stReleasedNicolas CHARLES2016-06-01Actions
#1

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.17 to 2.10.18
#2

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.18 to 2.10.19
#3

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.19 to 2.10.20
#4

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 2.10.20 to 277
#5

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 277 to 2.11.18
#6

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 2.11.18 to 2.11.19
#7

Updated by Alexis MOUSSET about 5 years ago

The Rudder cli CFEngine wrapper added in 3.1 and 3.2 checks this file before calling CFEngine (to be able to display a clear error message, and avoid a fatal error), and this issue cannot happen.

Still valid for 2.11 and 3.0.

#8

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 2.11.19 to 2.11.20
#9

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 2.11.20 to 2.11.21
#10

Updated by Jonathan CLARKE almost 5 years ago

  • Status changed from New to In progress
  • Assignee set to Jonathan CLARKE
#11

Updated by Jonathan CLARKE almost 5 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Jonathan CLARKE to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/940
#12

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 2.11.21 to 2.11.22
#13

Updated by Jonathan CLARKE almost 5 years ago

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

Updated by Vincent MEMBRÉ over 4 years ago

  • Subject changed from When the file /opt/rudder/etc/disable-agent is set, running twice in a row cf-agent (without any prameters) override the disabling to Launching twice in a row a disabled agent make the agent runs
#15

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.22, 3.0.17, 3.1.11 and 3.2.4 which were released today.

Also available in: Atom PDF