Project

General

Profile

Actions

Bug #40692

closed
DT AE

Ceph daemons failing to start when large unix groups exist

Bug #40692: Ceph daemons failing to start when large unix groups exist

Added by David Turner over 7 years ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Community (user)
Backport:
quincy,reef,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v19.3.0-5350-g30de906e46
Released In:
v20.2.0~1874
Upkeep Timestamp:
2026-08-28T01:38:26+00:00

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/


Related issues 3 (0 open — 3 closed)

Copied to RADOS - Backport #68388: squid: Ceph daemons failing to start when large unix groups existResolvedAdam Emerson

Actions
Copied to RADOS - Backport #68389: reef: Ceph daemons failing to start when large unix groups existResolvedAdam Emerson

Actions
Copied to RADOS - Backport #68390: quincy: Ceph daemons failing to start when large unix groups existResolvedAdam Emerson

Actions

GF Updated by Greg Farnum over 7 years ago Actions #1

  • Project changed from Ceph to RADOS

CB Updated by Casey Bodley about 2 years ago Actions #2

  • Status changed from New to Fix Under Review
  • Pull request ID set to 60094

AE Updated by Adam Emerson about 2 years ago Actions #3

  • Assignee set to Adam Emerson
  • Pull request ID changed from 60094 to 60095

AE Updated by Adam Emerson about 2 years ago Actions #4

  • Pull request ID changed from 60095 to 60094

ID Updated by Ilya Dryomov about 2 years ago Actions #5

  • Backport set to quincy,reef,squid
  • Pull request ID changed from 60094 to 60095

CB Updated by Casey Bodley about 2 years ago Actions #6

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot about 2 years ago Actions #7

  • 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 Actions #8

  • 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 Actions #9

  • 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 Actions #10

  • Tags (freeform) set to backport_processed

AE Updated by Adam Emerson almost 2 years ago Actions #11

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot over 1 year ago Actions #12

  • 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 Actions #13

  • 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 Actions #14

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-01T01:34:55+00:00 to 2026-08-28T01:38:26+00:00
Actions

Also available in: PDF Atom