Heketi route not configured correctly after installing CNS using ansible
Issue
- When attempting to install CNS using the Advanced Installation instructions, the Ansible playbook crashes every single time with the following error:"TASK [openshift_storage_glusterfs : Determine StorageClass heketi URL]
FAILED! => {"failed": true, "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'spec'\n\nThe error appears to have been in '/opt/git/openshift-3.6-setup/openshift-ansible/roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml': line 238, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Determine StorageClass heketi URL\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: 'dict object' has no attribute 'spec'"}"Debugging quickly leads us to the problem: the previous task (openshift_storage_glusterfs : Get heketi route) attempts to get the Heketi route by the name "heketi-{{ glusterfs_name }}". But when listing the routes that exist in the project that Gluster is installed in, no route exists with that name.
Environment
- 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
