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

Also available in: Atom PDF