Project

General

Profile

Actions

Bug #10125

closed

radosgw is being started as root not apache with systemd

Added by Sheldon Mustard over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% 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"

Actions #1

Updated by Ian Colle over 9 years ago

  • Assignee set to Yehuda Sadeh
Actions #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
Actions #3

Updated by Loïc Dachary over 9 years ago

  • Status changed from New to 7
Actions #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 ?

Actions #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
Actions #6

Updated by Sage Weil over 9 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #8

Updated by Loïc Dachary over 9 years ago

  • Status changed from Pending Backport to Fix Under Review
Actions #9

Updated by Sage Weil over 9 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF