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:
Logs please.
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.