Actions
Bug #8710
closedCannot read ncf inputs due to duplicated path
Status:
Rejected
Priority:
N/A
Assignee:
Category:
System techniques
Target version:
Pull Request:
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});
Actions