-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpm: unconditionally set ceph user's primary group to ceph (SUSE) #9106
Conversation
Note that in Debian there is an unconditional |
This commit brings the user/group creation into greater semantic alignment with the Debian packaging. Fixes: http://tracker.ceph.com/issues/15869 Signed-off-by: Nathan Cutler <ncutler@suse.com>
@ktdreyer @BRANTO1 I'm a little worried about the RH user/group creation semantics - especially the |
Yes, that was my assumption, too, but intentional or not I don't think it's good for the ceph packaging to create a second "ceph" user with a differing UID. Do you? Also, the behavior is inconsistent across the supported distros - Debian and SUSE packaging do not use |
I created http://tracker.ceph.com/issues/15876 to track the RH |
I'm not sure, here. It depends on how the underlying ceph daemons handle the case of multiple Nevertheless, the underlying daemons should be able to handle this case as we might be on a system that created |
Yes, but only in RH/CentOS/Fedora. The Debian/Ubuntu and SUSE packaging takes care not to create a second ceph user. |
I would not be that sure about it. What happens if you have your own ceph user, upgrade the machine and the new system package that creates a ceph user with system (static) uid comes up? I doubt it will modify or delete the existing user. |
@BRANTO1 It does modify the existing user to ensure its primary group is "ceph". Here's what happens in Debian/Ubuntu: https://github.com/ceph/ceph/blob/master/debian/ceph-common.postinst#L39-L65 What happens in SUSE is the subject matter of this PR. . . |
Essentially, the daemons cannot assume that the user "ceph" will be a system user. |
The daemons don't (afaik, they get the UID from packaging), the users might (especially when hot-swapping disks). I guess that was the reason for forcing non-unique users, there. Anyway, I originally thought that when you add a new system/static UID to the packaging (package setup in fedora/rhel), it will be automatically created after upgrade. I'm not so sure about it any more, though. |
@ktdreyer Pinging in case you'd like to review. If there are no objections, I will merge. |
👍 LGTM |
Note this PR introduced a regression (trailing whitespace) which is fixed by #10707 |
This commit brings the user/group creation into greater semantic alignment
with the Debian packaging, but only for SUSE.
Fixes: http://tracker.ceph.com/issues/15869
Signed-off-by: Nathan Cutler ncutler@suse.com