Automated In-place Cluster Upgrade to 3.6 fails on openshift_node_dnsmasq 'Set dnsIP' task
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 returnhostvars['openshift']['node']['dns_ip']
(instead ofhostvars['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.