Forum: CFEngine Help Subject: Debugging odd warning message Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23353,23353#msg-23353
Anyone happen to know what this message means? cf3 !! Out of variable allocation in context "harden_vars" cf3 !! Out of variable allocation in context "harden_vars" cf3 -> Checking common class promises... cf3 !! Out of variable allocation in context "this" cf3 !! Out of variable allocation in context "this" I'm getting it all over the place on some AIX systems running 3.1.4. The whole harden_vars bundle looks like this: bundle common harden_vars { vars: has_passwd_combined&!cfengine_3_0:: "account_count" int => readstringarray("account_array", "$(g.passwd_combined)", "", ":", "inf", "inf"); classes: "harden_has_accounts" expression => isgreaterthan("$(account_count)", "0"); } The "has_passwd_combined" class is set if the g.passwd_combined file exists (generated by a script that merges the available LDAP users and local users into one file), and I have to do !cfengine_3_0 to avoid some weird file reading behavior in my remaining 3.0.5 systems. Anyway, there have been a number of problems with this cfengine file. I was getting a bunch of "constant list redefined" issues before when I had this in another bundle (which currently looks like this): harden_has_accounts:: "accounts" slist => getindices("harden_vars.account_array"), policy => "free"; until I set the policy to free. Which is weird, since I have a bundle - harden_vars - and another bundle. Those two bundles are referenced (in the right order) under a methods: section of a higher-level bundle. Everything does ultimately work, but cf-agent/cf-promises complains a lot. "A lot" like, the above cryptic message is repeated ~4000 times per run, and this fills up my outputs directory. I don't want to report a bug until I know I'm not doing something wrong. So I'm hoping someone more familiar with the underlying code can better elucidate what the error message is actually trying to communicate to me, allowing me to better track down what's going on. :) _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine