Bug 2120380

Summary: subscription-manager-rhsm-certificates strange versioning in updates repo causes conflict with subscription-manager package
Product: [Fedora] Fedora Reporter: Pablo Alonso Rodriguez <palonsoro>
Component: subscription-manager-rhsm-certificatesAssignee: Chris Snyder <csnyder>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 36CC: csnyder, jhnidek, ptoscano
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-23 15:07:44 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:

Description Pablo Alonso Rodriguez 2022-08-22 17:40:16 UTC
Description of problem:

Once subscription-manager is installed on a fresh and up-to-date Fedora system, whenever I try to update with "dnf upgrade", the 'updates' repo offers a strange subscription-manager-rhsm-certificates with a version that doesn't match the same scheme than the one in regular 'fedora' repo. That RPM version conflicts with subscription-manager package.

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

First reproduced on Fedora 36.

How reproducible:

Always.

Steps to Reproduce:
1. Start with a fresh Fedora system
2. dnf upgrade -y
3. dnf install subscription-manager -y # Everything fine so far
4. dnf upgrade -y

Actual results:

Conflict (see comment)

Expected results:

Successful upgrade.

Additional info:

Comment 1 Pablo Alonso Rodriguez 2022-08-22 17:41:34 UTC
The conflict is like this:

dnf upgrade
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.

Last metadata expiration check: 0:08:55 ago on Mon 22 Aug 2022 05:24:35 PM UTC.
Dependencies resolved.

 Problem: package python3-subscription-manager-rhsm-1.29.21-2.fc36.x86_64 requires subscription-manager-rhsm-certificates = 1.29.21-2.fc36, but none of the providers can be installed
  - cannot install both subscription-manager-rhsm-certificates-20220425-1.fc36.noarch and subscription-manager-rhsm-certificates-1.29.21-2.fc36.x86_64
  - cannot install the best update candidate for package subscription-manager-rhsm-certificates-1.29.21-2.fc36.x86_64
  - cannot install the best update candidate for package python3-subscription-manager-rhsm-1.29.21-2.fc36.x86_64
=============================================================================================================================================================================================================================================
 Package                                                                        Architecture                                   Version                                                 Repository                                       Size
=============================================================================================================================================================================================================================================
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 subscription-manager-rhsm-certificates                                         noarch                                         20220425-1.fc36                                         updates                                          19 k

Transaction Summary
=============================================================================================================================================================================================================================================
Skip  1 Package

Nothing to do.
Complete!


The funniest thing is how subscription-manager-rhsm-certificates-1.29.21-2.fc36.x86_64 was installed from fedora repo, but updates repo offers subscription-manager-rhsm-certificates-20220425-1.fc36.noarch . The version schemes are different.

Comment 2 Pino Toscano 2022-08-23 15:07:44 UTC
Hi Pablo,

we updated subscription-manager-rhsm-certificates to a newer version (built from an own source, with its own version), however we did not update subscription-manager too.

The issue is already reported as bug 2089022, and we are in the process of updating the subscription-manager stack (subscription-manager + subscription-manager-rhsm-certificates + subscription-manager-cockpit) down to f36.

*** This bug has been marked as a duplicate of bug 2089022 ***