Project

General

Profile

Actions

Fix #15246

closed

SUSE: creation of ceph user/group in %pre common should prefer uid/gid 167

Added by Nathan Cutler about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Currently the ceph-common %pre scriptlet creates the "ceph" user and group if they do not exist.

Add logic to prefer uid/gid 167 in the creation step.

Actions #1

Updated by Nathan Cutler about 8 years ago

Use something like this to test whether a given UID/GID is in use:

# export CEPH_GROUP_ID=485
# cat /etc/group | cut -d ':' -f 3 | grep -E "^$CEPH_GROUP_ID$" 
485
Actions #2

Updated by Nathan Cutler about 8 years ago

  • Source changed from other to Community (dev)
Actions #3

Updated by Nathan Cutler about 8 years ago

Checking /etc/passwd and /etc/group is not sufficient, because users and groups can be created by YP/NIS, LDAP etc.

Actions #4

Updated by Nathan Cutler about 8 years ago

  • Status changed from New to Fix Under Review
Actions #5

Updated by Sage Weil about 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF