Project

General

Profile

Bug #6768

Sometimes, promises get corrupted to the point they can't be automatically repaired on a node

Added by Nicolas CHARLES almost 5 years ago. Updated almost 5 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
User visibility:
Effort required:
Priority:

Description

Sometimes, for some unknown reasons, promises get corrupted (files are not there) on the node.

A workaround to restore the situation is to add a step in check_rudder_agent script that would:
- check if failsafe.cf, promises.cf and common/1.0/update.cf are there and non empty
- if they are there, do nothing
- if not, copy from /opt/rudder/share/initial-promises to /var/rudder/cfengine-community/inputs, and execute then cf-agent -Kf failsafe.cf && cf-agent

The rational is:
  • if any of these file is empty, nothing can work at all
  • running cf-promises can be ressource intensive, so running it always is not a so great idea
  • if these files are empty, then the failsafe has just be run, so the -K is mandatory. The cf-agent was not run recently (valid promises are more than 5 minutes old), so no need of -K for that

Subtasks

Bug #6769: check-rudder-agent correction doesn't work on AIXReleased2015-06-18Nicolas CHARLESActions
#1

Updated by Benoît PECCATTE almost 5 years ago

  • Status changed from New to In progress
#2

Updated by Benoît PECCATTE almost 5 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/687
#3

Updated by Benoît PECCATTE almost 5 years ago

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

Updated by Vincent MEMBRÉ almost 5 years ago

This bug has been fixed in Rudder 2.10.15, 2.11.12, 3.0.7 and 3.1.0 which were released today.

#6

Updated by Vincent MEMBRÉ almost 5 years ago

  • Status changed from Pending release to Released

Also available in: Atom PDF