Bug 1613968
| Summary: | [RHEL76] product-id plugin provided by dnf-plugin-subscription-manager fails to install product certificate from repo | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Rehana <redakkan> |
| Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.6 | CC: | csnyder, jhnidek, jsefler, lmiksik, salmy |
| 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: | 2018-10-30 10:37:37 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: | 1615433 | ||
|
Description
Rehana
2018-08-08 16:25:20 UTC
Verifying on:
dnf-plugin-subscription-manager-1.21.9-1.el7.x86_64
dnf-2.7.5-17.el7.noarch
1. Make sure the yum plugins are disabled
# subscription-manager config --list |grep auto_enable
auto_enable_yum_plugins = 0
# cat /etc/yum/pluginconf.d/search-disabled-repos.conf | grep enabled
enabled=0
# Repositories matching the patterns listed in ignored_repos will not be enabled by the plugin
# cat /etc/yum/pluginconf.d/subscription-manager.conf | grep enabled
enabled=0
# cat /etc/yum/pluginconf.d/product-id.conf | grep enabled
enabled=0
2. Register and auto-attach the system
# subscription-manager register --auto-attach
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: stage_test_*****
Password:
The system has been registered with ID: 6fdc7ee9-1163-4e93-9fd9-927e5d345e00
The registered system name is: dhcp35-117.lab.eng.blr.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed
# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Enterprise Linux for Virtual Datacenters, Premium
Provides: Red Hat Beta
Red Hat EUCJP Support (for RHEL Server) - Extended Update Support
Red Hat Enterprise Linux Atomic Host
Red Hat Enterprise Linux Atomic Host Beta
Oracle Java (for RHEL Server)
Red Hat Developer Tools (for RHEL Server)
Red Hat Developer Tools Beta (for RHEL Server)
Red Hat Developer Toolset (for RHEL Server)
Red Hat Enterprise Linux High Performance Networking (for RHEL Server) - Extended Update Support
Oracle Java (for RHEL Workstation)
Red Hat Software Collections (for RHEL Server)
Oracle Java (for RHEL Server) - Extended Update Support
Red Hat S-JIS Support (for RHEL Server) - Extended Update Support
Red Hat Software Collections Beta (for RHEL Server)
Red Hat Enterprise Linux Resilient Storage (for RHEL Server) - Extended Update Support
Red Hat Enterprise Linux Server - Extended Update Support
dotNET on RHEL (for RHEL Server)
Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Extended Update Support
Red Hat Ansible Engine
Red Hat Enterprise Linux High Availability (for RHEL Server) - Extended Update Support
Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update Support
Red Hat Enterprise Linux Server
SKU: RH00049
Contract: 11488976
Account: 6117003
Serial: 550929152793967766
Pool ID: 8a99f9835f01e06a015f0a71b1a02eeb
Provides Management: No
Active: True
Quantity Used: 1
Service Level: Premium
Service Type: L1-L3
Status Details: Guest has not been reported on any host and is using a temporary unmapped guest subscription.
Subscription Type: Standard (Temporary)
Starts: Wednesday 11 October 2017
Ends: Monday 17 September 2018
System Type: Virtual
3. Enable rhscl repo on the system
ex : subscription-manager repos --enable=rhel-server-rhscl-7-rpms
4.Enabled repos on the system
# subscription-manager repos --list-enabled
+----------------------------------------------------------+
Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID: rhel-server-rhscl-7-rpms
Repo Name: Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server
Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhscl/1/os
Enabled: 1
Repo ID: rhel-7-server-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/os
Enabled: 1
5.Delete the redhat.repo file ( only to be tried on rhel76, as the redhat.repo file is already populated by yum)
#rm -rf /etc/yum.repos.d/redhat.repo
6.Install a package from RHSCL repo
Ex : # dnf install devtoolset-3-apache-commons-el-javadoc-1.0-30*
# dnf install devtoolset-3-apache-commons-el-javadoc-1.0-30*
Updating Subscription Management repositories.
Updating Subscription Management repositories.
Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server 1.1 MB/s | 20 MB 00:19
Red Hat Enterprise Linux 7 Server (RPMs) 1.6 MB/s | 62 MB 00:39
Last metadata expiration check: 0:00:17 ago on Monday 10 September 2018 07:27:09 PM IST.
Dependencies resolved.
===================================================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================================================
Installing:
devtoolset-3-apache-commons-el-javadoc noarch 1.0-30.el7 rhel-server-rhscl-7-rpms 107 k
Transaction Summary
===================================================================================================================================================================================================================
Install 1 Package
Total download size: 107 k
Installed size: 1.6 M
Is this ok [y/N]: y
Downloading Packages:
devtoolset-3-apache-commons-el-javadoc-1.0-30.el7.noarch.rpm 37 kB/s | 107 kB 00:02
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 37 kB/s | 107 kB 00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : devtoolset-3-apache-commons-el-javadoc-1.0-30.el7.noarch 1/1
Verifying : devtoolset-3-apache-commons-el-javadoc-1.0-30.el7.noarch 1/1
Last metadata expiration check: 0:00:51 ago on Monday 10 September 2018 07:27:09 PM IST.
Installed products updated.
Installed:
devtoolset-3-apache-commons-el-javadoc.noarch 1.0-30.el7
Complete!
7. Check the install product
# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Software Collections (for RHEL Server)
Product ID: 201
Version: 3
Arch: x86_64
Status: Subscribed
Status Details:
Starts: Wednesday 11 October 2017
Ends: Monday 17 September 2018
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 7.6
Arch: x86_64
Status: Subscribed
Status Details:
Starts: Wednesday 11 October 2017
Ends: Monday 17 September 2018
[root@dhcp35-117 ~]# ll /etc/pki/product*
/etc/pki/product:
total 4
-rw-r--r--. 1 root root 2183 Sep 10 19:28 201.pem
/etc/pki/product-default:
total 4
-rw-r--r--. 1 root root 2159 Sep 10 19:09 69.pem
[root@dhcp35-117 ~]#
rhsm.log:
-----------
2018-09-10 19:28:02,678 [DEBUG] dnf:9510:MainThread @productid.py:418 - Checking for product id certs to install or update.
2018-09-10 19:28:02,678 [DEBUG] dnf:9510:MainThread @productid.py:423 - active set([u'rhel-7-server-rpms', u'rhel-server-rhscl-7-rpms'])
2018-09-10 19:28:02,678 [DEBUG] dnf:9510:MainThread @productid.py:424 - enabled [(<rhsm.certificate2.ProductCertificate object at 0x7fc762b3d710>, u'rhel-server-rhscl-7-rpms'), (<rhsm.certificate2.ProductCertificate object at 0x7fc762b3d190>, u'rhel-7-server-rpms')]
2018-09-10 19:28:02,678 [DEBUG] dnf:9510:MainThread @productid.py:440 - product cert: 201 repo: rhel-server-rhscl-7-rpms
2018-09-10 19:28:02,678 [DEBUG] dnf:9510:MainThread @productid.py:440 - product cert: 69 repo: rhel-7-server-rpms
2018-09-10 19:28:02,678 [DEBUG] dnf:9510:MainThread @productid.py:500 - Latest version of product cert for Red Hat Enterprise Linux Server 7.5 is already installed, not updating
2018-09-10 19:28:02,678 [INFO] dnf:9510:MainThread @productid.py:528 - Updating product db with 201 -> rhel-server-rhscl-7-rpms
2018-09-10 19:28:02,679 [INFO] dnf:9510:MainThread @productid.py:579 - Installed product cert 201: Red Hat Software Collections (for RHEL Server) /etc/pki/product/201.pem
2018-09-10 19:28:02,679 [DEBUG] dnf:9510:MainThread @productid.py:556 - about to run post_product_id_install
2018-09-10 19:28:02,679 [DEBUG] dnf:9510:MainThread @productid.py:567 - about to run post_product_id_update
Conclusion:
Observed that the product id cert 201.pem was installed during " dnf install devtoolset-3-apache-commons-el-javadoc-1.0-30" from the repo rhel-server-rhscl-7-rpms
note: Bug 1620136 will track the product id removal bug by the product-id plugin
Based on the above observations, moving the bug to verified.
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-2018:3153 |