Project

General

Profile

Actions

Bug #12758

closed

Bug #12754: No reports on dsc only techniques on a Linux Node

Invalid policies generated when using an ncf Technique with generic method non compatible with the agent

Added by Nicolas CHARLES over 6 years ago. Updated over 6 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Technique editor
Target version:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

If I generate a Technique with only generic method for DSC, and apply it on node with a classic agent, I get the following error message


⇨ Policy update error for process '16' at 2018-06-07 15:59:21
⇨ Cannot write configuration node
⇨ Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. stdout: stderr: '/var/rudder/cfengine-community/inputs.new/rudder-directives.cf:41:0: error: Undefined bundle DSC_only_rudder_reporting with type usebundle ' ; Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. stdout: stderr: '/var/rudder/share/84bf5c73-5566-45a5-8953-b6552f482288/rules.new/cfengine-community/rudder-directives.cf:41:0: error: Undefined bundle DSC_only_rudder_reporting with type usebundle '

Indeed, there is no such bundle in generated policies, but it does exists in /var/rudder/configuration-repository/techniques/ncf_techniques/DSC_only/1.0/rudder_reporting.cf

Actions

Also available in: Atom PDF