Project

General

Profile

Bug #9587

ceph-radosgw sysvinit script on EL6 cannot set ulimit

Added by Alexandre Marangone over 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
% Done:

90%

Source:
Support
Tags:
Backport:
giant
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The script tries to set ulimit -n 32768 as the apache user. It errors to:
bash: line 0: ulimit: open files: cannot modify limit: Operation not permitted

OT: There is still an inconsistency between DEB and RPM where the radosgw is launched as root on DEB, and apache on RPM.

Version is: ceph-radosgw-0.80.5-0.el6.x86_64

Associated revisions

Revision 9803cedf (diff)
Added by Sage Weil over 9 years ago

init-radosgw.sysv: set ulimit -n before starting daemon

If we do the ulimit inside the daemon command we will have already
dropped privs and will fail.

Fixes: #9587
Backport: giant, firefly
Signed-off-by: Sage Weil <>

Revision 534624b7 (diff)
Added by Sage Weil about 9 years ago

init-radosgw.sysv: set ulimit -n before starting daemon

If we do the ulimit inside the daemon command we will have already
dropped privs and will fail.

Fixes: #9587
Backport: giant, firefly
Signed-off-by: Sage Weil <>
(cherry picked from commit 9803cedf54a7baff45ccd0e0f65d2bc220958a46)

Revision d21f4e32 (diff)
Added by Sage Weil about 9 years ago

init-radosgw.sysv: set ulimit -n before starting daemon

If we do the ulimit inside the daemon command we will have already
dropped privs and will fail.

Fixes: #9587
Backport: giant, firefly
Signed-off-by: Sage Weil <>
(cherry picked from commit 9803cedf54a7baff45ccd0e0f65d2bc220958a46)

History

#1 Updated by Sage Weil over 9 years ago

  • Priority changed from Normal to Urgent

#2 Updated by Sage Weil over 9 years ago

  • Status changed from New to Fix Under Review

https://github.com/ceph/ceph/pull/2771

This could use a manual test as well to ensure the limit is properly set on the radosgw process. Need tod o something like cat /proc/`pidof radosgw`/limits to see if it worked..

#3 Updated by Yehuda Sadeh over 9 years ago

  • Assignee set to Sage Weil

The pull request is closed, anything new with this one?

#4 Updated by Loïc Dachary over 9 years ago

  • Status changed from Fix Under Review to Pending Backport
  • % Done changed from 0 to 90

#5 Updated by Sage Weil over 9 years ago

  • Priority changed from Urgent to High

#6 Updated by Loïc Dachary about 9 years ago

  • Backport set to giant

#7 Updated by Loïc Dachary about 9 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF