During advanced installation of OpenShift Contianer Platform module fails with error: certificate key "names" is not found
Issue
- During an advanced installation Ansible errors out with the following error:
TASK [openshift_named_certificates : set_fact]
task path: /usr/share/ansible/openshift-ansible/roles/openshift_named_certificates/tasks/main.yml:2
The full traceback is:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 130, in run
res = self._execute()
File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 472, in _execute
self._task.post_validate(templar=templar)
File "/usr/lib/python2.7/site-packages/ansible/playbook/task.py", line 249, in post_validate
super(Task, self).post_validate(templar)
File "/usr/lib/python2.7/site-packages/ansible/playbook/base.py", line 376, in post_validate
value = templar.template(getattr(self, name))
File "/usr/lib/python2.7/site-packages/ansible/template/__init__.py", line 494, in template
disable_lookups=disable_lookups,
File "/usr/lib/python2.7/site-packages/ansible/template/__init__.py", line 450, in template
disable_lookups=disable_lookups,
File "/usr/lib/python2.7/site-packages/ansible/template/__init__.py", line 672, in do_template
res = j2_concat(rf)
File "<template>", line 11, in root
File "/usr/share/ansible/openshift-ansible/roles/openshift_master_facts/filter_plugins/oo_filters.py", line 571, in oo_parse_named_certificates
if 'names' in certificate.keys():
AttributeError: 'unicode' object has no attribute 'keys'
fatal: [standardize-mst-1]: FAILED! => {
"msg": "Unexpected failure during module execution.",
"stdout": ""
}
Environment
- OpenShift Container Platform 3.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.