Bug 1898002

Summary: Deployment fails skipping clearing LVM filter task
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: milind <mwaykole>
Component: rhhiAssignee: Gobinda Das <godas>
Status: CLOSED CURRENTRELEASE QA Contact: milind <mwaykole>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rhhiv-1.8CC: rcyriac, rhs-bugs
Target Milestone: ---Keywords: Regression, ZStream
Target Release: RHHI-V 1.8.z Batch Update 2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1898005 (view as bug list) Environment:
Last Closed: 2020-12-01 06:58:23 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:
Bug Depends On: 1898005    
Bug Blocks:    

Description milind 2020-11-16 05:11:47 UTC
Description of problem:
Deployment fails as the LVM filter is not cleared before the LV creation.



Version-Release number of selected component (if applicable):

gluster-ansible-infra-1.0.4-16.el8rhgs.noarch

How reproducible:


Steps to Reproduce:
1. login to UI and do gluster deployment 


Actual results:
Failed while gluster deployment 

Expected results:
gluster deployment should be successful 

Additional info:

[root@rhsqa-grafton7-nic2 ~]# rpm -qa | grep -i ansible 
gluster-ansible-maintenance-1.0.1-11.el8rhgs.noarch
gluster-ansible-cluster-1.0-3.el8rhgs.noarch
gluster-ansible-features-1.0.5-10.el8rhgs.noarch
gluster-ansible-roles-1.0.5-22.el8rhgs.noarch
gluster-ansible-infra-1.0.4-16.el8rhgs.noarch
ovirt-ansible-collection-1.2.1-1.el8ev.noarch
ansible-2.9.14-1.el8ae.noarch
gluster-ansible-repositories-1.0.1-4.el8rhgs.noarch
[root@rhsqa-grafton7-nic2 ~]# rpm -qa | grep -i gluster
gluster-ansible-maintenance-1.0.1-11.el8rhgs.noarch
glusterfs-6.0-37.1.el8rhgs.x86_64
vdsm-gluster-4.40.35.1-1.el8ev.x86_64
gluster-ansible-cluster-1.0-3.el8rhgs.noarch
glusterfs-cli-6.0-37.1.el8rhgs.x86_64
glusterfs-client-xlators-6.0-37.1.el8rhgs.x86_64
glusterfs-server-6.0-37.1.el8rhgs.x86_64
gluster-ansible-features-1.0.5-10.el8rhgs.noarch
gluster-ansible-roles-1.0.5-22.el8rhgs.noarch
glusterfs-geo-replication-6.0-37.1.el8rhgs.x86_64
qemu-kvm-block-gluster-5.1.0-14.module+el8.3.0+8438+644aff69.x86_64
glusterfs-libs-6.0-37.1.el8rhgs.x86_64
glusterfs-api-6.0-37.1.el8rhgs.x86_64
python3-gluster-6.0-37.1.el8rhgs.x86_64
glusterfs-events-6.0-37.1.el8rhgs.x86_64
gluster-ansible-infra-1.0.4-16.el8rhgs.noarch
libvirt-daemon-driver-storage-gluster-6.6.0-7.module+el8.3.0+8424+5ea525c5.x86_64
glusterfs-fuse-6.0-37.1.el8rhgs.x86_64
glusterfs-rdma-6.0-37.1.el8rhgs.x86_64
gluster-ansible-repositories-1.0.1-4.el8rhgs.noarch
[root@rhsqa-grafton7-nic2 ~]# imgbase w
You are on rhvh-4.4.3.1-0.20201112.0+1
[root@rhsqa-grafton7-nic2 ~]#

Comment 2 SATHEESARAN 2020-11-16 05:24:19 UTC
This issue is seen with gluster-ansible-infra-1.0-4-16 which was included in RHVH 4.4.3-1 async.
This is the regression as the fix for https://bugzilla.redhat.com/show_bug.cgi?id=1895905 included
few more changes in the different task of clearing LVM filter.

Included changes in the file - /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/main.yml ( along with the fix for BZ 1895905 ):

<snip>
- name: Check if vdsm-python package is installed or not
  command: rpm -q vdsm-python
  register: rpm_check
  ignore_errors: yes
  
- name: Exclude LVM Filter rules
  import_tasks: lvm_exclude_filter.yml
  when: rpm_check.rc == 0 and gluster_infra_lvm is defined        <--- though vdsm-python package is available, gluster_infra_lvm is undefined 
</snip>

This changes makes this task to be skipped.

<snip>
TASK [gluster.infra/roles/backend_setup : Remove the existing LVM filter] ******
task path: /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/lvm_exclude_filter.yml:2
skipping: [rhsqa-grafton7.lab.eng.blr.redhat.com] => {"changed": false, "skip_reason": "Conditional result was False"}
skipping: [rhsqa-grafton8.lab.eng.blr.redhat.com] => {"changed": false, "skip_reason": "Conditional result was False"}
skipping: [rhsqa-grafton9.lab.eng.blr.redhat.com] => {"changed": false, "skip_reason": "Conditional result was False"}
</snip>

Comment 5 SATHEESARAN 2020-11-18 12:48:38 UTC
As the gluster deployment is successful with 
[node.example.com]# rpm -qa| grep -i  gluster-ansible-infra
gluster-ansible-infra-1.0.4-17.el8rhgs.noarch

[node.example.com]# imgbase w
You are on rhvh-4.4.3.1-0.20201112.0+1

moving this bug as verified