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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.