Project

General

Profile

Actions

Bug #3849

closed

Promises are not updated when running agent too often (< 5 minutes beteween 2 executions)

Added by Vincent MEMBRÉ over 10 years ago. Updated about 9 years ago.

Status:
Released
Priority:
1
Assignee:
Matthieu CERDA
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Sometimes, you need your node to apply new promises fast and don't want to wait until agent execution, so you run the agent manually using cf-agent -K -f failsafe.cf to update the node promises.

But the promises are not updated, only the timestamp file (rudder_promises_generated) is updated :

 -> Updated /var/rudder/cfengine-community/inputs/rudder_promises_generated from source /var/rudder/share/da78aeee-5869-4482-9875-2de78d3d9102/rules/cfengine-community/rudder_promises_generated on myserverRudder

when looking to pomise file, there is no updates on them, they still got old values.

Waiting a little longer, to be at least 5 minute later, and running again the failsafe update the promises :

 -> Updated /var/rudder/cfengine-community/inputs/checkGenericFileContent/3.2/checkGenericFileContent.cf from source /var/rudder/share/da78aeee-5869-4482-9875-2de78d3d9102/rules/cfengine-community/checkGenericFileContent/3.2/checkGenericFileContent.cf on myserverRudder

This is due to a persistent classes before the promises update :

    rudder_promises_generated_repaired.!config.!config_ok.!root_server::

config and config_ok are persistent classes (for 4 minutes) which means that there can be no update in this for 4 for minutes

remove those class checks should fiw this.

Actions

Also available in: Atom PDF