Project

General

Profile

Actions

Bug #9361

closed

/usr/share/ncf/tree/30_generic_methods/file_from_template_jinja2.cf prevents Rudder to generate promises when CFEngine Enterprise is installed

Added by David Svejda over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
-
Target version:
-
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Clouseau_ | ok, I've upgraded to 3.2.9 and I'm still hitting the same issue as on Monday with 3.2.8
Clouseau_ | error: There are syntax errors in policy files<-/var/rudder/ncf/common/30_generic_methods/file_from_template_jinja2.cf:73:69: error: Unknown function<- "state_dumped" expression => dumpdatastate("${datastate_file}");<-
Clouseau_ | any ideas?
ncharles | Hi Clouseau_
ncharles | hum
Clouseau_ | ciao ncharles
ncharles | this should not happen
ncharles | Workaround: you can remove /usr/share/ncf/tree/30_generic_methods/file_from_template_jinja2.cf
ncharles | My guess is that we load this file based on the agent capabilities
ncharles | but on the Rudder server, you have Rudder agent + enterprise agent
ncharles | Enterprise agent don't have same capability
ncharles | and it fail
Clouseau_ | apart from removing /usr/share/ncf/tree/30_generic_methods/file_from_template_jinja2.cf
Clouseau_ | shall I do something else? 'cause it doesn't help so far
Clouseau_ | still the same error
ncharles | rudder agent update && rudder agent run
Clouseau_ | it works, thanks
Clouseau_ | I've been running only rudder agent run

This is from the webbapp.log

[2016-10-13 16:26:10] ERROR com.normation.rudder.batch.AsyncDeploymentAgent$DeployerAgent - Error when updating policy, reason Cannot write configuration node <- The generated promises are invalid!errormessage!cf-promise check fails for promises generated at '/var/rudder/share/
66ae7c18-641a-4b75-8606-e90ccb450f82/share/ffffffff-193d-0000-0293-a74ae7000000/rules.new/cfengine-nova'<-Command to check generated promises is: '/var/cfengine/bin/cf-promises f /var/rudder/share/66ae7c18-641a-4b75-8606-e90ccb450f82/share/ffffffff-193d-0000-0293-a74ae7000000/
rules.new/cfengine-nova/promises.cf'<
error: There are syntax errors in policy files<-/var/rudder/ncf/common/30_generic_methods/file_from_template_jinja2.cf:73:69: error: Unknown function<- "state_dumped" expression => dumpdatastate("${datastate_file}");<-
^


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #9359: Agent capabilities should be per agent, and not per nodeReleasedNicolas CHARLESActions
Actions #1

Updated by Nicolas CHARLES over 7 years ago

  • Related to Bug #9359: Agent capabilities should be per agent, and not per node added
Actions #2

Updated by François ARMAND over 7 years ago

Thanks for reporting.

Actions #3

Updated by Nicolas CHARLES over 7 years ago

  • Status changed from New to Rejected

David,

I'm rejecting this ticket as duplicate of #9359, which solves the underlying issue.

Thank you !

Actions

Also available in: Atom PDF