Bug #13346
closedceph %post scriptlet assumes existence of user/group created by a different package
0%
Description
https://github.com/ceph/ceph/commit/ceb93e8e69e125c9358f63b0099e7509b6624bcf moved the creation of the "ceph" user and "ceph" group from the ceph package's %pre scriptlet to that of the ceph-common package. However, the systemd-tmpfiles --create
command stayed in the ceph package's scriptlets.
This causes trouble in the OBS http://build.opensuse.org because at the end of each build it runs a command that checks the scriptlets to make sure they are idempotent. It does this by running the scriptlet, with the result that the systemd-tmpfiles --create
command fails because the "ceph" user and group do not exist.
Now, we could consider whether that isn't a bug in the OBS validation script. On the other hand, having the "ceph" package run a command that assumes the existence of a user and group that are created by another package is, at best, questionable.