Upgrade errors out with openshift_master_facts_default_predicates Either OpenShift needs to be installed or openshift_release needs to be specified

Solution Verified - Updated -

Issue

  • Upgrade errors out on worker or infrastructure nodes running openshift-ansible v3.11.318 to v3.11.393
  • You see an error message like:
An unhandled exception occurred while running the lookup plugin 'openshift_master_facts_default_predicates'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Either OpenShift needs to be installed or openshift_release needs to be specified
  • You see an error message like:
The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'openshift_version'

Environment

  • Red Hat OpenShift Container Platform (OCP) 3.11 and openshift-ansible v3.11.318 to v3.11.393

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content