Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1568783

Summary: TemplateRuntimeError: no test named 'equalto'
Product: OpenShift Container Platform Reporter: Aleks Lazic <aleks>
Component: Cluster Version OperatorAssignee: Scott Dodson <sdodson>
Status: CLOSED DUPLICATE QA Contact: liujia <jiajliu>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.7.0CC: aos-bugs, jokerman, mmccomas, wmeng
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-18 16:08:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aleks Lazic 2018-04-18 09:05:43 UTC
Description of problem:

We faced the following problem at the update from OCP 3.7.23-1 to 3.7.42-1

Version-Release number of the following components:

cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)

rpm -q openshift-ansible
openshift-ansible-3.7.42-1.git.0.427f18c.el7.noarch

rpm -q ansible
ansible-2.4.2.0-2.el7.noarch

ansible --version
ansible 2.4.2.0
  config file = /var/tmp/ocp06/ose/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible
  python version = 2.7.5 (default, May  3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]

How reproducible:

Steps to Reproduce:
1. Install OCP 3.7.23-1 on RHEL 7.4
2. Update RHEL 7.4 to latest
3. Install atomic-openshift-docker-excluder and atomic-openshift-excluder from 3.7.42-1
4. call ansible-playbook -i ./hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade_control_plane.yml | tee upgrade_control_plane.log.$(date '+%d%m%Y_%H%M')

Actual results:
TASK [Upgrade master packages] **************************************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TemplateRuntimeError: no test named 'equalto'
fatal: [ocpm01]: FAILED! => {"msg": "Unexpected failure during module execution.", "stdout": ""}


Expected results:

The update should be done without errors

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 1 Aleks Lazic 2018-04-18 09:33:21 UTC
Looks like that this is the similar issue as on github https://github.com/openshift/openshift-ansible/issues/3463

Comment 2 Aleks Lazic 2018-04-18 09:44:49 UTC
rpm -q python-jinja2
python-jinja2-2.7.2-2.el7.noarch

yum install python-jinja2
...
Package python-jinja2-2.7.2-2.el7.noarch already installed and latest version
Nothing to do
...

Comment 3 liujia 2018-04-18 10:40:23 UTC
Refer to https://bugzilla.redhat.com/show_bug.cgi?id=1564182

Fixed on openshift-ansible-3.7.42-1.git.2.9ee4e71.el7.noarch

Comment 4 Scott Dodson 2018-04-18 16:08:58 UTC

*** This bug has been marked as a duplicate of bug 1564180 ***