Bug #10125
radosgw is being started as root not apache with systemd
0%
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"
Associated revisions
rgw: run radosgw as apache with systemd
Same as sysv.
http://tracker.ceph.com/issues/10125 Fixes: #10125
Signed-off-by: Loic Dachary <loic@dachary.org>
rgw: run radosgw as apache with systemd
Same as sysv.
http://tracker.ceph.com/issues/10125 Fixes: #10125
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 7b621f4abf63456272dec3449aa108c89504a7a5)
Conflicts:
src/init-radosgw.sysv
rgw: run radosgw as apache with systemd
Same as sysv.
http://tracker.ceph.com/issues/10125 Fixes: #10125
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 7b621f4abf63456272dec3449aa108c89504a7a5)
Conflicts:
src/init-radosgw.sysv
History
#1 Updated by Ian Colle over 9 years ago
- Assignee set to Yehuda Sadeh
#2 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
#3 Updated by Loïc Dachary over 9 years ago
- Status changed from New to 7
#4 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 ?
#5 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
#6 Updated by Sage Weil over 9 years ago
- Status changed from Fix Under Review to Pending Backport
#7 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
#8 Updated by Loïc Dachary over 9 years ago
- Status changed from Pending Backport to Fix Under Review
#9 Updated by Sage Weil over 9 years ago
- Status changed from Fix Under Review to Resolved