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 over 8 years ago. Updated about 8 years ago.

Status:
Released
Priority:
1
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 #1

Updated by Alexis Mousset over 8 years ago

  • Related to User story #7424: Add cfengine classes for each group of a node added
Actions #2

Updated by Alexis Mousset over 8 years ago

  • Description updated (diff)
Actions #3

Updated by Alexis Mousset over 8 years ago

  • Assignee set to Vincent MEMBRÉ
Actions #4

Updated by Vincent MEMBRÉ over 8 years ago

  • Status changed from New to In progress
Actions #5

Updated by Vincent MEMBRÉ over 8 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
Actions #6

Updated by Vincent MEMBRÉ over 8 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #8

Updated by Vincent MEMBRÉ over 8 years ago

  • Related to deleted (User story #7424: Add cfengine classes for each group of a node)
Actions #9

Updated by Vincent MEMBRÉ over 8 years ago

  • Parent task set to #7424
Actions #10

Updated by Benoît PECCATTE about 8 years ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF