Bug 1071377
Summary: | [NeedInfo] volume creation fails with "brick path is too long" in weird circumstances | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Giulio Fidente <gfidente> | |
Component: | glusterd | Assignee: | Atin Mukherjee <amukherj> | |
Status: | CLOSED ERRATA | QA Contact: | Sachidananda Urs <surs> | |
Severity: | medium | Docs Contact: | ||
Priority: | low | |||
Version: | rhgs-3.0 | CC: | nlevinki, nsathyan, sasundar, ssamanta, vbellur | |
Target Milestone: | --- | Keywords: | Regression | |
Target Release: | RHGS 3.0.0 | |||
Hardware: | x86_64 | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.6.0.3-1.el6rhs | Doc Type: | Bug Fix | |
Doc Text: |
* If length of the volume name exceeds 256 chars following error message should be thrown by gluster CLI:
Volume name exceeds 256 characters.
Usage: volume create <NEW-VOLNAME> [stripe <COUNT>] [replica <COUNT>] [transport <tcp|rdma|tcp,rdma>] <NEW-BRICK>... [force]
* If gluster volume info is executed with a volume name containing more than 256 characters following error message should be thrown:
Invalid volume name
Getting Volume information failed!
* If any of the brick sub folders is more than 256 characters in the brick path then the following error message will be thrown:
brick path <brick path> is too long.
* If brick vol file length is more than 256 characters then the following error message will be thrown:
Volume file path for volume <vol name> and brick path <brick path> is too long
|
Story Points: | --- | |
Clone Of: | ||||
: | 1085330 (view as bug list) | Environment: | ||
Last Closed: | 2014-09-22 19:34:09 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: | 1085330 |
Description
Giulio Fidente
2014-02-28 15:48:57 UTC
Please note with the current design of volfile it can not be guaranteed that volname and brickpath can have upto _POSIX_PATH_MAX characters. The validation goes like : strlen(volname) + strlen(brickpath) + strlen(hostname/ip) <= _POSIX_PATH_MAX. Hi Giulio, I am trying to understand why this is a blocker. Is it only set to keep the BZ in radar for the ongoing release? Thanks RCA --- While creating a volume and adding a brick validation for _POSIX_PATH_MAX is done on absolute pathname instead of relative pathname due to which a brickpath having less than _POSIX_PATH_MAX may also fail the validation if the directory length is greater than (_POSIX_PATH_MAX -strlen(brickpath/volume name). Also this fix addresses one cli response message correction which says the volume file is too long instead of brick path is too long (when brickpath length validation doesn't fail and vol file length validation fails.) It is also important to note that with the current design of volfile naming, it can not be guranteed that volname and brickpath can have max of _POSIX_PATH_MAX characters. Upstream patch http://review.gluster.org/7420 has been back ported in downstream to address this issue. Setting flags required to add BZs to RHS 3.0 Errata Tested on glusterfs 3.6.0.16 I see appropriate messages when the file names are long. 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. http://rhn.redhat.com/errata/RHEA-2014-1278.html |