Project

General

Profile

Actions

Bug #21605

closed

Jinja templating doesn't work with Python 3.10

Added by Anonymous over 1 year ago. Updated over 1 year ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Target version:
-
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

The Jinja templating system shipped with Rudder (in the NCF package) throws a deprecation warning about distutils when using python 3.10 (Ubuntu 22.04).

Steps to reproduce :

  • install rudder agent on ubuntu 22.04
  • use a custom technique with jinja templating
  • Task errors out because python throws a warning

This result in non-working Jinja templating, which is quite unfortunate as I use it to deploy firewall rules.

Workaround :

This can be fixed temporarily by installing the "packaging" pip package and changing
"from distutils.version import StrictVersion"
to this :
"from packaging.version import Version as StrictVersion"

in the jinja2-templating.py files (which one to modify, I do not know, I've changed them all on the root server, and it seems to distribute them to the nodes)

Cheers


Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #21606: Broken jinja2 templating on ubuntu 22.04ReleasedNicolas CHARLESActions
Actions #1

Updated by Alexis Mousset over 1 year ago

  • Is duplicate of Bug #21606: Broken jinja2 templating on ubuntu 22.04 added
Actions #2

Updated by Alexis Mousset over 1 year ago

  • Status changed from New to Rejected

Closed as duplicate of #21606, will be fixed in next patch releases.

Actions #3

Updated by François ARMAND over 1 year ago

  • Regression changed from Yes to No
Actions

Also available in: Atom PDF