Bug 1214518

Summary: rgw attempts to start using "apache" UID
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Ken Dreyer (Red Hat) <kdreyer>
Component: BuildAssignee: Ken Dreyer (Red Hat) <kdreyer>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.3.0CC: flucifre, smanjara, wusui
Target Milestone: rc   
Target Release: 1.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-0.94.1-6.el7cp Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1214823 (view as bug list) Environment:
Last Closed: 2015-06-24 15:52:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1209975    

Description Ken Dreyer (Red Hat) 2015-04-22 22:33:44 UTC
Description of problem:
There are rumors on the ceph-users mailing list that the ceph-radosgw service fails to start if the httpd package is not installed. This is because the init.d file attempts to start the RGW process with the "apache" UID. If a user is running civetweb, there is no reason for the httpd package to be present on the system.

We should switch the init script to use "root" as is done on Debian/Ubuntu.

Version-Release number of selected component (if applicable):
ceph-0.94.1-5.el7cp

See http://lists.ceph.com/pipermail/ceph-users-ceph.com/2015-April/000257.html

Comment 1 Ken Dreyer (Red Hat) 2015-04-23 21:22:42 UTC
QE team: in order to verify this bug is fixed, you should verify that "service ceph-radosgw start" works even when the httpd package is not installed on the system.

Comment 5 shilpa 2015-06-02 09:00:43 UTC
Verified on ceph-0.94.1-11.el7cp.x86_64. 

ceph-radosgw starts without httpd service. 

# service httpd status
Redirecting to /bin/systemctl status  httpd.service
httpd.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)


# service ceph-radosgw start
Starting ceph-radosgw (via systemctl):  [  OK  ]

Comment 7 errata-xmlrpc 2015-06-24 15:52:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2015:1183