Description of problem: uninstall glusterfs report FAILED! => {"failed": true, "msg": "template error while templating string: no filter named 'lib_utils_oo_dict_to_list_of_dict'. String: {{ glusterfs_nodeselector | lib_utils_oo_dict_to_list_of_dict }}"} Version-Release number of the following components: openshift-ansible:v3.7.55 How reproducible: always Steps to Reproduce: 1. Deploy glusterfs on OCP 2. Uninstall glusterfs ansible-playbook -i hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-glusterfs/uninstall.yml Actual results: TASK [openshift_storage_glusterfs : Delete pre-existing GlusterFS resources] *** changed: [qe-37master-etcd-1.0628-a6m.qe.rhcloud.com] => (item={u'kind': u'template', u'name': u'glusterfs'}) changed: [qe-37master-etcd-1.0628-a6m.qe.rhcloud.com] => (item={u'kind': u'daemonset', u'name': u'glusterfs-storage'}) changed: [qe-37master-etcd-1.0628-a6m.qe.rhcloud.com] => (item={u'kind': u'storageclass', u'name': u'glusterfs-storage'}) TASK [openshift_storage_glusterfs : Unlabel any existing GlusterFS nodes] ****** fatal: [qe-37master-etcd-1.0628-a6m.qe.rhcloud.com]: FAILED! => {"failed": true, "msg": "template error while templating string: no filter named 'lib_utils_oo_dict_to_list_of_dict'. String: {{ glusterfs_nodeselector | lib_utils_oo_dict_to_list_of_dict }}"} PLAY RECAP ********************************************************************* Expected results:
https://github.com/openshift/openshift-ansible/pull/9030
Verified with version openshift-ansible-3.7.57-1.git.33.cf01e48.el7, uninstall can succeed without any error. # oc get po -n glusterfs NAME READY STATUS RESTARTS AGE glusterblock-storage-provisioner-dc-1-nlw2b 1/1 Running 0 4h glusterfs-storage-crgdx 1/1 Running 0 4h glusterfs-storage-dkzwx 1/1 Running 0 4h glusterfs-storage-kp88r 1/1 Running 0 4h heketi-storage-1-q444v 1/1 Running 0 4h # ansible-playbook -i inventory -vv /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-glusterfs/uninstall.yml ... INSTALLER STATUS ***************************************************************************************************************************************************************************** Initialization : Complete # oc get po -n glusterfs No resources found.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:2234