Project

General

Profile

Bug #10125

radosgw is being started as root not apache with systemd

Added by Sheldon Mustard almost 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
Start date:
11/17/2014
Due date:
% Done:

0%

Source:
Support
Tags:
Backport:
giant, firefly
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

Revision 7b621f4a (diff)
Added by Loic Dachary almost 5 years ago

rgw: run radosgw as apache with systemd

Same as sysv.

http://tracker.ceph.com/issues/10125 Fixes: #10125

Signed-off-by: Loic Dachary <>

Revision dabf6f5f (diff)
Added by Loic Dachary almost 5 years ago

rgw: run radosgw as apache with systemd

Same as sysv.

http://tracker.ceph.com/issues/10125 Fixes: #10125

Signed-off-by: Loic Dachary <>
(cherry picked from commit 7b621f4abf63456272dec3449aa108c89504a7a5)

Conflicts:
src/init-radosgw.sysv

Revision 9f3b21d1 (diff)
Added by Loic Dachary almost 5 years ago

rgw: run radosgw as apache with systemd

Same as sysv.

http://tracker.ceph.com/issues/10125 Fixes: #10125

Signed-off-by: Loic Dachary <>
(cherry picked from commit 7b621f4abf63456272dec3449aa108c89504a7a5)

Conflicts:
src/init-radosgw.sysv

History

#1 Updated by Ian Colle almost 5 years ago

  • Assignee set to Yehuda Sadeh

#2 Updated by Sage Weil almost 5 years ago

  • Assignee changed from Yehuda Sadeh to Loic Dachary
  • Priority changed from Normal to Urgent
  • Backport set to giant, firefly

#3 Updated by Loic Dachary almost 5 years ago

  • Status changed from New to Testing

#4 Updated by Loic Dachary almost 5 years ago

I would like to test it manually but I don't know how to get a centos7 VPS. Help ?

#5 Updated by Loic Dachary almost 5 years ago

  • Status changed from Testing to Need 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 almost 5 years ago

  • Status changed from Need Review to Pending Backport

#8 Updated by Loic Dachary almost 5 years ago

  • Status changed from Pending Backport to Need Review

#9 Updated by Sage Weil almost 5 years ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF