Bug 1480228

Summary: heketi has a dangling entry of gluster-block device
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: krishnaram Karthick <kramdoss>
Component: heketiAssignee: Michael Adam <madam>
Status: CLOSED DUPLICATE QA Contact: Anoop <annair>
Severity: high Docs Contact:
Priority: unspecified    
Version: cns-3.6CC: hchiramm, mliyazud, rhs-bugs, 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: 2017-08-11 21:15:15 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:

Description krishnaram Karthick 2017-08-10 12:37:43 UTC
Description of problem:
On a fresh CNS setup, a block device was created and deleted. 

sequence of steps:

[root@dhcp47-10 ~]# heketi-cli blockvolume create --size=1
Name: blockvol_fe101c6ebe284a3541ee55fd27455679
Size: 1
Volume Id: fe101c6ebe284a3541ee55fd27455679
Cluster Id: ec2643d674d0c508a7bfaf8f8def2cf1
Hosts: [10.70.46.248 10.70.47.49 10.70.47.72]
IQN: iqn.2016-12.org.gluster-block:c6e412b5-c570-4686-a691-514643a11bbf
LUN: 0
Hacount: 3
Username:
Password:
Block Hosting Volume: e35289f5c42657c03386ecaa569b8659
[root@dhcp47-10 ~]#
[root@dhcp47-10 ~]#
[root@dhcp47-10 ~]# heketi-cli blockdevice delete fe101c6ebe284a3541ee55fd27455679
Error: unknown command "blockdevice" for "heketi-cli"
Run 'heketi-cli --help' for usage.
[root@dhcp47-10 ~]# heketi-cli blockvolume delete fe101c6ebe284a3541ee55fd27455679
Error: Unable to get the block volume delete info for block volume blockvol_fe101c6ebe284a3541ee55fd27455679
[root@dhcp47-10 ~]# heketi-cli blockvolume info blockvol_fe101c6ebe284a3541ee55fd27455679
Error: Invalid path or request

[root@dhcp47-10 ~]# heketi-cli blockvolume info fe101c6ebe284a3541ee55fd27455679
Name: blockvol_fe101c6ebe284a3541ee55fd27455679
Size: 1
Volume Id: fe101c6ebe284a3541ee55fd27455679
Cluster Id: ec2643d674d0c508a7bfaf8f8def2cf1
Hosts: [10.70.46.248 10.70.47.49 10.70.47.72]
IQN: iqn.2016-12.org.gluster-block:c6e412b5-c570-4686-a691-514643a11bbf
LUN: 0
Hacount: 3
Username:
Password:
Block Hosting Volume: e35289f5c42657c03386ecaa569b8659

[root@dhcp47-10 ~]# heketi-cli blockvolume delete fe101c6ebe284a3541ee55fd27455679
Error: Unable to execute command on glusterfs-gs6n5:

When I check in the backend, there is no block-volume. So, heketi has actually deleted in the first attempt but failed to update its db accordingly. [check heketi-log that'll be attached shortly]


sh-4.2# gluster-block volume list
unknown option: volume
sh-4.2# gluster vol list
heketidbstorage
vol_e35289f5c42657c03386ecaa569b8659
sh-4.2# gluster-block list  vol_e35289f5c42657c03386ecaa569b8659
*Nil*

Version-Release number of selected component (if applicable):
cns-deploy-5.0.0-14.el7rhgs.x86_64

How reproducible:
1/1

Steps to Reproduce:
create and delete gluster-block vol via heketi

Comment 3 Mohamed Ashiq 2017-08-11 21:15:15 UTC
Please reopen if this is not the duplicate.

*** This bug has been marked as a duplicate of bug 1479777 ***