Description of problem:
Failure summary:
1. Hosts: storage01.example.com
Play: Drain and upgrade nodes
Task: Check for cluster health of glusterfs
Message: The task includes an option with an undefined variable. The error was: 'first_master_client_binary' is undefined
The error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_storage_glusterfs/tasks/check_cluster_health.yml': line 4, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
# lib_utils/library/glusterfs_check_containerized.py
- name: Check for cluster health of glusterfs
^ here
exception type: <class 'ansible.errors.AnsibleUndefinedVariable'>
exception: 'first_master_client_binary' is undefined
Version-Release number of the following components:
openshift-ansible-roles-3.9.43-1.git.0.d0bc600.el7.noarch.rpm
--> /usr/share/ansible/openshift-ansible/roles/openshift_storage_glusterfs/tasks/check_cluster_health.yml
How reproducible:
Steps to Reproduce:
1. Update to latest OCP 3.9 ansible playbooks: 3.9.43-1
2. when upgrading nodes we run into above issue
Actual results:
see above
Expected results:
upgrade should success w/o error
Additional info:
- looks like https://bugzilla.redhat.com/show_bug.cgi?id=1625568
in fact the very same solution helped :
~~~
/usr/share/ansible/openshift-ansible/roles/openshift_storage_glusterfs/tasks] grep first_master_client_binary *
check_cluster_health.yml:# oc_bin: "{{ first_master_client_binary }}"
check_cluster_health.yml: oc_bin: "{{ hostvars[groups.oo_first_master.0]['first_master_client_binary'] }}"
check_cluster_health.yml:# oc_bin: "{{ first_master_client_binary }}"
check_cluster_health.yml: oc_bin: "{{ hostvars[groups.oo_first_master.0]['first_master_client_binary'] }}"
~~~
Description of problem: Failure summary: 1. Hosts: storage01.example.com Play: Drain and upgrade nodes Task: Check for cluster health of glusterfs Message: The task includes an option with an undefined variable. The error was: 'first_master_client_binary' is undefined The error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_storage_glusterfs/tasks/check_cluster_health.yml': line 4, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: # lib_utils/library/glusterfs_check_containerized.py - name: Check for cluster health of glusterfs ^ here exception type: <class 'ansible.errors.AnsibleUndefinedVariable'> exception: 'first_master_client_binary' is undefined Version-Release number of the following components: openshift-ansible-roles-3.9.43-1.git.0.d0bc600.el7.noarch.rpm --> /usr/share/ansible/openshift-ansible/roles/openshift_storage_glusterfs/tasks/check_cluster_health.yml How reproducible: Steps to Reproduce: 1. Update to latest OCP 3.9 ansible playbooks: 3.9.43-1 2. when upgrading nodes we run into above issue Actual results: see above Expected results: upgrade should success w/o error Additional info: - looks like https://bugzilla.redhat.com/show_bug.cgi?id=1625568 in fact the very same solution helped : ~~~ /usr/share/ansible/openshift-ansible/roles/openshift_storage_glusterfs/tasks] grep first_master_client_binary * check_cluster_health.yml:# oc_bin: "{{ first_master_client_binary }}" check_cluster_health.yml: oc_bin: "{{ hostvars[groups.oo_first_master.0]['first_master_client_binary'] }}" check_cluster_health.yml:# oc_bin: "{{ first_master_client_binary }}" check_cluster_health.yml: oc_bin: "{{ hostvars[groups.oo_first_master.0]['first_master_client_binary'] }}" ~~~