Actions
Bug #11836
closedsharedfile_to_node reports repaired even if it fails
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Priority:
65
Name check:
Fix check:
Regression:
Description
NCF sharedfile_to_node not working on cleanly installed 4.1.8 on SLES11.
See this trivial example:
testclient:/var/rudder/cfengine-community/inputs # cat test/1.0/test.cf # @name test # @description # @version 1.0 bundle agent test { vars: "class_prefix" string => canonify(join("_", "this.callers_promisers")); methods: "method_call" usebundle => sharedfile_to_node("${g.uuid}", "rootfile", "/root/file", "365d"), ifvarclass => concat("any"); "method_call" usebundle => sharedfile_from_node("${g.uuid}", "rootfile", "/root/file.2"), ifvarclass => concat("any"); }
Apache error logs show:
[Wed Dec 06 13:15:35 2017] [error] [client testclient] client denied by server configuration: /srv/www/shared-files [Wed Dec 06 13:15:36 2017] [error] [client testclient] client denied by server configuration: /srv/www/shared-files [Wed Dec 06 13:15:37 2017] [error] [client testclient] client denied by server configuration: /srv/www/shared-files [Wed Dec 06 13:15:37 2017] [error] [client testclient] client denied by server configuration: /srv/www/shared-files [Wed Dec 06 13:15:41 2017] [error] [client testclient] client denied by server configuration: /srv/www/shared-files [Wed Dec 06 13:15:41 2017] [error] [client testclient] client denied by server configuration: /srv/www/shared-files [Wed Dec 06 13:15:47 2017] [error] [client testclient] client denied by server configuration: /srv/www/shared-files [Wed Dec 06 13:15:47 2017] [error] [client testclient] client denied by server configuration: /srv/www/shared-files
Apparently this is due to the Documentroot it has:
testserver:/opt/rudder/etc # grep srv/www * rudder-apache-relay-common.conf:DocumentRoot /srv/www
Could you please check if you could reproduce it? :-/
Actions