Bug #40692
closedCeph daemons failing to start when large unix groups exist
0%
Description
While tracking down this [1] error I found where the error came from in the [2] code and looked into the getgrnam_r function. The problem seems to be well outlined [3] here and is that large unix groups can easily over-use the buffer and error out. Most of my Ceph hosts have the ceph group above these large groups, but on one of them the ceph group got placed below them and this error showed up. The recommendation on that website is to check for this error and re-attempt the call with a larger buffer. I did move the ceph line in /etc/group up above the large group lines and the daemons started successfully.
Additional note. I discovered this while running 12.2.12, but this code is unchanged in master.
[1] unable to look up group 'ceph': (34) Numerical result out of range
[2] https://github.com/ceph/ceph/blob/8e8db703172fc9bccd96b7de344d6a7d761b7862/src/global/global_init.cc#L246-L261
[3] https://tomlee.co/2012/10/problems-with-large-linux-unix-groups-and-getgrgid_r-getgrnam_r/
GF Updated by Greg Farnum over 7 years ago
- Project changed from Ceph to RADOS
CB Updated by Casey Bodley about 2 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 60094
AE Updated by Adam Emerson about 2 years ago
- Assignee set to Adam Emerson
- Pull request ID changed from 60094 to 60095
AE Updated by Adam Emerson about 2 years ago
- Pull request ID changed from 60095 to 60094
ID Updated by Ilya Dryomov about 2 years ago
- Backport set to quincy,reef,squid
- Pull request ID changed from 60094 to 60095
CB Updated by Casey Bodley about 2 years ago
- Status changed from Fix Under Review to Pending Backport
UB Updated by Upkeep Bot about 2 years ago
- Copied to Backport #68388: squid: Ceph daemons failing to start when large unix groups exist added
UB Updated by Upkeep Bot about 2 years ago
- Copied to Backport #68389: reef: Ceph daemons failing to start when large unix groups exist added
UB Updated by Upkeep Bot about 2 years ago
- Copied to Backport #68390: quincy: Ceph daemons failing to start when large unix groups exist added
UB Updated by Upkeep Bot about 2 years ago
- Tags (freeform) set to backport_processed
AE Updated by Adam Emerson almost 2 years ago
- Status changed from Pending Backport to Resolved
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to 30de906e4613fa6d636b0633b2bcc471c591e395
- Fixed In set to v19.3.0-5350-g30de906e46
- Upkeep Timestamp set to 2025-07-17T01:38:14+00:00
UB Updated by Upkeep Bot about 1 year ago
- Released In set to v20.2.0~1874
- Upkeep Timestamp changed from 2025-07-17T01:38:14+00:00 to 2025-11-01T01:34:55+00:00
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2025-11-01T01:34:55+00:00 to 2026-08-28T01:38:26+00:00