Project

General

Profile

Actions

Bug #8710

closed

Cannot read ncf inputs due to duplicated path

Added by Vincent MEMBRÉ over 8 years ago. Updated about 8 years ago.

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

Description

Path for inputs on master are prefixed two times by "/var/Rudder/ncf", which does not exists

root@server:~# rudder agent run -i
Rudder agent 3.2.4-jessie0 (CFEngine Core 3.7.1)
Node uuid: root
   error: Can't stat file '/var/rudder/ncf//var/rudder/ncf/common/10_ncf_internals/expand_configuration.cf' 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"'
   error: CFEngine was not able to get confirmation of promises from cf-promises, so going to failsafe

Remove ${ncf_path} when listing inputs, fixes the issue (like here in https://github.com/Normation/rudder-techniques/blob/master/techniques/system/common/1.0/promises.st#L138 )

 "raw_ncf_inputs" slist => maplist("${ncf_path}/${this}", @{raw_path_ncf_inputs});

Related issues 2 (0 open2 closed)

Related to Rudder - Bug #8792: Transient ncf error when updating from 3.1.10 to 3.1.12Rejected2016-07-29Actions
Related to Rudder - Architecture #9207: Transient policy error after upgrade, need to improve handling of policies update during server upgrade (rudder-upgrade vs. ncf vs. rudder-techniques)ResolvedActions
Actions

Also available in: Atom PDF