Openshift 3.7 upgrade fails with "|failed expects hostvars is a dict"
Issue
Error when upgrading from v3.7.57 to v3.7.62 using Automated In-place Cluster Upgrade:
# ansible-playbook -i hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade.yml
...
TASK [openshift_node_facts : Set node facts] ***********************************************************************************************************************************************
fatal: [master1.example.com]: FAILED! => {"msg": "|failed expects hostvars is a dict"}
NO MORE HOSTS LEFT *************************************************************************************************************************************************************************
NO MORE HOSTS LEFT *************************************************************************************************************************************************************************
to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade.retry
PLAY RECAP *********************************************************************************************************************************************************************************
master1.example.com : ok=204 changed=23 unreachable=0 failed=1
master2.example.com : ok=99 changed=8 unreachable=0 failed=0
master3.example.com : ok=99 changed=8 unreachable=0 failed=0
node1.example.com : ok=99 changed=8 unreachable=0 failed=0
node2.example.com : ok=99 changed=8 unreachable=0 failed=0
node3.example.com : ok=99 changed=8 unreachable=0 failed=0
infra1.example.com : ok=118 changed=10 unreachable=0 failed=0
infra2.example.com : ok=112 changed=10 unreachable=0 failed=0
infra3.example.com : ok=112 changed=10 unreachable=0 failed=0
localhost : ok=26 changed=0 unreachable=0 failed=0
Failure summary:
1. Hosts: master1.example.com
Play: Drain and upgrade master nodes
Task: Set node facts
Message: |failed expects hostvars is a dict
Environment
Openshift Container Platform 3.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
