Bug #3432
closed
Duplicate selection of value for variable "execRun" in scope g
Added by Dennis Cabooter over 11 years ago.
Updated over 10 years ago.
Category:
System techniques
Description
On all nodes I see the following in syslog:
!! Duplicate selection of value for variable "execRun" in scope g
!! Rule from /var/rudder/cfengine-community/inputs/common/1.0/site.cf at/before line 58
I created the following patch to solve this:
--- /var/rudder/cfengine-community/inputs/common/1.0/site.cf.orig 2013-04-12 11:54:44.345172104 +0200
+++ /var/rudder/cfengine-community/inputs/common/1.0/site.cf 2013-04-12 11:55:12.966302242 +0200
@@ -38,7 +38,8 @@
"escaped_workdir" string => escape("$(sys.workdir)");
# The time at which the execution started
- "execRun" string => execresult("\"${g.rudder_sbin}\getDate.bat\"", "noshell");
+ "execRun" string => execresult("\"${g.rudder_sbin}\getDate.bat\"", "noshell"),
+ policy => "overridable";
windows.!cygwin::
"uuid_file" string => "${rudder_base}\etc\uuid.hive";
@@ -55,7 +56,8 @@
"crontab" string => "/etc/crontab";
# The time at which the execution started
- "execRun" string => execresult("/bin/date --rfc-3339=second", "noshell");
+ "execRun" string => execresult("/bin/date --rfc-3339=second", "noshell"),
+ policy => "overridable";
any::
"uuid" string => readfile("$(g.uuid_file)", 60);
- Target version changed from 2.5.2 to 2.5.3
- Category set to System techniques
- Assignee set to Matthieu CERDA
- Target version changed from 2.5.3 to 2.3.12
Matthieu,
could you apply the modifications ?
Thanks
- Status changed from New to 8
- Priority changed from N/A to 4
- Status changed from 8 to Discussion
- Assignee changed from Matthieu CERDA to Dennis Cabooter
I just tested this, and I have noticed that these warning messages only appear if running cf-agent with the "-I" option.
Unfortunately, the workaround above does not fix this. That is, running cf-agent with -I, I still get the warning messages, even with "policy => overridable". I also never see this in syslog output, only in the interactive agent output.
Dennis, are you sure you saw this in syslog?
As far as I can remember I only see the warnings if I perform a "/var/rudder/cfengine-community/bin/cf-agent -KI". On my system the warning disappeared after adding "policy => overridable".
Dennis Cabooter wrote:
As far as I can remember I only see the warnings if I perform a "/var/rudder/cfengine-community/bin/cf-agent -KI". On my system the warning disappeared after adding "policy => overridable".
Right, so it is indeed linked to the "-I" option of cf-agent.
However, I cannot reproduce this fix. When I add policy => overridable, I still get the error messages :-(
- Target version changed from 2.3.12 to 2.3.13
- Target version changed from 2.3.13 to 84
- Target version changed from 84 to 2.4.7
- Target version changed from 2.4.7 to 2.4.8
- Target version changed from 2.4.8 to 2.4.9
- Target version changed from 2.4.9 to 2.4.10
- Target version changed from 2.4.10 to 2.4.11
- Target version changed from 2.4.11 to 2.4.12
- Target version changed from 2.4.12 to 2.4.13
- Target version changed from 2.4.13 to 2.6.11
Since 2.4 is not maintained anymore, retargeting to branch 2.6
- Status changed from Discussion to Rejected
Also available in: Atom
PDF