Project

General

Profile

Actions

Bug #17628

closed

policy generation fails if we put a " in the directive name

Added by Nicolas CHARLES almost 4 years ago. Updated almost 4 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Compliance & node report
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

⇨  Unexpected: Error when executing hooks:
 Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. [stdout:][stderr:/var/rudder/share/94b6d33d-a23e-46b9-b5f8-971751bebcbb/rules.new/cfengine-community/rudder-directives.cf:624:109: error: syntax error
      "Setup variable for production servers/Other admin packages "" usebundle => rudder_reporting_context("16617aa8-1f02-4e4a-87b6-d0bcdfb4019f","6d03ba08-a109-4d...] (for node(s) 94b6d33d-a23e-46b9-b5f8-971751bebcbb)
 Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. [stdout:][stderr:/var/rudder/share/45e6f9a8-1cf8-47d4-aa52-2a2f7607da3b/rules.new/cfengine-community/rudder-directives.cf:613:109: error: syntax error
Actions #1

Updated by Nicolas CHARLES almost 4 years ago

same with trailing backslash

Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. [stdout:][stderr:/var/rudder/share/b195b889-3fb2-41f1-b84c-041d9c6d861a/rules.new/cfengine-community/rudder-directives.cf:38:104: error: Unknown attribute '7bcb8a0d' for promise type 'methods' in bundle with type 'agent'
      "Global configuration for all nodes/plif plouf \" usebundle => rudder_reporting_context...] (for node(s) b195b889-3fb2-41f1-b84c-041d9c6d861a)
Actions #2

Updated by Nicolas CHARLES almost 4 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #3

Updated by Nicolas CHARLES almost 4 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/3049
Actions #4

Updated by Nicolas CHARLES almost 4 years ago

note that test ensured that it was invalid

Actions #5

Updated by Nicolas CHARLES almost 4 years ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by Vincent MEMBRÉ almost 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.0.7 and 6.1.1 which were released today.

Actions

Also available in: Atom PDF