Bug 1724992 - heketi is trying to create a blockvolume with the same name.
Summary: heketi is trying to create a blockvolume with the same name.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: heketi
Version: ocs-3.11
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: John Mulligan
QA Contact: Nitin Goyal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-28 08:36 UTC by Nitin Goyal
Modified: 2019-09-06 16:51 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-06 16:51:16 UTC
Embargoed:


Attachments (Terms of Use)

Description Nitin Goyal 2019-06-28 08:36:59 UTC
Description of problem:
heketi is trying to create a blockvolume of same name even-though volume of same name is already there. 

If blockvolume with the same name is already present heketi should not try to create a blockvolume. heketi should pre-check its db for the same name of blockvolume.

The similar issue is fixed for file volume bz 1577803.

Version-Release number of selected component (if applicable):
heketi-cli 9.0.0-2.el7rhgs

How reproducible:


Steps to Reproduce:
1. heketi-cli blockvolume create --size 1 --name vol
2. heketi-cli blockvolume create --size 1 --name vol
3.

Actual results:

Expected results:

Additional info:

Comment 2 John Mulligan 2019-06-28 13:39:59 UTC
Logs please.

Comment 4 John Mulligan 2019-07-01 14:25:04 UTC
I checked the behavior of heketi wrt re-using the same name of a block volume. Heketi is designed to support multiple block volumes with the same name as long as those block volumes are unique to a block hosting volume. Put another way, the system will create a new block hosting volume (when possible) if the user requests the exact same name for block volumes.

I see one error in the log and it is coming from gluster block itself and it's not clear that the error has anything to do with the name. If you wish to go deeper on that error let me know. Otherwise, I'd say the system is working as designed.


Note You need to log in before you can comment on or make changes to this bug.