RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1163086 - Wrong ordering of sssd's subpackages installation
Summary: Wrong ordering of sssd's subpackages installation
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rpm
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Panu Matilainen
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-12 10:53 UTC by Jakub Hrozek
Modified: 2014-11-12 15:19 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-12 15:19:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jakub Hrozek 2014-11-12 10:53:48 UTC
Description of problem:
SSSD is split into multiple subpackages, the bottom of the tree being sssd-common. It would be helpful if we could rely on sssd-common being installed first (so that its %pre scripts can run first) but that doesn't see to be happening, we saw an occurence of sssd-krb5-common being installed before sssd-common.

Version-Release number of selected component (if applicable):
rpm-4.11.1-16.el7.x86_64

How reproducible:
intermittent, it's an ordering issue

Steps to Reproduce:
1. yum install sssd
2.
3.

Actual results:
sssd-krb5-common gets installed before sssd-common. Because sssd-krb5-common owns files as the sssd user, but the sssd user is only created in sssd-common's %pre script, installation of sssd-krb5-common fails.

Expected results:
sssd-common gets installed first.

Additional info:
Initially, it was hinted by the RPM developers that we have an ordering issue in our subpackages. I find that a more plausible option than an RPM bug :-) but at the same time I tried to follow their advice, and the deps seem correct to me. 

Here I tried to install sssd-common:
bash-4.2# rpm -i --deploops sssd-common-1.11.2-68.el7_0.6.x86_64.rpm  
error: Failed dependencies:
	libsss_idmap(x86-64) = 1.11.2-68.el7_0.6 is needed by sssd-common-1.11.2-68.el7_0.6.x86_64
	libsss_idmap.so.0()(64bit) is needed by sssd-common-1.11.2-68.el7_0.6.x86_64
	sssd-client(x86-64) = 1.11.2-68.el7_0.6 is needed by sssd-common-1.11.2-68.el7_0.6.x86_64
bash-4.2# rpm -i --deploops sssd-common-1.11.2-68.el7_0.6.x86_64.rpm sssd-client-1.11.2-68.el7_0.6.x86_64.rpm 
error: Failed dependencies:
	libsss_idmap(x86-64) = 1.11.2-68.el7_0.6 is needed by sssd-common-1.11.2-68.el7_0.6.x86_64
	libsss_idmap.so.0()(64bit) is needed by sssd-common-1.11.2-68.el7_0.6.x86_64
bash-4.2# rpm -i --deploops sssd-common-1.11.2-68.el7_0.6.x86_64.rpm sssd-client-1.11.2-68.el7_0.6.x86_64.rpm libsss_idmap-1.11.2-68.el7_0.6.x86_64.rpm 
bash-4.2# rpm -q sssd-krb5-common
package sssd-krb5-common is not installed
bash-4.2# rpm -qp --requires sssd-krb5-common-1.11.2-68.el7_0.6.x86_64.rpm | grep common
sssd-common = 1.11.2-68.el7_0.6

Comment 4 Jakub Hrozek 2014-11-12 15:19:50 UTC
This is an SSSD bug.

The cyclic dependency was introduced in SSSD in commit cc1c033c34b5f816b633d27a21aefbf811a7cf72

I made the mistake of only comparing the Requires in the specfile and not the implicit Requires added by RPM when we moved an internal library around. Sorry for wasting your time.


Note You need to log in before you can comment on or make changes to this bug.