Project

General

Profile

Actions

Bug #7647

closed

User story #7424: Add cfengine classes for each group of a node

CFEngine does not parse group classes with uuid

Added by Alexis Mousset almost 9 years ago. Updated almost 9 years ago.

Status:
Released
Priority:
1 (highest)
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Rudder gives the "group_beb6b108-eae0-4554-888a-9bc7052431d8" class, but when using it as class condition in the technique editor, it breaks the policies:

cf-promise check fails for promises generated at '/var/rudder/share/5d8edf20-22b9-45ee-b616-92acfdcfdf1a/rules.new/cfengine-community'
⇨ Command to check generated promises is: '/var/rudder/cfengine-community/bin/cf-promises -f /var/rudder/share/5d8edf20-22b9-45ee-b616-92acfdcfdf1a/rules.new/cfengine-community/promises.cf'
⇨ /var/rudder/share/5d8edf20-22b9-45ee-b616-92acfdcfdf1a/rules.new/cfengine-community/test_ncf/1.0/rudder_reporting.cf:9:5: error: syntax error
⇨ !(any.group_beb6b108-eae0-4554-888a-9bc7052431d8)::
⇨ ^
⇨ /var/rudder/share/5d8edf20-22b9-45ee-b616-92acfdcfdf1a/rules.new/cfengine-community/test_ncf/1.0/rudder_reporting.cf:9:5: error: Expected promiser string, got '!'
⇨ !(any.group_beb6b108-eae0-4554-888a-9bc7052431d8)::
⇨ ^
⇨ /var/rudder/share/5d8edf20-22b9-45ee-b616-92acfdcfdf1a/rules.new/cfengine-community/test_ncf/1.0/rudder_reporting.cf:9:6: error: Expected ';', got '('
⇨ !(any.group_beb6b108-eae0-4554-888a-9bc7052431d8)::

The problem is the "-", CFEngine doc says:

CFEngine built-in words, names of variables, bundles, body templates and classes may only contain the usual alphanumeric and underscore characters (a-zA-Z0-9_)

Subtasks 1 (0 open1 closed)

Bug #7673: Fixes test after fixes on rudder-groupsReleasedNicolas CHARLES2015-12-21Actions
Actions

Also available in: Atom PDF