Bug 1564747
| Summary: | freeipa-client-common conflicts with ipa-client-common-4.5.0-22.el7.centos.noarch | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | lejeczek <peljasz> |
| Component: | yum | Assignee: | Michal Domonkos <mdomonko> |
| Status: | CLOSED ERRATA | QA Contact: | Jan Blazek <jblazek> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.3 | CC: | frenaud, hasuzuki, james.antill, jcastran, jwboyer, ksrot, lberton, mdekan, mdomonko, peljasz, pmatilai, pvoborni, rcritten, tscherf |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | yum-3.4.3-164.el7 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-03-31 20:03:32 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1630909, 1716964 | ||
This looks like an issue in yum for me. IPA packages on fedora are named freeipa-server, freeipa-client etc... while in RHEL they are named ipa-server, ipa-client etc...
ipa.spec defines on purpose conflicts with freeipa-* packages from fedora:
%global alt_name freeipa
Provides: %{alt_name}-server = %{version}
Conflicts: %{alt_name}-server
Obsoletes: %{alt_name}-server < %{version}
It looks like yum is not able to handle this situation, hence moving this issue to yum component.
Looks that this is the problem # rpm -q --provides ipa-client-common config(ipa-client-common) = 4.6.4-10.el7 freeipa-client-common = 4.6.4 ipa-client-common = 4.6.4-10.el7 # rpm -q --conflicts ipa-client-common freeipa-client-common on reinstall the package conflicts with its own provides. yum should not be considering such conflicts valid. Which yum version is this? The issue has been fixed in yum-3.4.3-154.el7 shipped with RHEL-7.4. Could you please update yum to that version and try again? yum-3.4.3-161.el7.noarch OK, I can reproduce this. Turns out the previous fix (bug 1370134) only covers some code paths (such as "yum check") but not this one. We'll consider this for 7.7. *** Bug 1653364 has been marked as a duplicate of this bug. *** That'd be an rpm bug. There's an unhandled corner-case with self-conflicts on (re)installation of already installed packages and that affects upstream rpm too. I've a preliminary fix for this, and what I have now is not an intrusive patch so it could be considered for rhel-7: 3 files changed, 21 insertions(+), 5 deletions(-) Now I'll just need to mull over it a bit to understand whether this fix is actually the right thing to do, there are a few different approaches possible and it's all a bit subtle. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1122 |
Description of problem: $ yum reinstall -y ipa-client-common-4.5.0-22.el7.centos.noarch.rpm Loaded plugins: fastestmirror, langpacks, post-transaction-actions, product-id, search-disabled-repos, : subscription-manager, tsflags This system is not registered with an entitlement server. You can use subscription-manager to register. Examining ipa-client-common-4.5.0-22.el7.centos.noarch.rpm: ipa-client-common-4.5.0-22.el7.centos.noarch Resolving Dependencies --> Running transaction check ---> Package ipa-client-common.noarch 0:4.5.0-22.el7.centos will be reinstalled --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================= Package Arch Version Repository Size ============================================================================================================= Reinstalling: ipa-client-common noarch 4.5.0-22.el7.centos /ipa-client-common-4.5.0-22.el7.centos.noarch 44 k Transaction Summary ============================================================================================================= Reinstall 1 Package Total size: 44 k Installed size: 44 k Downloading packages: Running transaction check ERROR with transaction check vs depsolve: freeipa-client-common conflicts with ipa-client-common-4.5.0-22.el7.centos.noarch freeipa-client-common conflicts with (installed) ipa-client-common-4.5.0-22.el7.centos.noarch ..and ★ RIDER 100 ~]$ rpm -Uv --force ipa-client-common-4.5.0-22.el7.centos.noarch.rpm error: Failed dependencies: freeipa-client-common conflicts with ipa-client-common-4.5.0-22.el7.centos.noarch freeipa-client-common conflicts with (installed) ipa-client-common-4.5.0-22.el7.centos.noarch Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: