Actions
Bug #10125
closedradosgw is being started as root not apache with systemd
% Done:
0%
Source:
Support
Tags:
Backport:
giant, firefly
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
On RHEL 7 when radosgw is started with systemd it runs as root not apache which causes problems with the s3gw.fcgi is called by apache user.
https://github.com/ceph/ceph/blob/master/src/init-radosgw.sysv#L88
$SYSTEMD_RUN -r bash -c "ulimit -n 32768; $RADOSGW -n $name"
Should probably be something like:
$SYSTEMD_RUN --user="$user" -r bash -c "ulimit -n 32768; $RADOSGW -n $name"
Updated by Sage Weil over 9 years ago
- Assignee changed from Yehuda Sadeh to Loïc Dachary
- Priority changed from Normal to Urgent
- Backport set to giant, firefly
Updated by Loïc Dachary over 9 years ago
- Status changed from New to 7
Updated by Loïc Dachary over 9 years ago
I would like to test it manually but I don't know how to get a centos7 VPS. Help ?
Updated by Loïc Dachary over 9 years ago
- Status changed from 7 to Fix Under Review
[ubuntu@vpm145 ~]$ sudo systemctl start ceph-radosgw [ubuntu@vpm145 ~]$ ps fauwwx | grep rados apache 18700 0.0 0.4 772320 8064 ? Ssl 09:55 0:00 /bin/radosgw -n client.radosgw.gateway [ubuntu@vpm145 ~]$ lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.0.1406 (Core) Release: 7.0.1406 Codename: Core
Updated by Sage Weil over 9 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Loïc Dachary over 9 years ago
- giant backport https://github.com/ceph/ceph/pull/3085
- firefly backport https://github.com/ceph/ceph/pull/3086
Updated by Loïc Dachary over 9 years ago
- Status changed from Pending Backport to Fix Under Review
Updated by Sage Weil over 9 years ago
- Status changed from Fix Under Review to Resolved
Actions