Description of problem: CNS uninstall playbook didn't remove glusterblock related resources Version-Release number of the following components: openshift-ansible-3.9.3-1.git.0.e166207.el7 How reproducible: 100% Steps to Reproduce: 1. Deploy CNS on OCP 2. Execute cns uninstall playbook # ansible-playbook -i hosts -vv /usr/share/ansible/openshift-ansible/playbooks/openshift-glusterfs/uninstall.yml 3. Actual results: # oc get all -n glusterfs NAME REVISION DESIRED CURRENT TRIGGERED BY deploymentconfigs/glusterblock-storage-provisioner-dc 1 1 1 config NAME READY STATUS RESTARTS AGE po/glusterblock-storage-provisioner-dc-1-d67h5 1/1 Running 0 13m NAME DESIRED CURRENT READY AGE rc/glusterblock-storage-provisioner-dc-1 1 1 1 14m Expected results: All cns related resource should be removed. Additional info:
Corresponding changes to remove block(and s3) is available in upstream - but not yet merged in openshift-ansible-3.9.3-1.git.0.e166207.el7 Ref: https://github.com/openshift/openshift-ansible/pull/7358
Oh whoops, that'd be why.
Cherrypick PR created: https://github.com/openshift/openshift-ansible/pull/7450
PR merged
Verified with version openshift-ansible-3.9.12-1.git.0.6155f6e.el7, cns uninstall playbook can remove cns related resources. Before execute cns uninstall playbook: # oc get po -n glusterfs NAME READY STATUS RESTARTS AGE glusterblock-storage-provisioner-dc-1-xd4q4 1/1 Running 0 19m glusterfs-storage-78td9 1/1 Running 0 26m glusterfs-storage-v8ztb 1/1 Running 0 26m glusterfs-storage-vrl74 1/1 Running 0 26m heketi-storage-1-vw8vv 1/1 Running 0 20m # oc get sc NAME PROVISIONER AGE glusterfs-storage kubernetes.io/glusterfs 21m standard (default) kubernetes.io/gce-pd 19m After execute cns uninstall playbook: # oc get po -n glusterfs No resources found. # oc get all -n glusterfs No resources found. # oc get sc NAME PROVISIONER AGE standard (default) kubernetes.io/gce-pd 23m
Per comment 5, move to verified.