Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1607537

Summary: openshift-glusterfs uninstall.yml playbook removes glusterfs=storage-host label inadvertently
Product: OpenShift Container Platform Reporter: Annette Clewett <aclewett>
Component: InstallerAssignee: Jose A. Rivera <jarrpa>
Status: CLOSED DEFERRED QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.10.0CC: aos-bugs, jokerman, mmccomas, rteague
Target Milestone: ---   
Target Release: 3.10.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-19 20:36:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Inventory file for 2xcns none

Description Annette Clewett 2018-07-23 16:52:00 UTC
Created attachment 1470007 [details]
Inventory file for 2xcns

Description of problem:

Version-Release number of the following components:
Running from clone of openshift-ansible branch=release-3.10, commit 086ccb0b4d7c26274aeddc468f4caa43cb4da197.

$ rpm -q ansible
ansible-2.4.4.0-1.el7ae.noarch

$ ansible --version
ansible 2.4.4.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/ec2-user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Feb 20 2018, 09:19:12) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]

Deploy OCP 3.10 with two gluster clusters [glusterfs] and [glusterfs_registry] in the app-storage and infra-storage projects respectively. Then attempt to uninstall ONLY the resources for [glusterfs_registry] by running playbook below AND commenting out everything in inventory file having to do with the [glusterfs} cluster with resources in app-storage. 

$ ansible-playbook -i <path_to_inventory_file> -e "openshift_storage_glusterfs_registry_wipe=true" playbooks/openshift-glusterfs/uninstall.yml

The result is that all resources in infra-storage project are deleted but in addition all gluster pods in app-storage project, [glusterfs], have lost their label glusterfs=storage-host. This happened when task below ran during uninstall.yml playbook execution.

TASK [openshift_storage_glusterfs : Unlabel any existing GlusterFS nodes] *****************************************************************************
Saturday 21 July 2018  00:15:11 +0000 (0:00:01.397)       0:00:38.163 *********
Actual results:
Please include the entire output from the last TASK line through the end of output if an error is generated

See attached inventory file with commented out [glusterfs] options

Comment 1 Russell Teague 2018-11-19 20:36:51 UTC
There appear to be no active cases related to this bug. As such we're closing this bug in order to focus on bugs that are still tied to active customer cases. Please re-open this bug if you feel it was closed in error or a new active case is attached.