Project

General

Profile

Actions

Bug #4915

closed

Rudder init script may not correctly initialize policy_server.dat file, resulting in a non functionning Rudder server

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

Status:
Released
Priority:
1
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

When the rudder-server-root is installed, it is possible to have promises there, but no policy_server.dat
My main guess is that :
  1. user install rudder-server-root
  2. user waits a bit, the webapp start (and may generate promises
  3. user runs init script, and say "no" to reset initial promises

The init script check the presence of promises by

INITREP=/var/rudder/cfengine-community/inputs
INITPRO=`ls ${INITREP} 2>/dev/null | wc -l`

and based on this condition, do no write by default the /var/rudder/cfengine_community/policy_server.dat

The script should not leave the server in a broken state, and always check if the file is there. If not, create it.

Actions

Also available in: Atom PDF