Skip to content

Agnosticd OCP 4.x destroy_env fails on Centos7/RHEL7 #81

Description

@fbladilo

This one boils down to the version of jinja2 shipped with RHEL7/Centos7 , which is 2.7.2 and does not support equalto which some tasks on agnosticd implement. The result is a failed cleanup of OCP 4.x leaving the clientvm online as it never makes it to destroy the CF template.

[root@jenkins-me:/var/lib/jenkins/workspace/new-parallel-base-franco-46/mig-agnosticd/4.1] ((3b48dbc...) %)# cat /root/jinja2-error-agnosticd.txt 
TASK [set_fact] ***************************************************************************************************************************************************************************************************
task path: /var/lib/jenkins/workspace/new-parallel-base-franco-46/agnosticd/ansible/configs/ocp4-workshop/delete_zone.yml:7
Tuesday 17 September 2019  08:49:09 -0400 (0:00:00.967)       0:03:18.209 ***** 
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TemplateRuntimeError: no test named 'equalto'
fatal: [localhost]: FAILED! => {"msg": "Unexpected failure during module execution.", "stdout": ""}

PLAY RECAP ********************************************************************************************************************************************************************************************************
clientvm.ci-newp-franco-41-46.internal : ok=14   changed=5    unreachable=0    failed=0    skipped=11   rescued=0    ignored=0   
localhost                  : ok=41   changed=12   unreachable=0    failed=1    skipped=11   rescued=0    ignored=0   

[root@jenkins-me:/var/lib/jenkins/workspace/new-parallel-base-franco-46/mig-agnosticd/4.1] ((3b48dbc...) %)# grep 'equalto' /usr/lib/python2.7/site-packages/jinja2/tests.py
[root@jenkins-me:/var/lib/jenkins/workspace/new-parallel-base-franco-46/mig-agnosticd/4.1] ((3b48dbc...) %)# python -c 'from jinja2 import __version__; print(__version__)'
2.7.2

Workaround, there are no official jinja2 updates I could find for python 2.7.5 on RHEL7 , one option is to pip upgrade jinja2 or rebuild unofficial RPMS , I used the following ones :

python2-jinja2-2.8.1-1.el7.noarch             Mon 16 Sep 2019 09:52:12 PM CDT
python2-markupsafe-0.23-16.el7.x86_64         Mon 16 Sep 2019 09:46:26 PM CDT

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions