Faild to install OpenShift with ansible error 'ansible_default_ipv4'
Issue
- Got below errors when installing OpenShift with installer:
2018-01-03 11:13:19,431 p=3396 u=root | TASK [openshift_facts : Gather Cluster facts and set is_containerized if needed] ***
2018-01-03 11:13:20,754 p=3396 u=root | An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'address'
2018-01-03 11:13:20,755 p=3396 u=root | fatal: [abctest-master1]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_mzsB7f/ansible_module_openshift_facts.py\", line 2491, in <module>\n main()\n File \"/tmp/ansible_mzsB7f/ansible_module_openshift_facts.py\", line 2478, in main\n protected_facts_to_overwrite)\n File \"/tmp/ansible_mzsB7f/ansible_module_openshift_facts.py\", line 1909, in __init__\n protected_facts_to_overwrite)\n File \"/tmp/ansible_mzsB7f/ansible_module_openshift_facts.py\", line 1946, in generate_facts\n defaults = self.get_defaults(roles, deployment_type, deployment_subtype)\n File \"/tmp/ansible_mzsB7f/ansible_module_openshift_facts.py\", line 1992, in get_defaults\n ip_addr = self.system_facts['ansible_default_ipv4']['address']\nKeyError: 'address'\n", "module_stdout": "", "msg": "MODULE FAILURE"}
Environment
- OpenShift Container Platform 3.x
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.
