Bug 1930004 - rdma-core cannot be uninstalled on Fedora Workstation
Summary: rdma-core cannot be uninstalled on Fedora Workstation
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rdma-core
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Honggang LI
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-18 07:14 UTC by Tim Jackson
Modified: 2021-09-03 00:15 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-09-03 00:15:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tim Jackson 2021-02-18 07:14:36 UTC
Per

https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/message/3CFMNNBWU6GGSEKOTL46IZK5TLYFDBUI/

there is some unclear dependency chain that means rdma-core is installed on desktop systems that have no need for it, and it cannot be uninstalled as dnf claims it would remove systemd.

Version-Release number of selected component (if applicable):

rdma-core-33.0-2.fc33.x86_64
rdma-core-33.0-2.fc33.i686
libibverbs-33.0-2.fc33.x86_64
libibverbs-33.0-2.fc33.i686


How reproducible: Always

Steps to Reproduce:
dnf erase rdma-core


Actual results:
Error:
  Problem: The operation would result in removing the following protected 
packages: systemd

Expected results:
rdma-core is uninstalled

Additional info:


# rpm -q --whatrequires libpcap
no package requires libpcap
# rpm -q --whatrequires libpcap.so.1
no package requires libpcap.so.1
# rpm -q --whatrequires 'libpcap(x86-64)'
wine-core-6.0-1.fc33.x86_64
# rpm -q --whatrequires 'libpcap(x86-32)'
wine-core-6.0-1.fc33.i686

# dnf erase libpcap
Error:
 Problem: The operation would result in removing the following protected packages: systemd

rpmreaper doesn't seem to show any dep between libpcap and systemd either.

Comment 1 Otto Liljalaakso 2021-02-20 17:00:14 UTC
I found the following chain, using rpmreaper:

rdma-core <- libibverbs <- libpcap <- iptables-libs <- systemd

I do not know what most of these are, so I cannot say if this is to expected or not.

Comment 2 Jan Vlug 2021-04-28 07:07:39 UTC
I confirm this issue. It is preventing me from upgrading to Fedora 34, because:
Error: 
 Problem: rdma-core-34.0-1.fc33.i686 has inferior architecture
  - rdma-core-34.0-1.fc33.x86_64 does not belong to a distupgrade repository
  - problem with installed package rdma-core-34.0-1.fc33.i686
(try to add '--skip-broken' to skip uninstallable packages)

Comment 3 Otto Liljalaakso 2021-04-28 09:07:57 UTC
Jan,

Does the solution for rdma-core.i686 is Common Bugs page solve your upgrade problem?

https://fedoraproject.org/wiki/Common_F34_bugs#Upgrade_to_Fedora_34_may_fail_if_i686_rdma-core_package_installed

Comment 4 Jan Vlug 2021-04-28 10:09:12 UTC
Hello Otto, yes using --allowerasing made the upgrade going.

Comment 5 Kevin Fenzi 2021-09-01 17:58:43 UTC
Not sue why this is against distribution. Moving to rdma-core folks (although I suspect it's long since fixed and can be closed)

Comment 6 Honggang LI 2021-09-03 00:15:44 UTC
Issue had been fixed for fedora-34.

~]$ sudo dnf erase rdma-core
[sudo] password for fc34: 
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Dependencies resolved.
===================================================================================================================================================================================================
 Package                                        Architecture                                Version                                            Repository                                     Size
===================================================================================================================================================================================================
Removing:
 rdma-core                                      x86_64                                      36.0-1.fc34                                        @updates                                      119 k
Removing dependent packages:
 opensm                                         x86_64                                      3.3.23-6.fc34                                      @fedora                                       1.2 M

Transaction Summary
===================================================================================================================================================================================================
Remove  2 Packages

Freed space: 1.3 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                           1/1 
  Running scriptlet: opensm-3.3.23-6.fc34.x86_64                                                                                                                                               1/2 
  Erasing          : opensm-3.3.23-6.fc34.x86_64                                                                                                                                               1/2 
  Running scriptlet: opensm-3.3.23-6.fc34.x86_64                                                                                                                                               1/2 
  Erasing          : rdma-core-36.0-1.fc34.x86_64                                                                                                                                              2/2 
  Running scriptlet: rdma-core-36.0-1.fc34.x86_64                                                                                                                                              2/2 
  Verifying        : opensm-3.3.23-6.fc34.x86_64                                                                                                                                               1/2 
  Verifying        : rdma-core-36.0-1.fc34.x86_64                                                                                                                                              2/2 
Installed products updated.

Removed:
  opensm-3.3.23-6.fc34.x86_64                                                                     rdma-core-36.0-1.fc34.x86_64                                                                    

Complete!


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