Actions
Bug #21605
closedJinja templating doesn't work with Python 3.10
Status:
Rejected
Priority:
N/A
Assignee:
-
Target version:
-
Pull Request:
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
Updated by Alexis Mousset over 2 years ago
- Is duplicate of Bug #21606: Broken jinja2 templating on ubuntu 22.04 added
Updated by Alexis Mousset over 2 years ago
- Status changed from New to Rejected
Closed as duplicate of #21606, will be fixed in next patch releases.
Actions