Bug 1221042

Summary: new static uid/gid for ceph
Product: Red Hat Enterprise Linux 6 Reporter: Ondrej Vasik <ovasik>
Component: setupAssignee: Ondrej Vasik <ovasik>
Status: CLOSED ERRATA QA Contact: Jan Ščotka <jscotka>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8CC: branto, extras-qa, kdreyer, mbroz, ovasik, pknirsch, psklenar
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: setup-2.8.14-22.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1220846 Environment:
Last Closed: 2017-03-21 11:34:46 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: 1220846, 1221043    
Bug Blocks: 1217817    

Description Ondrej Vasik 2015-05-13 08:12:42 UTC
+++ This bug was initially created as a clone of Bug #1220846 +++

Please assign a static UID/GID for ceph (this was approved by the FPC at https://fedorahosted.org/fpc/ticket/524). The user and group names can simply be "ceph".

It would be ideal if we could have the same numeric UID on RHEL 5/6/7 as on Fedora.

--- Additional comment from Ondrej Vasik on 2015-05-12 11:44:10 EDT ---

Thanks for the ticket and bz.
RHEL 5 is not possible, I can't make static reservation above 100 there and there are no free slots under 100. Should be safe to use static ID from RHEL6/7 there, though.

Any prefered homedir? (can be just / or /var/ceph ...)
What package will "own" that user creation?
I'll set /sbin/nologin as user shell, if there are no objections.

Once the information is provided, I'll assign some id to ceph in next Rawhide setup build.

--- Additional comment from Ken Dreyer (Red Hat) on 2015-05-12 12:15:03 EDT ---

Thanks Ondřej, it's fine to skip RHEL 5. RHEL 6 and 7 will be great.

Preferred homedir: /var/lib/ceph
Package that will "own" the UID: "ceph"
No objections to /sbin/nologin.

--- Additional comment from Ken Dreyer (Red Hat) on 2015-05-12 17:35:09 EDT ---

(In reply to Ken Dreyer (Red Hat) from comment #2)
> Package that will "own" the UID: "ceph"

Sage pointed out to me that the actual binary RPM is "ceph-common" (which comes from the "ceph" SRPM). Not sure what you want to put into https://git.fedorahosted.org/cgit/setup.git/tree/uidgid for that.

--- Additional comment from Ondrej Vasik on 2015-05-13 03:56:24 EDT ---

ceph	167	167	/var/lib/ceph		/sbin/nologin	ceph-common

Entry added to https://git.fedorahosted.org/cgit/setup.git/tree/uidgid and built in Rawhide. 
I'm going to clone this into RHEL 6/7 - but feel free to start with using it there even if the bz is not yet resolved (it is just documentation and I expect to get this fixed in next minor RHEL update through fastrack). Built as setup-2.9.8-1.fc23 - closing Rawhide.

Comment 9 errata-xmlrpc 2017-03-21 11:34:46 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://rhn.redhat.com/errata/RHBA-2017-0760.html