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 #1

Updated by Vincent MEMBRÉ over 10 years ago

  • Status changed from New to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to Matthieu CERDA
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/169
Actions #2

Updated by Matthieu CERDA over 10 years ago

Validated and merged.

Actions #3

Updated by Matthieu CERDA over 10 years ago

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

Done in commit commit:80ca1a6ccf34d7fa13477f3909413abd44162936

Actions #4

Updated by Nicolas PERRON over 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.6.4, which was released today.
Check out:

Actions #5

Updated by Benoît PECCATTE about 9 years ago

  • Project changed from 24 to Rudder
  • Category changed from Techniques to Techniques
Actions

Also available in: Atom PDF