Bug 1726620

Summary: [RFE] While checking brick capacity need to exclude bricks which are part of block hosting volume.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Nitin Goyal <nigoyal>
Component: cns-ansibleAssignee: John Mulligan <jmulligan>
Status: CLOSED CURRENTRELEASE QA Contact: Arun Kumar <arukumar>
Severity: high Docs Contact:
Priority: unspecified    
Version: ocs-3.11CC: arukumar, asambast, hchiramm, jmulligan, knarra, kramdoss, madam, pasik, rhs-bugs, sarumuga
Target Milestone: ---Keywords: ZStream
Target Release: OCS 3.11.z Batch Update 4Flags: arukumar: needinfo+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openshift-ansible-3.11.136-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-13 05:22:19 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:    
Bug Blocks: 1703695    
Attachments:
Description Flags
ansible log file where it is failing for brick capacity of BHV. none

Description Nitin Goyal 2019-07-03 09:57:24 UTC
Created attachment 1587018 [details]
ansible log file where it is failing for brick capacity of BHV.

Description of problem:

As of today in upgrade playbook we are just checking the capacity of bricks. We are not actually verifying whether bricks are related to block hosting volume or not. Because it is not necessary that if BHV brick is full block volume will be also full.

So from preventing upgrade failure, We should verify above as well.


Version-Release number of selected component (if applicable):
openshift-ansible-3.11.123-1.git.0.db681ba.el7.noarch


How reproducible:


Steps to Reproduce:
1. Upgrade glusterfs cluster with upgrade playbook with 98% used block hosting volume.
2.
3.

Actual results:

2019-07-02 20:13:41,017 p=125669 u=root |  fatal: [dhcp46-218.lab.eng.blr.redhat.com -> dhcp46-218.lab.eng.blr.redhat.com]: FAILED! => {"attempts": 120, "changed": false, "msg": "bricks     near capacity found: {u'dhcp46-19.lab.eng.blr.redhat.com': [u'/var/lib/heketi/mounts/vg_966da3e87480fa95ddacd2ad91f49518/brick_7d2df4baf0b1a547ed6f38f57aff7969'], u'dhcp47-107.lab.eng.blr.  redhat.com': [u'/var/lib/heketi/mounts/vg_ab9409e4645b20dd76bf550cab8ef1eb/brick_0cf9feb79abf33fc48eedcab4b3d4c54'], u'dhcp46-35.lab.eng.blr.redhat.com': [u'/var/lib/heketi/mounts/          vg_4c95c52d5ee3d5d5d685c57aeaf5ac04/brick_2571c4a94a15468a37952641e5176da2']}", "state": "unknown"}

Expected results:
It should exclude bricks which are part of BHV.

Additional info:

Comment 2 Jose A. Rivera 2019-07-09 14:42:07 UTC
I see this as an RFE and not a technical requirement for the upgrade playbook. Marking it as such.

Comment 17 RamaKasturi 2019-08-18 14:32:55 UTC
Hello Arun,

  Can you please set the right test coverage flag here ?


Thanks
kasturi