Bug 1525238
| Summary: | yum plugin for productid neglects to remove HTB product cert from /etc/pki/product/ because it is tagged as a provider of "rhel-7" | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | John Sefler <jsefler> |
| Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 7.5 | CC: | cdonnell, jhnidek, khowell, rjerrido, skallesh, wpoteat |
| Target Milestone: | rc | Keywords: | Triaged |
| 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-09-29 19:22:40 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
John Sefler
2017-12-12 20:58:50 UTC
Verification:
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.9.21-1
subscription management rules: 5.37
subscription-manager: 1.24.32
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager register --serverurl subscription.rhsm.stage.redhat.com --username qa --password redhatqa --auto-attach --force
Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription
The system with UUID 8526093d-4cf0-4f35-85d4-6255886a4bb6 has been unregistered
All local data removed
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
The system has been registered with ID: 1634f5cc-1f30-4668-aa3d-c2ca25345717
The registered system name is: hpe-dl380pgen8-02-vm-4.hpe2.lab.eng.bos.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager list --available --matches="*Server High Touch Beta*" --pool-only
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager list --available --matches="*High Touch Beta*" --pool-only
8a85f99a6cbfea02016d20db58cd16e0
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager attach --pool=8a85f99a6cbfea02016d20db58cd16e0
Successfully attached a subscription for: Red Hat Enterprise Linux High Touch Beta
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager release --list
+-------------------------------------------+
Available Releases
+-------------------------------------------+
7.0
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
7Server
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager repos --list-enabled | grep htb
Repo ID: rhel-7-server-htb-rpms
Repo URL: https://cdn.redhat.com/content/htb/rhel/server/7/$basearch/os
[root@hpe-dl380pgen8-02-vm-4 ~]# yum list available --disablerepo=* --enablerepo=rhel-7-server-htb-rpms | tail -1
zziplib.x86_64 0.13.62-5.el7 rhel-7-server-htb-rpms
[root@hpe-dl380pgen8-02-vm-4 ~]# yum install -y --disablerepo=* --enablerepo=rhel-7-server-htb-rpms zziplib.x86_64
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package zziplib.x86_64 0:0.13.62-5.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================================================================
Installing:
zziplib x86_64 0.13.62-5.el7 rhel-7-server-htb-rpms 81 k
Transaction Summary
==============================================================================================================================================================================================================================================
Install 1 Package
Total download size: 81 k
Installed size: 211 k
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/rhel-7-server-htb-rpms/packages/zziplib-0.13.62-5.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY ] 0.0 B/s | 0 B --:--:-- ETA
Public key for zziplib-0.13.62-5.el7.x86_64.rpm is not installed
zziplib-0.13.62-5.el7.x86_64.rpm | 81 kB 00:00:01
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
Importing GPG key 0xF21541EB:
Userid : "Red Hat, Inc. (beta key 2) <security>"
Fingerprint: b08b 659e e86a f623 bc90 e8db 938a 80ca f215 41eb
Package : redhat-release-server-7.9-0.el7.x86_64 (@beaker-Server/7.9)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
Importing GPG key 0x897DA07A:
Userid : "Red Hat, Inc. (Beta Test Software) <rawhide>"
Fingerprint: 17e8 543d 1d4a a5fa a96a 7e9f fd37 2689 897d a07a
Package : redhat-release-server-7.9-0.el7.x86_64 (@beaker-Server/7.9)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Importing GPG key 0xFD431D51:
Userid : "Red Hat, Inc. (release key 2) <security>"
Fingerprint: 567e 347a d004 4ade 55ba 8a5f 199e 2f91 fd43 1d51
Package : redhat-release-server-7.9-0.el7.x86_64 (@beaker-Server/7.9)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Importing GPG key 0x2FA658E0:
Userid : "Red Hat, Inc. (auxiliary key) <security>"
Fingerprint: 43a6 e49c 4a38 f4be 9abf 2a53 4568 9c88 2fa6 58e0
Package : redhat-release-server-7.9-0.el7.x86_64 (@beaker-Server/7.9)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : zziplib-0.13.62-5.el7.x86_64 1/1
Verifying : zziplib-0.13.62-5.el7.x86_64 1/1
rhel-7-server-htb-rpms/x86_64/productid | 2.1 kB 00:00:00
Installed:
zziplib.x86_64 0:0.13.62-5.el7
Complete!
[root@hpe-dl380pgen8-02-vm-4 ~]# ls /etc/pki/product*
/etc/pki/product:
230.pem
/etc/pki/product-default:
69.pem
[root@hpe-dl380pgen8-02-vm-4 ~]# rct cc /etc/pki/product/230.pem
+-------------------------------------------+
Product Certificate
+-------------------------------------------+
Certificate:
Path: /etc/pki/product/230.pem
Version: 1.0
Serial: 12750047592154751154
Start Date: 2018-02-07 19:16:01+00:00
End Date: 2038-02-02 19:16:01+00:00
Subject:
CN: Red Hat Product ID [609b7e0d-2c57-4030-be19-9a50e52564dd]
Issuer:
C: US
CN: Red Hat Entitlement Product Authority
O: Red Hat, Inc.
OU: Red Hat Network
ST: North Carolina
emailAddress: ca-support
Product:
ID: 230
Name: Red Hat Enterprise Linux 7 Server High Touch Beta
Version: 7.5 HTB
Arch: x86_64
Tags: rhel-7-htb,rhel-7-server
^^ tagged as a provider of "rhel-7-htb" now
Brand Type:
Brand Name:
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux 7 Server High Touch Beta
Product ID: 230
Version: 7.5 HTB
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 04/24/2013
Ends: 12/31/2021
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 7.9 Beta
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 04/24/2013
Ends: 12/31/2021
[root@hpe-dl380pgen8-02-vm-4 ~]# yum remove -y --disablerepo=* --enablerepo=rhel-7-server-htb-rpms zziplib.x86_64
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package zziplib.x86_64 0:0.13.62-5.el7 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================================================================
Removing:
zziplib x86_64 0.13.62-5.el7 @rhel-7-server-htb-rpms 211 k
Transaction Summary
==============================================================================================================================================================================================================================================
Remove 1 Package
Installed size: 211 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : zziplib-0.13.62-5.el7.x86_64 1/1
Verifying : zziplib-0.13.62-5.el7.x86_64 1/1
Removed:
zziplib.x86_64 0:0.13.62-5.el7
Complete!
[root@hpe-dl380pgen8-02-vm-4 ~]# ls /etc/pki/product*
/etc/pki/product:
^^ 230.pem got removed
/etc/pki/product-default:
69.pem
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 (subscription-manager bug fix update), 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:3866 |