Bug #4494
closed
Accumulation of cf-agent processes due to locking on CFEngine tcdb lock file
Added by Nicolas CHARLES almost 11 years ago.
Updated over 9 years ago.
Category:
Web - Config management
Description
Sometimes, agents get stuck because they all try to lock /var/rudder/cfengine-community/state/cf_lock.tcdb.lock, resulting in a deadlock
In #3928, we implemented a workaround based on the number of agent running, to kill them all if necessary, but here we'll check the age of
/var/rudder/cfengine_community/last_successful_inputs_update
If it is older than 10 minutes, then the agent is stuck, and we kill the .lock file
It happens mainly with cfengine 3.5.x, so targeting to Rudder 2.8
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Jonathan CLARKE
- Pull Request set to https://github.com/Normation/rudder-packages/pull/223
- Assignee changed from Jonathan CLARKE to Nicolas CHARLES
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset packages:commit:73b07fdcb42e49a17f32275229feaedbdd257f1c.
Applied in changeset packages:commit:df74f7b8232514f01f56fdb880d4c3fe4c41d887.
- Status changed from Pending release to Discussion
- Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ
A syntax error in the script prevent installation of rudder-agent:
/opt/rudder/bin/check-rudder-agent: 68: Syntax error: "elif" unexpected
Setting up rudder-inventory-ldap (2.8.3~rc1~git201402240715-squeeze0) ...
dpkg: error processing rudder-agent (--configure):
subprocess installed post-installation script returned error exit status 2
If block needs a command before elif and there is not. adding ':' ("do nothing" in bash, alias to 'true') fix the issue
- Status changed from Discussion to Pending technical review
- Assignee changed from Vincent MEMBRÉ to Jonathan CLARKE
- Pull Request changed from https://github.com/Normation/rudder-packages/pull/223 to https://github.com/Normation/rudder-packages/pull/228
- Status changed from Pending technical review to Pending release
Applied in changeset packages:commit:db4524e1ae306973e9532c72fb24e84384e9e62b.
Applied in changeset packages:commit:c7488cb738e1f151d17c0cdd8d283194ebe8bb69.
- Subject changed from Accumulation of agent due to locking on /var/rudder/cfengine-community/state/cf_lock.tcdb.lock to Accumulation of agent due to locking on CFEngine tcdb lock file
- Category changed from 13 to 14
- Subject changed from Accumulation of agent due to locking on CFEngine tcdb lock file to Accumulation of cf-agent processes due to locking on CFEngine tcdb lock file
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.8.3, which was released today.
Check out:
- Category changed from 14 to Web - Config management
Also available in: Atom
PDF