[Bugs] [Bug 1788806] New: __server_getspec(), volume path limited to 255 chars

bugzilla at redhat.com bugzilla at redhat.com
Wed Jan 8 07:14:16 UTC 2020


https://bugzilla.redhat.com/show_bug.cgi?id=1788806

            Bug ID: 1788806
           Summary: __server_getspec(), volume path limited to 255 chars
           Product: GlusterFS
           Version: 6
                OS: Linux
            Status: NEW
         Component: glusterd
          Severity: high
          Assignee: bugs at gluster.org
          Reporter: sean at boran.com
                CC: bugs at gluster.org
  Target Milestone: ---
    Classification: Community



Description of problem:

Snapshot volumes with a path larger than 255 can be created, but not activated.
The limit should be 4096 chars.


How reproducible:

snapshot create
my-foo-volume-long-name-logs-volume-claim-tmp_684032fa-314d-11ea-9698-0050569b592b-snap-20200107-1456
my-foo-volume-long-name-logs-volume-claim-tmp_684032fa-314d-11ea-9698-0050569b592b
no-timestamp : SUCCESS

sudo /usr/sbin/gluster snapshot activate
my-foo-volume-long-name-logs-volume-claim-tmp_684032fa-314d-11ea-9698-0050569b592b-snap-20200107-1456'

glusterd.log:[2020-01-07 13:56:07.813431] E [MSGID: 106202]
[glusterd-handshake.c:919:__server_getspec] 0-management: volume name too long
(/snaps/my-foo-volume-long-name-logs-volume-claim-tmp_684032fa-314d-11ea-9698-0050569b592b-snap-20200107-1456/b7a7c659e3b146cb818bd86fe3edc97c/b7a7c659e3b146cb818bd86fe3edc97c.10.230.151.80.run-gluster-snaps-b7a7c659e3b146cb818bd86fe3edc97c-brick1-brick)
[Invalid argument]


Steps to Reproduce:
1. create volume with long name
2. create snapshot
3. activate the snapshot

Actual results:
"volume name too long"


Expected results:
Volume activated


Additional info:

The limitation is in
https://github.com/gluster/glusterfs/blob/master/xlators/mgmt/glusterd/src/glusterd-handshake.c#L937

Seems like a bug ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list