Bug 1579183

Summary: Device remove fails on a disabled device having more bricks
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: vinutha <vinug>
Component: heketiAssignee: Michael Adam <madam>
Status: CLOSED WONTFIX QA Contact: Prasanth <pprakash>
Severity: medium Docs Contact:
Priority: unspecified    
Version: cns-3.9CC: hchiramm, jmulligan, kramdoss, pprakash, rhs-bugs, rtalur, sankarshan, storage-qa-internal
Target Milestone: ---   
Target Release: ---   
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: 2019-03-12 20:07:11 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: 1641915    

Description vinutha 2018-05-17 06:45:53 UTC
Description of problem:
Unable to remove disabled device using heketi remove command

Version-Release number of selected component (if applicable):
heketi-client-6.0.0-13

How reproducible:
Always with device having 3 or more bricks


Steps to Reproduce:
1.Created a 3 node setup and added 1 node 
2.Node 1 has 2 200GB devices and 1 600GB device 
3.200GB devices are free - have no bricks while 600GB device has 3 bricks 
4.Disabled the 600GB device successfully 
5.Unable to remove the disabled device 

Actual results:
heketi-cli device remove fdd1a8ff2942dafe10be0de23c53133a
Error: Failed to remove device, error: Id not found


Expected results:
heketi-cli device delete 24e095a5bc6e18d78b7eda470e072ece
Device 24e095a5bc6e18d78b7eda470e072ece deleted


Additional info:
Able to delete disabled devices with just 1 brick.