Upgrade errors out with openshift_master_facts_default_predicates Either OpenShift needs to be installed or openshift_release needs to be specified
Issue
- Upgrade errors out on
worker
orinfrastructure
nodes runningopenshift-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.