Bug #9587
ceph-radosgw sysvinit script on EL6 cannot set ulimit
90%
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
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 <sage@redhat.com>
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 <sage@redhat.com>
(cherry picked from commit 9803cedf54a7baff45ccd0e0f65d2bc220958a46)
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 <sage@redhat.com>
(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