Project

General

Profile

Actions

Bug #6768

closed

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

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

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

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 1 (0 open1 closed)

Bug #6769: check-rudder-agent correction doesn't work on AIXReleasedNicolas CHARLES2015-06-18Actions
Actions #1

Updated by Benoît PECCATTE almost 9 years ago

  • Status changed from New to In progress
Actions #2

Updated by Benoît PECCATTE almost 9 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
Actions #3

Updated by Benoît PECCATTE almost 9 years ago

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

Updated by Vincent MEMBRÉ almost 9 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.

Actions #6

Updated by Vincent MEMBRÉ almost 9 years ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF