Bug 1549766

Summary: Numerous RHN RHEL Channels map to a RHEL '7.4' version certificate instead of the latest '7.5' version
Product: Red Hat Enterprise Linux 7 Reporter: John Sefler <jsefler>
Component: subscription-manager-migration-dataAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: candlepin-bugs, ktordeur, redakkan
Target Milestone: rc   
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: 2020-02-27 18:05:16 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: 1569491    

Description John Sefler 2018-02-27 19:25:56 UTC
Description of problem:

The subscription-manager-migration-data package provides a collection of product certificates and a mapping file (/rhsm/product/RHEL-7/channel-cert-mapping.txt) that shows which product cert corresponds to an RHN channel.  With each minor release of RHEL, the "Version" on the product cert is bumped.  Hence the product certs provided by subscription-manager-migration-data should also bumped to the latest version.  Below is a listing of RHN channels for which the product cert version has not been bumped up to RHEL Version 7.5.

RHN Channels:

rhel-ppc64-server-optional-fastrack-7
rhel-ppc64-server-optional-fastrack-7-debuginfo
rhel-ppc64-server-rh-common-7
rhel-ppc64-server-rh-common-7-debuginfo
rhel-ppc64-server-supplementary-7
rhel-ppc64-server-supplementary-7-debuginfo
rhel-s390x-server-extras-7
rhel-s390x-server-extras-7-debuginfo
rhel-s390x-server-fastrack-7
rhel-s390x-server-fastrack-7-debuginfo
rhel-s390x-server-optional-7
rhel-s390x-server-optional-7-debuginfo
rhel-s390x-server-optional-fastrack-7
rhel-s390x-server-optional-fastrack-7-debuginfo
rhel-s390x-server-rh-common-7
rhel-s390x-server-rh-common-7-debuginfo
rhel-s390x-server-supplementary-7
rhel-s390x-server-supplementary-7-debuginfo
rhel-x86_64-client-extras-7
rhel-x86_64-client-extras-7-debuginfo
rhel-x86_64-client-fastrack-7
rhel-x86_64-client-fastrack-7-debuginfo
rhel-x86_64-client-optional-7
rhel-x86_64-client-optional-7-debuginfo
rhel-x86_64-client-optional-fastrack-7
rhel-x86_64-client-optional-fastrack-7-debuginfo
rhel-x86_64-client-rh-common-7
rhel-x86_64-client-rh-common-7-debuginfo
rhel-x86_64-client-supplementary-7
rhel-x86_64-client-supplementary-7-debuginfo
rhel-x86_64-hpc-node-extras-7
rhel-x86_64-hpc-node-extras-7-debuginfo
rhel-x86_64-hpc-node-fastrack-7
rhel-x86_64-hpc-node-fastrack-7-debuginfo
rhel-x86_64-hpc-node-optional-7
rhel-x86_64-hpc-node-optional-7-debuginfo
rhel-x86_64-hpc-node-optional-fastrack-7
rhel-x86_64-hpc-node-optional-fastrack-7-debuginfo
rhel-x86_64-hpc-node-rh-common-7
rhel-x86_64-hpc-node-rh-common-7-debuginfo
rhel-x86_64-hpc-node-supplementary-7
rhel-x86_64-hpc-node-supplementary-7-debuginfo
rhel-x86_64-server-extras-7
rhel-x86_64-server-extras-7-debuginfo
rhel-x86_64-server-fastrack-7
rhel-x86_64-server-fastrack-7-debuginfo
rhel-x86_64-server-ha-fastrack-7
rhel-x86_64-server-ha-fastrack-7-debuginfo
rhel-x86_64-server-optional-7
rhel-x86_64-server-optional-7-debuginfo
rhel-x86_64-server-optional-fastrack-7
rhel-x86_64-server-optional-fastrack-7-debuginfo
rhel-x86_64-server-rh-common-7
rhel-x86_64-server-rh-common-7-debuginfo
rhel-x86_64-server-rs-fastrack-7
rhel-x86_64-server-rs-fastrack-7-debuginfo
rhel-x86_64-server-supplementary-7
rhel-x86_64-server-supplementary-7-debuginfo
rhel-x86_64-server-v2vwin-7
rhel-x86_64-server-v2vwin-7-debuginfo
rhel-x86_64-workstation-extras-7
rhel-x86_64-workstation-extras-7-debuginfo
rhel-x86_64-workstation-fastrack-7
rhel-x86_64-workstation-fastrack-7-debuginfo
rhel-x86_64-workstation-optional-7
rhel-x86_64-workstation-optional-7-debuginfo
rhel-x86_64-workstation-optional-fastrack-7
rhel-x86_64-workstation-optional-fastrack-7-debuginfo
rhel-x86_64-workstation-rh-common-7
rhel-x86_64-workstation-rh-common-7-debuginfo
rhel-x86_64-workstation-supplementary-7
rhel-x86_64-workstation-supplementary-7-debuginfo



Version-Release number of selected component (if applicable):
[root@dell-pem610-01 ~]# rpm -q subscription-manager-migration-data
subscription-manager-migration-data-2.0.39-1.el7.noarch


How reproducible:


Steps to Reproduce:
For each of the channels listed above, here is an example test for channel rhel-x86_64-server-v2vwin-7....

[root@dell-pem610-01 ~]# cd /usr/share/rhsm/product/RHEL-7
[root@dell-pem610-01 RHEL-7]# grep "rhel-x86_64-server-v2vwin-7:" /usr/share/rhsm/product/RHEL-7/channel-cert-mapping.txt
rhel-x86_64-server-v2vwin-7: Server-Server-x86_64-4ef1264b94f3-69.pem
[root@dell-pem610-01 RHEL-7]# rct cat-cert Server-Server-x86_64-4ef1264b94f3-69.pem | tail -9
Product:
	ID: 69
	Name: Red Hat Enterprise Linux Server
	Version: 7.4       <============= EXPECTED 7.5
	Arch: x86_64
	Tags: rhel-7,rhel-7-server
	Brand Type: 
	Brand Name: 


Actual results:
        Version: 7.4  

Expected results:
        Version: 7.5

Additional info:

Comment 2 John Sefler 2018-02-27 20:18:27 UTC
Here are some more RHN channels that are mapped to a 7.4 version certificate...

rhel-ppc64-server-extras-7
rhel-ppc64-server-extras-7-debuginfo
rhel-ppc64-server-fastrack-7
rhel-ppc64-server-fastrack-7-debuginfo
rhel-ppc64-server-optional-7
rhel-ppc64-server-optional-7-debuginfo

Comment 3 John Sefler 2018-04-23 15:06:17 UTC
Here are some more RHN channels that are mapped to a 7.4 version certificate (expecting 7.5)...
rhn-tools-rhel-x86_64-server-7
rhn-tools-rhel-x86_64-server-7-debuginfo

Comment 4 Lubos Kocman 2018-05-10 08:53:09 UTC
Hello John,

I'd like to elaborate here a bit on certain channels.

Fastrack is EOL I'd not continue to update it at all, in fact I'd prefer to EOL/disable these repos entirely. There repos should be empty and no content should be consumed from them anyway.

Remaining need to be fixed.

Comment 5 John Sefler 2018-05-10 12:21:04 UTC
(In reply to Lubos Kocman from comment #4)
> Fastrack is EOL I'd not continue to update it at all, in fact I'd prefer to
> EOL/disable these repos entirely. There repos should be empty and no content
> should be consumed from them anyway.
Thank you - this info helps me skip automated testing on this repo for the right reason.

Comment 6 Lubos Kocman 2018-07-23 11:18:11 UTC
Hello Please commit 04a615fd2424c516a2202f82c74bb02c2bbf0032  this one should have all repos for 7.5 fixed. I did fix also manually fixed some old references for 7.2/7.4 in various layered products.

I'm specifying commit as I'd like to bump mapping for 7.6 beta asap

Lubos

Comment 7 John Sefler 2018-08-21 20:24:21 UTC
Considering the changes mentioned in the comments above and a fix for Bug 1594007 for the benefit of RHEL7.6, I suggest we close this bug in favor of newer Bug 1619826 which shows the latest results when the same test is run against subscription-manager-migration-data built for RHEL7.6.

Comment 8 Rehana 2020-02-27 18:05:16 UTC
Closing the as a duplicate of of RHEL7.8 migration data bug https://bugzilla.redhat.com/show_bug.cgi?id=1694109

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