Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fbladilo opened this issue Sep 17, 2019 · 0 comments
Open

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

fbladilo opened this issue Sep 17, 2019 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@fbladilo
Copy link
Contributor

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
@jwmatthews jwmatthews added the documentation Improvements or additions to documentation label Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants