Bug 1222627
Summary: | deletion of JBOSS product certificate is neglected by product-id plugin on running 'yum remove JBOSS-PKG --disablerepo=RHEL-REPO' | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Chris Snyder <csnyder> |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 6.7 | CC: | bcourt, csnyder, redakkan, wpoteat |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-05-10 20:36:50 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: | 1209535 |
Description
John Sefler
2015-05-18 16:28:00 UTC
I have a reproducer for this in it's entirety. The difficulty in reproducing this came in that the packages 'httpd' and 'httpd-tools' are provided by the 'jb-eap-6-for-rhel-6-server-rpms' repo. I'm unsure if this has changed since the bug was filed but either way, after removing those packages following the above steps to reproduce works. In upstream master as of the commit below. This should be in the next build of subman in the new year as such moving to modified. commit 5cbdfa6987238e184a3257132af73e91a62d4963 Author: Christopher Snyder <csnyder> Date: Tue Dec 22 16:35:14 2015 -0500 1222627: Allows removal of product certs with no active repos, given temp_disabled_repos Retested on , subscription management server: 0.9.51.13-1 subscription management rules: 5.15.1 subscription-manager: 1.16.7-1.el6 python-rhsm: 1.16.5-1.el6 As mentioned in comment 2 , i have to remove the httpd and httpd-tools rpms to retest the bug. 1) # yum remove httpd httpd-tools Loaded plugins: product-id, refresh-packagekit, search-disabled-repos, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.2.15-50.el6 will be erased <snip> Complete! 2) REgister and auto-attach # subscription-manager register --username=stage_auto_testuser --auto-attach Registering to: subscription.rhn.stage.redhat.com:443/subscription Password: The system has been registered with ID: 5b9dd127-bfe0-4f56-9cf3-026cb8968255 Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed 3) List jboss subscription # subscription-manager list --available | grep "JBoss" -A4 Subscription Name: Red Hat JBoss Enterprise Application Platform with Management, 16 Core Standard, L3 Support Partner Provides: Red Hat JBoss A-MQ Clients JBoss Enterprise Application Platform JBoss Enterprise Web Server Red Hat Enterprise MRG Messaging SKU: MW0167254 Contract: 10687077 Pool ID: 8a99f9814da10f2a014db0af04f3129b 4) Attach jboss subscription # subscription-manager attach --pool 8a99f9814da10f2a014db0af04f3129b Successfully attached a subscription for: Red Hat JBoss Enterprise Application Platform with Management, 16 Core Standard, L3 Support Partner 5) Enable repo # subscription-manager repos --enable jb-eap-6-for-rhel-6-server-rpms Repository 'jb-eap-6-for-rhel-6-server-rpms' is enabled for this system. 6) Currently enabled to repos [root@dhcp71-169 product]# subscription-manager repos --list-enabled +----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: rhel-6-server-rpms Repo Name: Red Hat Enterprise Linux 6 Server (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/$releasever/$basearch/os Enabled: 1 Repo ID: rhel-server-dts2-6-rpms Repo Name: Red Hat Developer Toolset 2 RPMs for Red Hat Enterprise Linux 6 Server Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/$releasever/$basearch/devtoolset/2/os Enabled: 1 Repo ID: rhel-server-dts-6-rpms Repo Name: Red Hat Developer Toolset RPMs for Red Hat Enterprise Linux 6 Server Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/$releasever/$basearch/devtoolset/os Enabled: 1 Repo ID: rhel-6-server-eus-rpms Repo Name: Red Hat Enterprise Linux 6 Server - Extended Update Support (RPMs) Repo URL: https://cdn.redhat.com/content/eus/rhel/server/6/$releasever/$basearch/os Enabled: 1 Repo ID: jb-eap-6-for-rhel-6-server-rpms Repo Name: JBoss Enterprise Application Platform 6 (RHEL 6 Server) (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/$releasever/$basearch/jbeap/6/os Enabled: 1 7) Disabling all the repos except "jb-eap-6-for-rhel-6-server-rpms" and "rhel-6-server-rpms" # subscription-manager repos --disable=rhel-server-dts2-6-rpms --disable=rhel-server-dts-6-rpms --disable=rhel-6-server-eus-rpms Repository 'rhel-6-server-eus-rpms' is disabled for this system. Repository 'rhel-server-dts2-6-rpms' is disabled for this system. Repository 'rhel-server-dts-6-rpms' is disabled for this system. # subscription-manager repos --list-enabled +----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: rhel-6-server-rpms Repo Name: Red Hat Enterprise Linux 6 Server (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/$releasever/$basearch/os Enabled: 1 Repo ID: jb-eap-6-for-rhel-6-server-rpms Repo Name: JBoss Enterprise Application Platform 6 (RHEL 6 Server) (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/$releasever/$basearch/jbeap/6/os Enabled: 1 8) Install rpms from the enabled repos # yum -y -q install jline-eap6 zsh # yumdb get from_repo jline-eap6 zsh Loaded plugins: product-id, refresh-packagekit jline-eap6-0.9.94-10.GA_redhat_2.ep6.el6.4.noarch from_repo = jb-eap-6-for-rhel-6-server-rpms zsh-4.3.11-4.el6_7.1.x86_64 from_repo = rhel-6-server-rpms [root@dhcp71-169 product]# cat /var/lib/rhsm/productid.js { "69": [ "anaconda-RedHatEnterpriseLinux-201601102011.x86_64", "rhel-6-server-rpms" ], "183": [ "jb-eap-6-for-rhel-6-server-rpms" ] } 9) notice prd cert 183.pem is installed now # subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: JBoss Enterprise Application Platform Product ID: 183 Version: 6.0 Arch: x86_64 Status: Subscribed Status Details: Starts: Ends: Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 6.8-Beta Arch: x86_64 Status: Subscribed Status Details: Starts: 05/01/2015 Ends: 01/12/2016 10) Now remove the jboss package from the system with server repo disabled # yum -y -q remove jline-eap6 --disablerepo=rhel-6-server-rpms Observed that now the prd cert 183.pem removed from the system # cat /var/lib/rhsm/productid.js { "69": [ "anaconda-RedHatEnterpriseLinux-201601102011.x86_64", "rhel-6-server-rpms" ] } 11)# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 6.8-Beta Arch: x86_64 Status: Subscribed Status Details: Starts: 05/01/2015 Ends: 01/12/2016 [root@dhcp71-169 product]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.51.13-1 subscription management rules: 5.15.1 subscription-manager: 1.16.7-1.el6 python-rhsm: 1.16.5-1.el6 Marking 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://rhn.redhat.com/errata/RHBA-2016-0797.html |