Bug 1323580

Summary: [RFE] Replace python-cheetah with python-jinja2 within ovirt-engine-reports
Product: [Retired] ovirt-engine-reports Reporter: Yedidyah Bar David <didi>
Component: ServicesAssignee: Yedidyah Bar David <didi>
Status: CLOSED WONTFIX QA Contact: Lukas Svaty <lsvaty>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.5CC: bugs, didi, grafuls, juan.hernandez, mgoldboi, rmartins, sbonazzo, sradco, ykaul, ylavi
Target Milestone: ---Keywords: FutureFeature
Target Release: ---Flags: sbonazzo: ovirt-4.1?
pnovotny: testing_plan_complete-
mgoldboi: planning_ack+
sbonazzo: devel_ack+
pstehlik: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
URL: http://jinja.pocoo.org/
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1267508 Environment:
Last Closed: 2016-05-30 12:22:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1267508    
Bug Blocks:    

Description Yedidyah Bar David 2016-04-04 07:30:42 UTC
+++ This bug was initially created as a clone of Bug #1267508 +++

ovirt-engine is using python-cheetah for handling the templates used within the project.

python-cheetah didn't receive updates since 2012 and is not available on RHEL 7.2.

Since we're dropping el6 support in 4.0 we should migrate to a template engine available in el7 like python-jinja2[1] which is
available in 7.2 and still actively developed (last commit is on August
6th).

[1] http://jinja.pocoo.org/

--- Additional comment from Sandro Bonazzola on 2015-09-30 11:30:26 IDT ---

Juan if we migrate to python-jinja2 will it require changes on Java side as well?

--- Additional comment from Juan Hernández on 2015-09-30 11:33:38 IDT ---

I believe it won't require changes in the Java side.

--- Additional comment from Red Hat Bugzilla Rules Engine on 2015-10-19 14:00:17 IDT ---

Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 1 Yedidyah Bar David 2016-04-04 07:33:33 UTC
Currently reportsd start fails with:

Apr 04 09:59:36 didi-centos7.eng.lab.tlv.redhat.com ovirt-engine-re[25632]: 2016-04-04 09:59:36,047 ovirt-engine-reportsd: ERROR run:532 Error: cannot find 'getstring'

getstring was removed from engine/common code as part of the engine clone bug 1267508.

I am not going to restore it or open a different bug about this, instead migrate reports to jinja2 too.

Comment 2 Sandro Bonazzola 2016-05-02 09:59:42 UTC
Moving from 4.0 alpha to 4.0 beta since 4.0 alpha has been already released and bug is not ON_QA.

Comment 3 Sandro Bonazzola 2016-05-05 12:45:59 UTC
Re-targeting to 4.1 since 4.0 won't have reports.

Comment 5 Yedidyah Bar David 2016-05-30 12:22:45 UTC
Closing for now. Please reopen if relevant.