Bug 1162648
| Summary: | [USS]: There should be limit to the size of "snapshot-directory" | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Rahul Hinduja <rhinduja> |
| Component: | snapshot | Assignee: | Manikandan <mselvaga> |
| Status: | CLOSED ERRATA | QA Contact: | Anil Shah <ashah> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rhgs-3.1 | CC: | asengupt, mselvaga, rhs-bugs, rjoseph, smohan, storage-qa-internal, surs |
| Target Milestone: | --- | Keywords: | Triaged, ZStream |
| Target Release: | RHGS 3.1.3 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | USS | ||
| Fixed In Version: | glusterfs-3.7.9-1 | Doc Type: | Bug Fix |
| Doc Text: |
When users specified a directory name as part of the 'gluster volume set $volname features.snapshot-directory $dirname' command, the directory name was not being validated correctly. This allowed any combination of characters in the directory name, which meant that other commands failed when attempting to handle the directory name. This update introduces directory name validation. Directory names can use only alphanumeric characters, '-', '_', or '.' and should start with a dot(.). Additionally, the size of the directory name cannot exceed 255 characters. Failing to adhere to these requirements results in an error message.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-06-23 04:53:37 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: | 1299184 | ||
|
Description
Rahul Hinduja
2014-11-11 12:22:53 UTC
Patch submitted upstream: http://review.gluster.org/9209 Master URL: http://review.gluster.org/#/c/9209/ (MERGED) Release 3.7 URL: http://review.gluster.org/#/c/13409/ (MERGED) gluster v set testvol features.snapshot-directory .abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghiabcdefghijklmnopqrstuvwyxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvyxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghij volume set: success [root@dhcp46-4 ~]# gluster v info Volume Name: testvol Type: Distributed-Replicate Volume ID: 60769503-f742-458d-97c0-8e090147f82a Status: Started Number of Bricks: 2 x 2 = 4 Transport-type: tcp Bricks: Brick1: 10.70.46.4:/rhs/brick1/b1 Brick2: 10.70.47.46:/rhs/brick2/b2 Brick3: 10.70.46.213:/rhs/brick3/b3 Brick4: 10.70.46.148:/rhs/brick4/b4 Options Reconfigured: features.snapshot-directory: .abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghiabcdefghijklmnopqrstuvwyxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvyxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghij features.barrier: disable features.uss: enable performance.readdir-ahead: on snap-activate-on-create: enable ========================================= On Client [root@dhcp46-47 .abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghiabcdefghijklmnopqrstuvwyxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvyxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghij]# pwd /mnt/fuse/.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghiabcdefghijklmnopqrstuvwyxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvyxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghij [root@dhcp46-47 .abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghiabcdefghijklmnopqrstuvwyxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvyxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghij]# ls snap1 snap2 snap3 Bug verified on build glusterfs-3.7.9-1.el7rhgs.x86_64 [root@dhcp46-4 ~]# gluster v set testvol features.snapshot-directory .abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghiabcdefghijklmnopqrstuvwyxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvyxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmno volume set: failed: value of features.snapshot-directory exceedes 255 characters Hi Laura, I have reviewed the doc text and it looks fine. 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/RHBA-2016:1240 |