Running Ansible upgrade playbook fails with "TemplateRuntimeError: no test named 'equalto' " in OpenShift Container Platform v3.7.42

Solution Verified - Updated -


  • Running the following upgrade playbook to update from v3.7.23 to v3.7.42.
ansible-playbook  /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade.yml
  • It fails with the following error message:
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: []: FAILED! => {"failed": true, "msg": "Unexpected failure during module execution.", "stdout": ""}
    to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade.retry


  • OpenShift Container Platform
    - 3.7.42
  • Ansible
    - 2.4.10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In