I'm getting the same messages with 3.0.3: Validation: Scalar item in restart_class => { start_cf_monitord } in rvalue is out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) Validation: Scalar item in restart_class => { start_cf_serverd } in rvalue is out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) Q: "...cf-serverd": Validation: Scalar item in restart_class => { start_cf_monitord } in rvalue is out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) Q: "...cf-serverd": Validation: Scalar item in restart_class => { start_cf_serverd } in rvalue is out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) I: Last 2 QUOTEed lines were generated by promiser "/var/cfengine/bin/cf-serverd" I: Made in version 'not specified' of '/var/cfengine/inputs/site.cf' near line 123
I checked the pattern matching at https://cfengine.com/inside/regexPcre. The pattern compiled with no errors, but when processing any of the strings (e.g. start_cf_serverd), I get an 'Undefined error'. Maybe this might be a hint of what's going wrong. Bernd From: Jim Lawson <jtl+cfeng...@uvm.edu> To: help-cfengine@cfengine.org Date: 13.01.2010 04:25 Subject: Validation error for restart_class rvalue Sent by: help-cfengine-boun...@cfengine.org Hi help-cfengine, I am just getting started with Cf3. I was fiddling with some of the examples using community 3.0.2. Since updating to 3.0.3 I have started seeing lots of messages like the following: Validation: Scalar item in restart_class => { startcfexecd } in rvalue is out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) This seems an odd message, since the rvalue appears to match that pattern just fine. In fact, the validation message appears on examples that ship with 3.0.3, e.g. if I run cf-promises on unit_update.cf, I get the errors: > cf3:./unit_update.cf:60,44: Scalar item in restart_class => { > start_exec } in rvalue is out of bounds (value should match pattern > [a-zA-Z0-9_$()\[\].]+), near token 'start_exec"' > cf3:./unit_update.cf:64,48: Scalar item in restart_class => { > start_server } in rvalue is out of bounds (value should match pattern > [a-zA-Z0-9_$()\[\].]+), near token 'start_server"' > cf3:./unit_update.cf:89,45: Constraint lvalue logstring is not allowed > in 'action' constraint body, near token ' -> Started the $(x) (success)"' > Validation: Scalar item in handle => { update_policy } in rvalue is > out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) > Validation: Scalar item in restart_class => { start_exec } in rvalue > is out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) > Validation: Scalar item in restart_class => { start_server } in rvalue > is out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) If I use restart_class => canonify("startcfexecd"), I can get past the errors, but I still get the validation warnings, which will be a nuisance if I run it on several machines. I am building under RHEL 5.4. Is anyone else seeing this? Jim _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine InterComponentWare AG: Vorstand: Peter Kirschbauer (Vors.), Jörg Stadler / Aufsichtsratsvors.: Prof. Dr. Christof Hettich Firmensitz: 69190 Walldorf, Industriestraße 41 / AG Mannheim HRB 351761 / USt.-IdNr.: DE 198388516
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine