Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1428654 - Need a better error message when a cluster id with no bricks is provided
Need a better error message when a cluster id with no bricks is provided
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: heketi (Show other bugs)
cns-3.5
Unspecified Linux
unspecified Severity low
: ---
: CNS 3.10
Assigned To: John Mulligan
vinutha
:
Depends On:
Blocks: 1568861
  Show dependency treegraph
 
Reported: 2017-03-02 22:30 EST by krishnaram Karthick
Modified: 2018-09-12 05:23 EDT (History)
9 users (show)

See Also:
Fixed In Version: heketi-6.0.0-14.el7rhgs
Doc Type: Bug Fix
Doc Text:
Previously, heketi attempted to allocate a volume by iterating over all available clusters to determine where a volume request would fit. If none of the clusters were suitable Heketi returned a generic "No space" error. This generic error hid useful debugging information from the user. With this fix, Heketi gathers all the error conditions from the clusters into a single error response. If more than one cluster is configured the error for each cluster is prefixed with the cluster's ID.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-09-12 05:22:12 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github heketi/heketi/issues/712 None None None 2018-05-07 12:20 EDT
Red Hat Product Errata RHEA-2018:2686 None None None 2018-09-12 05:23 EDT

  None (edit)
Description krishnaram Karthick 2017-03-02 22:30:59 EST
Description of problem:

When a cluster is created manually without any nodes or bricks and when such a cluster id is defined as part of storage class, pvc creation fails with 'Error calling v.allocBricksInCluster: Id not found'. Looks like we just return the error received from the function. A better error message should be provided.

p.s., This bug is more of an enhancement, uncovered during negative test. Regular workflow of CNS will not end up in this scenario.

[root@dhcp46-201 ~]# heketi-cli cluster info 75f2bdc4e362b8f78833af932f0ebcf9
Cluster id: 75f2bdc4e362b8f78833af932f0ebcf9
Nodes:

[root@dhcp46-201 ~]# cat storageclass_voltype 
apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
metadata:
  name: voltypenegative 
provisioner: kubernetes.io/glusterfs
parameters:
  resturl: "http://heketi-storage-project.cloudapps.mystorage.com"
  restuser: "test"
  clusterid: "75f2bdc4e362b8f78833af932f0ebcf9"

[root@dhcp46-201 ~]# oc describe pvc/clusterid
Name:		clusterid
Namespace:	storage-project
StorageClass:	voltypenegative
Status:		Pending
Volume:		
Labels:		<none>
Capacity:	
Access Modes:	
Events:
  FirstSeen	LastSeen	Count	From				SubObjectPath	Type		Reason			Message
  ---------	--------	-----	----				-------------	--------	------			-------
  21s		11s		2	{persistentvolume-controller }			Warning		ProvisioningFailed	Failed to provision volume with StorageClass "voltypenegative": glusterfs: create volume err: error creating volume Error calling v.allocBricksInCluster: Id not found.

Version-Release number of selected component (if applicable):
# rpm -qa | grep 'heketi'
heketi-client-4.0.0-1.el7rhgs.x86_64
# oc version
oc v3.5.0.37
kubernetes v1.5.2+43a9be4
features: Basic-Auth GSSAPI Kerberos SPNEGO

openshift v3.5.0.37
kubernetes v1.5.2+43a9be4


How reproducible:
always

Steps to Reproduce:
provided along with the description
Comment 2 Humble Chirammal 2017-03-03 01:05:31 EST
This is the error returned from Heketi. In the same scenario if we try 'heketi-cli' you will land into same error. This has to be fixed at heketi layer.  I will change the componenet back to Heketi and open an issue at heketi upstream.
Comment 3 Humble Chirammal 2017-03-06 05:54:53 EST
@Karthick, can you please open an upstream heketi issue for a better error message, please let me know if you need any help.
Comment 4 krishnaram Karthick 2017-03-13 11:39:38 EDT
(In reply to Humble Chirammal from comment #3)
> @Karthick, can you please open an upstream heketi issue for a better error
> message, please let me know if you need any help.

Upstream heketi bug raised - https://github.com/heketi/heketi/issues/712
Comment 8 John Mulligan 2018-05-29 15:33:17 EDT
https://github.com/heketi/heketi/pull/1199
Comment 12 Anjana 2018-08-30 09:59:27 EDT
Updated doc text in the Doc Text field. Please review for technical accuracy.
Comment 13 John Mulligan 2018-08-30 13:14:23 EDT
Doc Text LGTM
Comment 15 errata-xmlrpc 2018-09-12 05:22:12 EDT
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:2686

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