Project

General

Profile

Actions

Bug #13346

closed

ceph %post scriptlet assumes existence of user/group created by a different package

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

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

0%

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

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.

Actions #1

Updated by Ken Dreyer over 8 years ago

makes sense to me

Actions #2

Updated by Nathan Cutler over 8 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Nathan Cutler over 8 years ago

  • Status changed from In Progress to Fix Under Review
Actions #4

Updated by Boris Ranto over 8 years ago

  • Status changed from Fix Under Review to Resolved

The patch was merged to infernalis branch.

Actions

Also available in: Atom PDF