Bug 1368138
Summary: | Crash of glusterd when using long username with geo-replication | |||
---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Saravanakumar <sarumuga> | |
Component: | geo-replication | Assignee: | Saravanakumar <sarumuga> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | mainline | CC: | amukherj, bugs, bugzilla, smohan | |
Target Milestone: | --- | Keywords: | Triaged | |
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.10.0 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 1363613 | |||
: | 1403108 (view as bug list) | Environment: | ||
Last Closed: | 2017-03-06 17:22:51 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: | 1363613, 1403109 | |||
Bug Blocks: | 1400365, 1403108 |
Description
Saravanakumar
2016-08-18 13:55:19 UTC
REVIEW: http://review.gluster.org/15199 (geo-rep: Verify login name length during geo-rep create) posted (#1) for review on master by Saravanakumar Arumugam (sarumuga) REVIEW: http://review.gluster.org/16053 (glusterd/geo-rep: Fix glusterd crash) posted (#1) for review on master by Kotresh HR (khiremat) COMMIT: http://review.gluster.org/16053 committed in master by Atin Mukherjee (amukherj) ------ commit 41a71b47f75a52f50ad2754cce679407ebade767 Author: Kotresh HR <khiremat> Date: Wed Dec 7 07:36:19 2016 -0500 glusterd/geo-rep: Fix glusterd crash Problem: glusterd crashes when geo-rep mountbroker setup is created if the slave user length is more than 8 characters. Cause: _POSIX_LOGIN_NAME_MAX is used which is 9 including NULL byte. Analysis: While the man page says it sufficient for portability, but acutally it's not. Linux allows the creation of username upto 32 characters by default where the max length is 256. And NetBSD's max is 17. Linux: #getconf LOGIN_NAME_MAX 256 NetBSD: #getconf LOGIN_NAME_MAX 17 Fix: Use LOGIN_NAME_MAX instead of _POSIX_LOGIN_NAME_MAX Change-Id: I26b7230433ecbbed6e6914ed39221a478c0266a8 BUG: 1368138 Signed-off-by: Kotresh HR <khiremat> Reviewed-on: http://review.gluster.org/16053 Smoke: Gluster Build System <jenkins.org> NetBSD-regression: NetBSD Build System <jenkins.org> CentOS-regression: Gluster Build System <jenkins.org> Reviewed-by: Aravinda VK <avishwan> Reviewed-by: Atin Mukherjee <amukherj> This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.10.0, please open a new bug report. glusterfs-3.10.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://lists.gluster.org/pipermail/gluster-users/2017-February/030119.html [2] https://www.gluster.org/pipermail/gluster-users/ |