Automated In-place Cluster Upgrade to 3.6 fails on openshift_node_dnsmasq 'Set dnsIP' task

Solution Verified - Updated -

Issue

  • Upgrade from 3.5 to 3.6 fails due to dns
TASK [openshift_node_dnsmasq : Set dnsIP] **************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'ansible_default_ipv4'
fatal: [testingnode.example.com]: FAILED! => {
    "failed": true
}
  • Repeatedly failed, until I changed get_dns_ip method in /usr/share/ansible_plugins/filter_plugins/openshift_node.py to return hostvars['openshift']['node']['dns_ip'] (instead of hostvars['ansible_default_ipv4']['address'])

Environment

  • Red Hat OpenShift Container Platform
    • 3.6

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