Project

General

Profile

Actions

Enhancement #9576

open

Ensure that the python-jinja2 library is present

Added by Alexandre Anriot about 8 years ago. Updated almost 3 years ago.

Status:
New
Priority:
N/A
Category:
Generic methods
UX impact:
Suggestion strength:
Want - This would make my life a lot easier but I can manage without
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Name check:
Fix check:
Regression:

Description

Hello,

At the moment, the rendering of a Jinja2 template fails on a server without python-jinja2.

Could it be possible to add the library either:

- In the dependencies of the rudder-agent package ;
- Through a promise, when it's needed.

Thanks.

Actions #1

Updated by Jonathan CLARKE about 8 years ago

  • Project changed from Rudder to 41

Alexandre Anriot wrote:

Hello,

At the moment, the rendering of a Jinja2 template fails on a server without python-jinja2.

Could it be possible to add the library either:

- In the dependencies of the rudder-agent package ;

We'd rather avoid having rudder-agent depend on Python for just one generic method. We already require Perl (for the inventory), and would like to limit requirements.

- Through a promise, when it's needed.

This could be a good alternative. Maybe a call to package_present("python-jinja2") in the template jinja2 ncf method?

Actions #2

Updated by Alexis Mousset about 8 years ago

  • Category set to Generic methods
Actions #3

Updated by François ARMAND almost 8 years ago

  • Assignee set to Alexis Mousset
Actions #4

Updated by Alexis Mousset over 7 years ago

  • Target version set to 1.0
Actions #5

Updated by Alexis Mousset over 7 years ago

  • Target version changed from 1.0 to 1.1
Actions #6

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 1.1 to 4.1.9
Actions #7

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 4.1.9 to 4.1.10
Actions #8

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 4.1.10 to 4.1.11
Actions #9

Updated by Florian Heigl over 6 years ago

make it a -recommend for the package?

- Through a promise, when it's needed.

should at least be automatic: IF a NCF technique is using the method, have a specific error to be returned if missing, or add a correct flag in the system techniques.
It should not just hit a wall and let the user figure out that "oh, no sorry, you could click this but it won't work"

Personally, I think rudder has to sort it out. NCF is the users' interface, he should not be required to debug (and log on) to the system.
For me the warning in the docs was good and on time, but really, let the system techniques or NCF sort it out.

Actions #10

Updated by François ARMAND over 6 years ago

  • Suggestion strength set to Want - This would make my life a lot easier but I can manage without
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Effort required set to Small

The recommand is a good idea. We could list all non mandatory dependencies as such, and explains for what they are recommanded.

The need to see the system log is also a problem. We should at bare minimum at least report on the compliance report "Error: missing mandatory dependency on the system: XXXX. Please install python-jinja2 (or whatever)" so that the user can immediately know how to solve the problem without having to explore.

Actions #11

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.11 to 4.1.12
Actions #12

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.12 to 4.1.13
Actions #13

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.13 to 4.1.14
Actions #14

Updated by Benoît PECCATTE over 6 years ago

  • Target version changed from 4.1.14 to 4.1.15
Actions #15

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 4.1.15 to 4.1.16
Actions #16

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 4.1.16 to 4.1.17
Actions #17

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 4.1.17 to 4.1.18
Actions #18

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 4.1.18 to 4.1.19
Actions #19

Updated by Alexis Mousset almost 6 years ago

  • Target version changed from 4.1.19 to 4.1.20
Actions #20

Updated by François ARMAND over 5 years ago

  • Target version changed from 4.1.20 to 4.1.21
Actions #21

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 4.1.21 to 4.1.22
Actions #22

Updated by Benoît PECCATTE over 5 years ago

  • Target version changed from 4.1.22 to 5.0.10
Actions #23

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.10 to 5.0.11
Actions #24

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.11 to 5.0.12
Actions #25

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.12 to 5.0.13
Actions #26

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 5.0.13 to 5.0.14
Actions #27

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 5.0.14 to 5.0.15
Actions #28

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 5.0.15 to 5.0.16
Actions #29

Updated by Alexis Mousset almost 5 years ago

  • Target version changed from 5.0.16 to 5.0.17
Actions #30

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 5.0.17 to 5.0.18
Actions #31

Updated by Benoît PECCATTE over 4 years ago

  • Target version changed from 5.0.18 to 6.2.0~beta1
Actions #32

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 6.2.0~beta1 to 6.2.0~rc1
Actions #33

Updated by François ARMAND about 4 years ago

  • Target version changed from 6.2.0~rc1 to 7.0.0~beta1
Actions #34

Updated by Alexis Mousset over 3 years ago

  • Target version changed from 7.0.0~beta1 to Ideas (not version specific)
Actions #35

Updated by Benoît PECCATTE about 3 years ago

  • Project changed from 41 to Rudder
  • Category changed from Generic methods to Generic methods
Actions #36

Updated by François ARMAND almost 3 years ago

  • Tracker changed from User story to Enhancement
Actions

Also available in: Atom PDF