Project

General

Profile

Actions

Bug #7240

closed

The rudder_var path on Solaris is incorrect

Added by Matthieu CERDA about 9 years ago. Updated almost 9 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Running cf-agent on Solaris yields:

bash-3.2# /var/rudder/cfengine-community/bin/cf-agent -KI
   error: Can't stat file '/var/rudder/ncf/common/10_ncf_internals/list-compatible-inputs: /var/rudder/ncf/common/10_ncf_internals/list-compatible-inputs: cannot open' for parsing. (stat: No such file or directory)
   error: Policy failed validation with command '"/var/rudder/cfengine-community/bin/cf-promises" -c "/var/rudder/cfengine-community/inputs/promises.cf"'

The error comes from the fact that in failsafe.cf, rudder_var is:

    solaris::
      "rudder_var"               string => "/opt/rudder/var";

But in promises.cf, the condition is:

    !android.!windows::
      "rudder_var"     string => "/var/rudder";

Rudder tries to find list-compatible-inputs in the wrong place, and fails miserably.

Actions

Also available in: Atom PDF