Bug 1552733 - [Regression]: block device creation request of size greater than blockhosting volume's size should fail with proper error message
Summary: [Regression]: block device creation request of size greater than blockhosting...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: heketi
Version: cns-3.9
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: CNS 3.9
Assignee: Michael Adam
QA Contact: krishnaram Karthick
URL:
Whiteboard:
: 1511302 (view as bug list)
Depends On:
Blocks: 1526415
TreeView+ depends on / blocked
 
Reported: 2018-03-07 16:09 UTC by krishnaram Karthick
Modified: 2021-09-09 13:21 UTC (History)
9 users (show)

Fixed In Version: heketi-6.0.0-7.el7rhgs
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-05 03:10:06 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github https://github.com/heketi heketi issues 1089 0 None None None 2018-03-08 10:50:28 UTC
Red Hat Bugzilla 1511302 0 medium CLOSED Improve error message of gluster-block provisioning 2021-09-09 12:49:01 UTC
Red Hat Product Errata RHEA-2018:0638 0 None None None 2018-04-05 03:10:17 UTC

Internal Links: 1511302

Description krishnaram Karthick 2018-03-07 16:09:32 UTC
Description of problem:

With blockhosting volume of size 100 GB, blockvolume create of size >100Gb fails with a vague error message.

# heketi-cli blockvolume create --size=120 Error: Unable to execute command on glusterfs-storage-pgbjn:
# oc rsh heketi-storage-1-xznlb
sh-4.2# rpm -qa | grep 'heketi'
heketi-client-6.0.0-5.el7rhgs.x86_64
python-heketi-6.0.0-5.el7rhgs.x86_64
heketi-6.0.0-5.el7rhgs.x86_64
sh-4.2# 



This was not the case in CNS 3.6,

# rpm -qa | grep 'heketi'
heketi-client-5.0.0-19.el7rhgs.x86_64
# heketi-cli blockvolume create --size=600
Error: Default Block Hosting Volume size is less than block volume requested.
# oc rsh heketi-1-dm835 
sh-4.2# rpm -qa | grep 'heketi'
heketi-client-5.0.0-19.el7rhgs.x86_64
python-heketi-5.0.0-19.el7rhgs.x86_64
heketi-5.0.0-19.el7rhgs.x86_64
sh-4.2# 

Hence, this is a regression

Version-Release number of selected component (if applicable):
Heketi 6.0.0

How reproducible:
Always

Steps to Reproduce:
1. create a blockhosting volume of size 100Gb
2. Try to create a block device of size > 100Gb


Actual results:
create request fails with error 'Error: Unable to execute command on glusterfs-storage-pgbjn:

Expected results:
proper error message as seen in CNS 3.6

Additional info:
heketi logs shall be attached.

Comment 13 krishnaram Karthick 2018-03-14 04:41:54 UTC
This issue is fixed in build - heketi-6.0.0-7.el7rhgs

A proper error message is now presented to the user.

[root@dhcp46-101 ~]# heketi-cli blockvolume create --size=400
Error: Failed to allocate new block volume: The size configured for automatic creation of block hosting volumes (100) is too small to host the requested block volume of size 400. Please create a sufficiently large block hosting volume manually.

Comment 16 errata-xmlrpc 2018-04-05 03:10:06 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://access.redhat.com/errata/RHEA-2018:0638

Comment 17 Niels de Vos 2018-05-14 07:50:13 UTC
*** Bug 1511302 has been marked as a duplicate of this bug. ***


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