Actions
Bug #7647
closedUser story #7424: Add cfengine classes for each group of a node
CFEngine does not parse group classes with uuid
Status:
Released
Priority:
1 (highest)
Assignee:
Category:
System techniques
Target version:
Pull Request:
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_)
Updated by Alexis Mousset about 9 years ago
- Related to User story #7424: Add cfengine classes for each group of a node added
Updated by Vincent MEMBRÉ about 9 years ago
- Status changed from New to In progress
Updated by Vincent MEMBRÉ about 9 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder/pull/1014
Updated by Vincent MEMBRÉ about 9 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder|4df394ceff699a9c2e8c10de20f75069a4d94d0e.
Updated by Benoît PECCATTE about 9 years ago
Applied in changeset rudder|bff3449f938f168f451298697fcc05b6e27f54e3.
Updated by Vincent MEMBRÉ about 9 years ago
- Related to deleted (User story #7424: Add cfengine classes for each group of a node)
Updated by Benoît PECCATTE almost 9 years ago
- Status changed from Pending release to Released
Updated by Benoît PECCATTE almost 9 years ago
This bug has been fixed in Rudder 3.2.0~rc2 which was released today.
Actions