Bug 1370130

Summary: Confusing error message when creating too small volume
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Jan Safranek <jsafrane>
Component: heketiAssignee: Michael Adam <madam>
Status: CLOSED ERRATA QA Contact: Prasanth <pprakash>
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: annair, hchiramm, madam, mliyazud, nerawat, pprakash, rhs-bugs, storage-qa-internal
Target Milestone: ---   
Target Release: CNS 3.4   
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-01-18 21:56:39 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: 1385246    

Description Jan Safranek 2016-08-25 11:44:05 UTC
I have heketi installed using https://github.com/heketi/vagrant-heketi/blob/master/standalone/README.md

I want to create a small testing volume and I get "No space" error. But there is plenty of space, I can create much larger volumes:

$ heketi-cli volume create --size=1
Error: No space

$ heketi-cli volume create --size=100
Name: vol_61d2e250e6c7c35863ba837d51c163ff
Size: 100
Volume Id: 61d2e250e6c7c35863ba837d51c163ff
Cluster Id: 6ce349156b7351fb5617ce0427416069
Mount: 192.168.10.100:vol_61d2e250e6c7c35863ba837d51c163ff
Mount Options: backup-volfile-servers=192.168.10.101,192.168.10.102,192.168.10.103
Durability Type: replicate
Distributed+Replica: 3

Version-Release number of selected component (if applicable):
heketi-2.0.6-1.el7.centos.x86_64 from https://copr-be.cloud.fedoraproject.org/results/lpabon/Heketi/epel-7-$basearch/

How reproducible:
always

Steps to Reproduce:
heketi-cli volume create --size=1

Actual results:
Error: No space

Expected results:
Error: size too small, it must be greater than XYZ

Comment 2 Michael Adam 2016-10-01 00:16:48 UTC
Fixed upstream with https://github.com/heketi/heketi/pull/536 .

The issue is a duplicate of https://github.com/heketi/heketi/issues/506 .

I think it can also be considered a duplicate of 
https://bugzilla.redhat.com/show_bug.cgi?id=1346624
and https://bugzilla.redhat.com/show_bug.cgi?id=1352778

Comment 3 Michael Adam 2016-10-01 00:29:10 UTC
*** Bug 1346624 has been marked as a duplicate of this bug. ***

Comment 4 Michael Adam 2016-10-01 00:29:44 UTC
*** Bug 1352778 has been marked as a duplicate of this bug. ***

Comment 9 Prasanth 2016-11-17 09:32:16 UTC
Verified as fixed in the latest heketi build (heketi-cli 3.0.0)


#######
# heketi-cli volume create --size=1
Error: Requested volume size (1 GB) is smaller than the minimum supported volume size (4194304)
#######

Comment 10 errata-xmlrpc 2017-01-18 21:56:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2017-0148.html