Project

General

Profile

Actions

Bug #21678

closed

Bug #21686: generated policies are invalid when using a generic method that doesn't exist on linux

generated policies are invalid when using a generic method that doesn't exist on linux

Added by Nicolas CHARLES over 1 year ago. Updated over 1 year ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

⇨ Policy update error for process '20' at 2022-08-30 16:34:16 
⇨  Cannot write nodes configuration; cause was: Unexpected: Unexpected: Error when executing hooks:
 Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. [stdout:   error: There are syntax errors in policy files
][stderr:/var/rudder/cfengine-community/inputs.new/technique_2/1.0/rudder_reporting.cf:13:103: error: syntax error
                                                                              unless => concat(""false"");
                                                                                    ...] (for node(s) root)

offending code

    "774f32ad-f993-4926-8a8b-84920ba974ae_${report_data.directive_id}" usebundle => technique_2_gm_5("Package state windows", "vim", "774f32ad-f993-4926-8a8b-84920ba974ae", "'Package state windows' method is not available on Linux Rudder agent, skip", "vim", "${class_prefix}_package_state_windows_vim", @{args}),
                                                                              unless => concat(""false"");

Actions #1

Updated by Nicolas CHARLES over 1 year ago

  • Status changed from New to In progress
Actions #2

Updated by Nicolas CHARLES over 1 year 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/4460
Actions #3

Updated by Nicolas CHARLES over 1 year ago

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

Updated by Nicolas CHARLES over 1 year ago

  • Subtask #21686 added
Actions #5

Updated by Vincent MEMBRÉ over 1 year ago

  • Subtask deleted (#21686)
Actions #6

Updated by Vincent MEMBRÉ over 1 year ago

  • Parent task set to #21686
Actions #7

Updated by Vincent MEMBRÉ over 1 year ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.2.0~rc1 which was released today.

Actions

Also available in: Atom PDF