Project

General

Profile

Bug #12220

if we have syntax error in policies on the Rudder server, rudder agent check says that all is fine

Added by Nicolas CHARLES 9 months ago. Updated 8 months ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

Description

I hacked my policies to break them (adding bli at the begining)
Running rudder agent check outputs

/var/rudder/cfengine-community/inputs/promises.cf:24:3: error: syntax error
bli
  ^
/var/rudder/cfengine-community/inputs/promises.cf:24:3: error: Expected 'bundle' or 'body' keyword, wrong input 'bli'
bli
  ^
   error: There are syntax errors in policy files
ok: Rudder agent check ran without errors.

and policies are not fixed

Happens at least in 4.2, maybe in 4.1 also


Subtasks

Bug #12238: if we have syntax error in policies on the Rudder server, rudder agent check says that all is fineReleasedAlexis MOUSSET

Associated revisions

Revision 2ec5272b (diff)
Added by Benoît PECCATTE 9 months ago

Fixes #12220: if we have syntax error in policies on the Rudder server, rudder agent check says that all is fine

History

#1 Updated by Nicolas CHARLES 9 months ago

  • Subject changed from if we have syntax error in policies, rudder agent check says that all is fine to if we have syntax error in policies on the Rudder server, rudder agent check says that all is fine

#2 Updated by Benoît PECCATTE 9 months ago

  • Target version changed from 4.2.5 to 4.1.11

#3 Updated by Benoît PECCATTE 9 months ago

  • Status changed from New to In progress
  • Assignee set to Benoît PECCATTE

#4 Updated by Benoît PECCATTE 9 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Alexis MOUSSET
  • Pull Request set to https://github.com/Normation/rudder-agent/pull/169

#5 Updated by Benoît PECCATTE 9 months ago

  • Status changed from Pending technical review to Pending release

#6 Updated by Alexis MOUSSET 8 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.11, 4.2.5 and 4.3.0~rc3 which were released today.

Also available in: Atom PDF