Bug 2025564
| Summary: | Improve subscription-manager registration process when registering nodes with org_environment contentAccessMode [ RHEL-7.7 E4S/AUS/TUS repositories] | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Steffen Froemer <sfroemer> |
| 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.7 | CC: | ahumbe, cdonnell, csnyder, jhnidek, jreznik, jsefler, peter.vreman, ptoscano, redakkan, rjerrido, saydas |
| Target Milestone: | rc | Keywords: | Triaged, ZStream |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | subscription-manager-1.24.13-6.el7_7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-03-01 12:45:46 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: | 2044629 | ||
| Bug Blocks: | |||
|
Description
Steffen Froemer
2021-11-22 13:57:45 UTC
Can the KB https://access.redhat.com/solutions/6094191 be updated that this Backport request exists for RHEL7.7 E4S/AUS/TUS The KB mentions also RHEL8.2 as affected, but in my experience the SCA enabled works on RHEL8.2 without a exit code 1. (In reply to Peter Vreman from comment #3) > Can the KB https://access.redhat.com/solutions/6094191 be updated that this > Backport request exists for RHEL7.7 E4S/AUS/TUS > The KB mentions also RHEL8.2 as affected, but in my experience the SCA > enabled works on RHEL8.2 without a exit code 1. Peter, the solution has been updated. >> Pre-verification against new scratch with BZ #2044629 pre-verified already: >> Reproducing issue: [root@dhcp-8-29-183 1.24.13-4]# subscription-manager register --org=xxx --activationkey=cragtest;echo $? The system has been registered with ID: 6e82ba8c-fe98-4c13-b251-6a2feac382e6 The registered system name is: ex.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed Product Name: Red Hat Enterprise Linux Server - Extended Update Support Status: Not Subscribed Unable to find available subscriptions for all your installed products. 1 >> Testing scratch update: [root@dhcp-8-29-183 1.24.13-4]# yum localinstall ./python-syspurpose-1.24.13-4.git.8997.8de791a.el7_7.x86_64.rpm subscription-manager-1.24.13-4.git.8997.8de791a.el7_7.x86_64.rpm ./subscription-manager-rhsm-1.24.13-4.git.8997.8de791a.el7_7.x86_64.rpm ./subscription-manager-rhsm-certificates-1.24.13-4.git.8997.8de791a.el7_7.x86_64.rpm Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions. Examining ./python-syspurpose-1.24.13-4.git.8997.8de791a.el7_7.x86_64.rpm: python-syspurpose-1.24.13-4.git.8997.8de791a.el7_7.x86_64 Marking ./python-syspurpose-1.24.13-4.git.8997.8de791a.el7_7.x86_64.rpm as an update to python-syspurpose-1.24.13-4.el7_7.x86_64 Examining subscription-manager-1.24.13-4.git.8997.8de791a.el7_7.x86_64.rpm: subscription-manager-1.24.13-4.git.8997.8de791a.el7_7.x86_64 Marking subscription-manager-1.24.13-4.git.8997.8de791a.el7_7.x86_64.rpm as an update to subscription-manager-1.24.13-4.el7_7.x86_64 Examining ./subscription-manager-rhsm-1.24.13-4.git.8997.8de791a.el7_7.x86_64.rpm: subscription-manager-rhsm-1.24.13-4.git.8997.8de791a.el7_7.x86_64 Marking ./subscription-manager-rhsm-1.24.13-4.git.8997.8de791a.el7_7.x86_64.rpm as an update to subscription-manager-rhsm-1.24.13-4.el7_7.x86_64 Examining ./subscription-manager-rhsm-certificates-1.24.13-4.git.8997.8de791a.el7_7.x86_64.rpm: subscription-manager-rhsm-certificates-1.24.13-4.git.8997.8de791a.el7_7.x86_64 Marking ./subscription-manager-rhsm-certificates-1.24.13-4.git.8997.8de791a.el7_7.x86_64.rpm as an update to subscription-manager-rhsm-certificates-1.24.13-4.el7_7.x86_64 Resolving Dependencies --> Running transaction check ---> Package python-syspurpose.x86_64 0:1.24.13-4.el7_7 will be updated ---> Package python-syspurpose.x86_64 0:1.24.13-4.git.8997.8de791a.el7_7 will be an update ---> Package subscription-manager.x86_64 0:1.24.13-4.el7_7 will be updated ---> Package subscription-manager.x86_64 0:1.24.13-4.git.8997.8de791a.el7_7 will be an update ---> Package subscription-manager-rhsm.x86_64 0:1.24.13-4.el7_7 will be updated ---> Package subscription-manager-rhsm.x86_64 0:1.24.13-4.git.8997.8de791a.el7_7 will be an update ---> Package subscription-manager-rhsm-certificates.x86_64 0:1.24.13-4.el7_7 will be updated ---> Package subscription-manager-rhsm-certificates.x86_64 0:1.24.13-4.git.8997.8de791a.el7_7 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================================================================= Updating: python-syspurpose x86_64 1.24.13-4.git.8997.8de791a.el7_7 /python-syspurpose-1.24.13-4.git.8997.8de791a.el7_7.x86_64 126 k subscription-manager x86_64 1.24.13-4.git.8997.8de791a.el7_7 /subscription-manager-1.24.13-4.git.8997.8de791a.el7_7.x86_64 4.4 M subscription-manager-rhsm x86_64 1.24.13-4.git.8997.8de791a.el7_7 /subscription-manager-rhsm-1.24.13-4.git.8997.8de791a.el7_7.x86_64 407 k subscription-manager-rhsm-certificates x86_64 1.24.13-4.git.8997.8de791a.el7_7 /subscription-manager-rhsm-certificates-1.24.13-4.git.8997.8de791a.el7_7.x86_64 7.2 k Transaction Summary ============================================================================================================================================================================================================================================= Upgrade 4 Packages Total size: 4.9 M Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : subscription-manager-rhsm-certificates-1.24.13-4.git.8997.8de791a.el7_7.x86_64 1/8 Updating : subscription-manager-rhsm-1.24.13-4.git.8997.8de791a.el7_7.x86_64 2/8 Updating : python-syspurpose-1.24.13-4.git.8997.8de791a.el7_7.x86_64 3/8 Updating : subscription-manager-1.24.13-4.git.8997.8de791a.el7_7.x86_64 4/8 Cleanup : subscription-manager-1.24.13-4.el7_7.x86_64 5/8 Cleanup : subscription-manager-rhsm-1.24.13-4.el7_7.x86_64 6/8 Cleanup : subscription-manager-rhsm-certificates-1.24.13-4.el7_7.x86_64 7/8 Cleanup : python-syspurpose-1.24.13-4.el7_7.x86_64 8/8 Verifying : subscription-manager-1.24.13-4.git.8997.8de791a.el7_7.x86_64 1/8 Verifying : subscription-manager-rhsm-1.24.13-4.git.8997.8de791a.el7_7.x86_64 2/8 Verifying : python-syspurpose-1.24.13-4.git.8997.8de791a.el7_7.x86_64 3/8 Verifying : subscription-manager-rhsm-certificates-1.24.13-4.git.8997.8de791a.el7_7.x86_64 4/8 Verifying : python-syspurpose-1.24.13-4.el7_7.x86_64 5/8 Verifying : subscription-manager-rhsm-1.24.13-4.el7_7.x86_64 6/8 Verifying : subscription-manager-1.24.13-4.el7_7.x86_64 7/8 Verifying : subscription-manager-rhsm-certificates-1.24.13-4.el7_7.x86_64 8/8 rhel-7-server-rpms/7Server/x86_64 | 3.5 kB 00:00:00 Updated: python-syspurpose.x86_64 0:1.24.13-4.git.8997.8de791a.el7_7 subscription-manager.x86_64 0:1.24.13-4.git.8997.8de791a.el7_7 subscription-manager-rhsm.x86_64 0:1.24.13-4.git.8997.8de791a.el7_7 subscription-manager-rhsm-certificates.x86_64 0:1.24.13-4.git.8997.8de791a.el7_7 Complete! [root@dhcp-8-29-183 1.24.13-4]# subscription-manager unregister Unregistering from: subscription.rhsm.redhat.com:443/subscription System has been unregistered. [root@dhcp-8-29-183 1.24.13-4]# subscription-manager register --org=xxx --activationkey=cragtest;echo $? The system has been registered with ID: ef646d09-bf9b-4b39-a1e4-7231a705293f The registered system name is: ex.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed Product Name: Red Hat Enterprise Linux Server - Extended Update Support Status: Not Subscribed 0 >> LGTM, pre-verified. >> Verifying subscription-manager-1.24.13-5 against RHEL 7.7 EUS >> Reproducing issue: [root@dhcp-8-29-183 1.24.13-5]# rpm -q subscription-manager subscription-manager-1.24.13-4.el7_7.x86_64 [root@dhcp-8-29-183 1.24.13-5]# subscription-manager register --org=xxx --activationkey=cragtest;echo $? The system has been registered with ID: 781f1358-6b34-4ece-a00e-e7785024e4d8 The registered system name is: ex.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed Product Name: Red Hat Enterprise Linux Server - Extended Update Support Status: Not Subscribed Unable to find available subscriptions for all your installed products. 1 >> Updating to new build [root@dhcp-8-29-183 1.24.13-5]# yum localinstall ./subscription-manager-1.24.13-5.el7_7.x86_64.rpm ./subscription-manager-rhsm-1.24.13-5.el7_7.x86_64.rpm ./subscription-manager-rhsm-certificates-1.24.13-5.el7_7.x86_64.rpm ./python-syspurpose-1.24.13-5.el7_7.x86_64.rpm Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions. Examining ./subscription-manager-1.24.13-5.el7_7.x86_64.rpm: subscription-manager-1.24.13-5.el7_7.x86_64 Marking ./subscription-manager-1.24.13-5.el7_7.x86_64.rpm as an update to subscription-manager-1.24.13-4.el7_7.x86_64 Examining ./subscription-manager-rhsm-1.24.13-5.el7_7.x86_64.rpm: subscription-manager-rhsm-1.24.13-5.el7_7.x86_64 Marking ./subscription-manager-rhsm-1.24.13-5.el7_7.x86_64.rpm as an update to subscription-manager-rhsm-1.24.13-4.el7_7.x86_64 Examining ./subscription-manager-rhsm-certificates-1.24.13-5.el7_7.x86_64.rpm: subscription-manager-rhsm-certificates-1.24.13-5.el7_7.x86_64 Marking ./subscription-manager-rhsm-certificates-1.24.13-5.el7_7.x86_64.rpm as an update to subscription-manager-rhsm-certificates-1.24.13-4.el7_7.x86_64 Examining ./python-syspurpose-1.24.13-5.el7_7.x86_64.rpm: python-syspurpose-1.24.13-5.el7_7.x86_64 Marking ./python-syspurpose-1.24.13-5.el7_7.x86_64.rpm as an update to python-syspurpose-1.24.13-4.el7_7.x86_64 Resolving Dependencies --> Running transaction check ---> Package python-syspurpose.x86_64 0:1.24.13-4.el7_7 will be updated ---> Package python-syspurpose.x86_64 0:1.24.13-5.el7_7 will be an update ---> Package subscription-manager.x86_64 0:1.24.13-4.el7_7 will be updated ---> Package subscription-manager.x86_64 0:1.24.13-5.el7_7 will be an update ---> Package subscription-manager-rhsm.x86_64 0:1.24.13-4.el7_7 will be updated ---> Package subscription-manager-rhsm.x86_64 0:1.24.13-5.el7_7 will be an update ---> Package subscription-manager-rhsm-certificates.x86_64 0:1.24.13-4.el7_7 will be updated ---> Package subscription-manager-rhsm-certificates.x86_64 0:1.24.13-5.el7_7 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================================================================= Updating: python-syspurpose x86_64 1.24.13-5.el7_7 /python-syspurpose-1.24.13-5.el7_7.x86_64 126 k subscription-manager x86_64 1.24.13-5.el7_7 /subscription-manager-1.24.13-5.el7_7.x86_64 4.4 M subscription-manager-rhsm x86_64 1.24.13-5.el7_7 /subscription-manager-rhsm-1.24.13-5.el7_7.x86_64 407 k subscription-manager-rhsm-certificates x86_64 1.24.13-5.el7_7 /subscription-manager-rhsm-certificates-1.24.13-5.el7_7.x86_64 7.2 k Transaction Summary ============================================================================================================================================================================================================================================= Upgrade 4 Packages Total size: 4.9 M Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : python-syspurpose-1.24.13-5.el7_7.x86_64 1/8 Updating : subscription-manager-rhsm-certificates-1.24.13-5.el7_7.x86_64 2/8 Updating : subscription-manager-rhsm-1.24.13-5.el7_7.x86_64 3/8 Updating : subscription-manager-1.24.13-5.el7_7.x86_64 4/8 Cleanup : subscription-manager-1.24.13-4.el7_7.x86_64 5/8 Cleanup : subscription-manager-rhsm-1.24.13-4.el7_7.x86_64 6/8 Cleanup : subscription-manager-rhsm-certificates-1.24.13-4.el7_7.x86_64 7/8 Cleanup : python-syspurpose-1.24.13-4.el7_7.x86_64 8/8 Verifying : subscription-manager-rhsm-certificates-1.24.13-5.el7_7.x86_64 1/8 Verifying : python-syspurpose-1.24.13-5.el7_7.x86_64 2/8 Verifying : subscription-manager-1.24.13-5.el7_7.x86_64 3/8 Verifying : subscription-manager-rhsm-1.24.13-5.el7_7.x86_64 4/8 Verifying : subscription-manager-rhsm-1.24.13-4.el7_7.x86_64 5/8 Verifying : python-syspurpose-1.24.13-4.el7_7.x86_64 6/8 Verifying : subscription-manager-1.24.13-4.el7_7.x86_64 7/8 Verifying : subscription-manager-rhsm-certificates-1.24.13-4.el7_7.x86_64 8/8 rhel-7-server-rpms/7Server/x86_64 | 3.5 kB 00:00:00 rhel-7-server-rpms/7Server/x86_64/updateinfo | 4.1 MB 00:00:00 rhel-7-server-rpms/7Server/x86_64/primary_db | 86 MB 00:00:02 Updated: python-syspurpose.x86_64 0:1.24.13-5.el7_7 subscription-manager.x86_64 0:1.24.13-5.el7_7 subscription-manager-rhsm.x86_64 0:1.24.13-5.el7_7 subscription-manager-rhsm-certificates.x86_64 0:1.24.13-5.el7_7 Complete! [root@dhcp-8-29-183 1.24.13-5]# subscription-manager unregister Unregistering from: subscription.rhsm.redhat.com:443/subscription System has been unregistered. [root@dhcp-8-29-183 1.24.13-5]# subscription-manager register --org=xxx --activationkey=cragtest;echo $? The system has been registered with ID: 813ea426-fe5d-4de4-9e3b-1c73b5003d3e The registered system name is: ex.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed Product Name: Red Hat Enterprise Linux Server - Extended Update Support Status: Not Subscribed 0 >> Registration to SCA org now completes with a exit code of 0, LGTM. >> Verified. Moving back to NEW for found regression regarding messaging from subscription-manager yum plugin regarding the entitlement state of the host: During yum actions, this message will display in incorrect scenarios: This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions. Message displays when entitled in SCA mode, and does not display when not entitled in non-SCA mode. >> Re-verifying against new build including patch for regression. >> Showing issue: [root@dhcp-8-29-183 1.24.13-6]# rpm -q subscription-manager subscription-manager-1.24.13-5.el7_7.x86_64 [root@dhcp-8-29-183 1.24.13-6]# yum repolist -v Not loading "rhnplugin" plugin, as it is disabled Loading "product-id" plugin Loading "search-disabled-repos" plugin Loading "subscription-manager" plugin Updating Subscription Management repositories. This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions. Config time: 10.774 Yum version: 3.4.3 Setting up Package Sacks pkgsack time: 0.014 Repo-id : rhel-7-server-rpms/7Server/x86_64 Repo-name : Red Hat Enterprise Linux 7 Server (RPMs) Repo-revision: 1644332738 Repo-updated : Tue Feb 8 10:05:34 2022 Repo-pkgs : 32,679 Repo-size : 55 G Repo-baseurl : https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os Repo-expire : 86,400 second(s) (last: Wed Feb 9 10:56:33 2022) Filter : read-only:present Repo-filename: /etc/yum.repos.d/redhat.repo repolist: 32,679 [root@dhcp-8-29-183 1.24.13-6]# subscription-manager list --consumed No consumed subscription pools were found. >> Issue above is message showing we don't get updates when we do, and not showing when we don't. >> Updating to new build: [root@dhcp-8-29-183 1.24.13-6]# yum localinstall ./subscription-manager-1.24.13-6.el7_7.x86_64.rpm ./subscription-manager-rhsm-1.24.13-6.el7_7.x86_64.rpm ./subscription-manager-rhsm-certificates-1.24.13-6.el7_7.x86_64.rpm ./python-syspurpose-1.24.13-6.el7_7.x86_64.rpm ./subscription-manager-plugin-container-1.24.13-6.el7_7.x86_64.rpm --disablerepo=rhel-7-server-rpms Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions. Examining ./subscription-manager-1.24.13-6.el7_7.x86_64.rpm: subscription-manager-1.24.13-6.el7_7.x86_64 Marking ./subscription-manager-1.24.13-6.el7_7.x86_64.rpm as an update to subscription-manager-1.24.13-5.el7_7.x86_64 Examining ./subscription-manager-rhsm-1.24.13-6.el7_7.x86_64.rpm: subscription-manager-rhsm-1.24.13-6.el7_7.x86_64 Marking ./subscription-manager-rhsm-1.24.13-6.el7_7.x86_64.rpm as an update to subscription-manager-rhsm-1.24.13-5.el7_7.x86_64 Examining ./subscription-manager-rhsm-certificates-1.24.13-6.el7_7.x86_64.rpm: subscription-manager-rhsm-certificates-1.24.13-6.el7_7.x86_64 Marking ./subscription-manager-rhsm-certificates-1.24.13-6.el7_7.x86_64.rpm as an update to subscription-manager-rhsm-certificates-1.24.13-5.el7_7.x86_64 Examining ./python-syspurpose-1.24.13-6.el7_7.x86_64.rpm: python-syspurpose-1.24.13-6.el7_7.x86_64 Marking ./python-syspurpose-1.24.13-6.el7_7.x86_64.rpm as an update to python-syspurpose-1.24.13-5.el7_7.x86_64 Examining ./subscription-manager-plugin-container-1.24.13-6.el7_7.x86_64.rpm: subscription-manager-plugin-container-1.24.13-6.el7_7.x86_64 Marking ./subscription-manager-plugin-container-1.24.13-6.el7_7.x86_64.rpm as an update to subscription-manager-plugin-container-1.24.13-5.el7_7.x86_64 Resolving Dependencies --> Running transaction check ---> Package python-syspurpose.x86_64 0:1.24.13-5.el7_7 will be updated ---> Package python-syspurpose.x86_64 0:1.24.13-6.el7_7 will be an update ---> Package subscription-manager.x86_64 0:1.24.13-5.el7_7 will be updated ---> Package subscription-manager.x86_64 0:1.24.13-6.el7_7 will be an update ---> Package subscription-manager-plugin-container.x86_64 0:1.24.13-5.el7_7 will be updated ---> Package subscription-manager-plugin-container.x86_64 0:1.24.13-6.el7_7 will be an update ---> Package subscription-manager-rhsm.x86_64 0:1.24.13-5.el7_7 will be updated ---> Package subscription-manager-rhsm.x86_64 0:1.24.13-6.el7_7 will be an update ---> Package subscription-manager-rhsm-certificates.x86_64 0:1.24.13-5.el7_7 will be updated ---> Package subscription-manager-rhsm-certificates.x86_64 0:1.24.13-6.el7_7 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================================================================= Updating: python-syspurpose x86_64 1.24.13-6.el7_7 /python-syspurpose-1.24.13-6.el7_7.x86_64 126 k subscription-manager x86_64 1.24.13-6.el7_7 /subscription-manager-1.24.13-6.el7_7.x86_64 4.4 M subscription-manager-plugin-container x86_64 1.24.13-6.el7_7 /subscription-manager-plugin-container-1.24.13-6.el7_7.x86_64 27 k subscription-manager-rhsm x86_64 1.24.13-6.el7_7 /subscription-manager-rhsm-1.24.13-6.el7_7.x86_64 407 k subscription-manager-rhsm-certificates x86_64 1.24.13-6.el7_7 /subscription-manager-rhsm-certificates-1.24.13-6.el7_7.x86_64 7.2 k Transaction Summary ============================================================================================================================================================================================================================================= Upgrade 5 Packages Total size: 4.9 M Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : python-syspurpose-1.24.13-6.el7_7.x86_64 1/10 Updating : subscription-manager-rhsm-certificates-1.24.13-6.el7_7.x86_64 2/10 Updating : subscription-manager-rhsm-1.24.13-6.el7_7.x86_64 3/10 Updating : subscription-manager-1.24.13-6.el7_7.x86_64 4/10 Updating : subscription-manager-plugin-container-1.24.13-6.el7_7.x86_64 5/10 Cleanup : subscription-manager-plugin-container-1.24.13-5.el7_7.x86_64 6/10 Cleanup : subscription-manager-1.24.13-5.el7_7.x86_64 7/10 Cleanup : subscription-manager-rhsm-1.24.13-5.el7_7.x86_64 8/10 Cleanup : subscription-manager-rhsm-certificates-1.24.13-5.el7_7.x86_64 9/10 Cleanup : python-syspurpose-1.24.13-5.el7_7.x86_64 10/10 Verifying : subscription-manager-plugin-container-1.24.13-6.el7_7.x86_64 1/10 Verifying : subscription-manager-rhsm-certificates-1.24.13-6.el7_7.x86_64 2/10 Verifying : subscription-manager-rhsm-1.24.13-6.el7_7.x86_64 3/10 Verifying : subscription-manager-1.24.13-6.el7_7.x86_64 4/10 Verifying : python-syspurpose-1.24.13-6.el7_7.x86_64 5/10 Verifying : subscription-manager-plugin-container-1.24.13-5.el7_7.x86_64 6/10 Verifying : subscription-manager-rhsm-certificates-1.24.13-5.el7_7.x86_64 7/10 Verifying : python-syspurpose-1.24.13-5.el7_7.x86_64 8/10 Verifying : subscription-manager-1.24.13-5.el7_7.x86_64 9/10 Verifying : subscription-manager-rhsm-1.24.13-5.el7_7.x86_64 10/10 Updated: python-syspurpose.x86_64 0:1.24.13-6.el7_7 subscription-manager.x86_64 0:1.24.13-6.el7_7 subscription-manager-plugin-container.x86_64 0:1.24.13-6.el7_7 subscription-manager-rhsm.x86_64 0:1.24.13-6.el7_7 subscription-manager-rhsm-certificates.x86_64 0:1.24.13-6.el7_7 Complete! >> Testing original issues: [root@dhcp-8-29-183 1.24.13-6]# rpm -q subscription-manager subscription-manager-1.24.13-6.el7_7.x86_64 [root@dhcp-8-29-183 1.24.13-6]# subscription-manager register --org=xxx --activationkey=cragtest --force;echo $? Unregistering from: subscription.rhsm.redhat.com:443/subscription The system with UUID 813ea426-fe5d-4de4-9e3b-1c73b5003d3e has been unregistered All local data removed The system has been registered with ID: a928bf98-6e31-4e6f-97a9-193729ab26f7 The registered system name is: ex.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed Product Name: Red Hat Enterprise Linux Server - Extended Update Support Status: Not Subscribed 0 >> exit code is good [root@dhcp-8-29-183 1.24.13-6]# subscription-manager release --list +-------------------------------------------+ Available Releases +-------------------------------------------+ 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 7.9 7Server [root@dhcp-8-29-183 1.24.13-6]# subscription-manager release Release not set [root@dhcp-8-29-183 1.24.13-6]# subscription-manager release --set 7.7 Release set to: 7.7 [root@dhcp-8-29-183 1.24.13-6]# subscription-manager release Release: 7.7 [root@dhcp-8-29-183 1.24.13-6]# yum repolist -v | grep baseurl Repo-baseurl : https://cdn.redhat.com/content/dist/rhel/server/7/7.7/x86_64/os >> release config is good >> Now testing subscription-manager yum plugin entitlement message against stage SCA and non SCA account: >> Non-SCA [root@dhcp-8-29-183 1.24.13-6]# subscription-manager register Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: <testing non-SCA> Password: The system has been registered with ID: cd1f4cf2-7470-488c-b5e4-dadd2396b5ba The registered system name is: ex.redhat.com [root@dhcp-8-29-183 1.24.13-6]# ll /etc/pki/entitlement/ total 0 [root@dhcp-8-29-183 1.24.13-6]# yum repolist -v Not loading "rhnplugin" plugin, as it is disabled Loading "product-id" plugin Loading "search-disabled-repos" plugin Loading "subscription-manager" plugin Updating Subscription Management repositories. This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions. Config time: 0.949 Yum version: 3.4.3 Setting up Package Sacks repolist: 0 [root@dhcp-8-29-183 1.24.13-6]# yum repolist Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions. repolist: 0 [root@dhcp-8-29-183 1.24.13-6]# subscription-manager unregister Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription System has been unregistered. >> SCA [root@dhcp-8-29-183 1.24.13-6]# subscription-manager register Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: <testing SCA> Password: The system has been registered with ID: d8150134-81b4-4083-a6ea-3e22273b90ce The registered system name is: ex.redhat.com [root@dhcp-8-29-183 1.24.13-6]# ll /etc/pki/entitlement/ total 388 -rw-r--r--. 1 root root 3243 Feb 10 13:50 5047281786159080395-key.pem -rw-r--r--. 1 root root 391026 Feb 10 13:50 5047281786159080395.pem [root@dhcp-8-29-183 1.24.13-6]# yum repolist Loaded plugins: product-id, search-disabled-repos, subscription-manager repo id repo name status rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 32,679 repolist: 32,679 >> Regression corrected, LGTM. Verified on all counts. 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-2022:0714 |