Bug 2131789
| Summary: | Gathering information about DNF profile blocks registration process | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Jiri Hnidek <jhnidek> | |
| Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> | |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 9.1 | CC: | cdonnell, jsefler, redakkan, zpytela | |
| Target Milestone: | rc | Keywords: | Triaged | |
| Target Release: | 9.2 | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | subscription-manager-1.29.32-1.el9 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2132242 (view as bug list) | Environment: | ||
| Last Closed: | 2023-05-09 08:18:42 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: | 2132242 | |||
|
Description
Jiri Hnidek
2022-10-03 16:03:24 UTC
>> Pre-verification against QE builds ( subscription-manager-1.29.31+48.g4cdc769cd-1.git.0.20cba4e ) using compose 9.2-20221129.2: [root@dhcp-13-226-244 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 4.2.10-1 subscription management rules: 5.43 subscription-manager: 1.29.31-1.el9 [root@dhcp-13-226-244 ~]# time subscription-manager register --username xx --password xx Registering to: subscription.rhsm.redhat.com:443/subscription The system has been registered with ID: 24f366a1-b6d1-4b3d-ae49-a10f67bb40c0 The registered system name is: test.example.com real 0m57.839s user 0m48.149s sys 0m3.414s [root@dhcp-13-226-244 ~]# dnf update subscription-manager 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. Last metadata expiration check: 0:00:24 ago on Thu Dec 1 11:47:08 2022. Dependencies resolved. ===================================================================================================================== Package Arch Version Repository Size ===================================================================================================================== Upgrading: libdnf-plugin-subscription-manager x86_64 1.29.31+48.g4cdc769cd-1.git.0.20cba4e rhsm_RHEL9.2 82 k python3-cloud-what x86_64 1.29.31+48.g4cdc769cd-1.git.0.20cba4e rhsm_RHEL9.2 93 k python3-subscription-manager-rhsm x86_64 1.29.31+48.g4cdc769cd-1.git.0.20cba4e rhsm_RHEL9.2 178 k subscription-manager x86_64 1.29.31+48.g4cdc769cd-1.git.0.20cba4e rhsm_RHEL9.2 779 k Transaction Summary ===================================================================================================================== Upgrade 4 Packages Total download size: 1.1 M Is this ok [y/N]: y Downloading Packages: (1/4): libdnf-plugin-subscription-manager-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_ 343 kB/s | 82 kB 00:00 (2/4): python3-subscription-manager-rhsm-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_6 609 kB/s | 178 kB 00:00 (3/4): python3-cloud-what-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64.rpm 251 kB/s | 93 kB 00:00 (4/4): subscription-manager-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64.rpm 3.0 MB/s | 779 kB 00:00 --------------------------------------------------------------------------------------------------------------------- Total 2.2 MB/s | 1.1 MB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Upgrading : python3-cloud-what-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 1/8 Upgrading : python3-subscription-manager-rhsm-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 2/8 Upgrading : libdnf-plugin-subscription-manager-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 3/8 Running scriptlet: subscription-manager-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 4/8 Upgrading : subscription-manager-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 4/8 Running scriptlet: subscription-manager-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 4/8 Running scriptlet: subscription-manager-1.29.31-1.el9.x86_64 5/8 Cleanup : subscription-manager-1.29.31-1.el9.x86_64 5/8 Running scriptlet: subscription-manager-1.29.31-1.el9.x86_64 5/8 Cleanup : python3-subscription-manager-rhsm-1.29.31-1.el9.x86_64 6/8 Cleanup : python3-cloud-what-1.29.31-1.el9.x86_64 7/8 Cleanup : libdnf-plugin-subscription-manager-1.29.31-1.el9.x86_64 8/8 Running scriptlet: subscription-manager-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 8/8 Running scriptlet: libdnf-plugin-subscription-manager-1.29.31-1.el9.x86_64 8/8 Verifying : libdnf-plugin-subscription-manager-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 1/8 Verifying : libdnf-plugin-subscription-manager-1.29.31-1.el9.x86_64 2/8 Verifying : python3-cloud-what-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 3/8 Verifying : python3-cloud-what-1.29.31-1.el9.x86_64 4/8 Verifying : python3-subscription-manager-rhsm-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 5/8 Verifying : python3-subscription-manager-rhsm-1.29.31-1.el9.x86_64 6/8 Verifying : subscription-manager-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 7/8 Verifying : subscription-manager-1.29.31-1.el9.x86_64 8/8 Installed products updated. Upgraded: libdnf-plugin-subscription-manager-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 python3-cloud-what-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 python3-subscription-manager-rhsm-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 subscription-manager-1.29.31+48.g4cdc769cd-1.git.0.20cba4e.x86_64 Complete! [root@dhcp-13-226-244 ~]# subscription-manager unregister Unregistering from: subscription.rhsm.redhat.com:443/subscription System has been unregistered. [root@dhcp-13-226-244 ~]# dnf clean all Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. 11 files removed [root@dhcp-13-226-244 ~]# time subscription-manager register --username xx --password xx Registering to: subscription.rhsm.redhat.com:443/subscription The system has been registered with ID: 2ba676c4-7520-47bd-b6ec-fb6fba2a3e07 The registered system name is: test.example.com real 0m4.499s user 0m0.824s sys 0m0.328s >> 4.5s vs 57s registration. >> LGTM, pre-verified. Effectively the fix for this bug was a performance improvement. Instead of blocking the registration task to wait for "dnf uploadprofile" to complete, the task is now spawned off to the rhsmcertd-worker to complete in parallel. Hence the registration task completes much faster. The performance improvement is demonstrated in comment 1 and passes automated tests in comment 6 and comment 9. The fixed package subscription-manager-1.29.32-1.el9 has landed in RHEL compose RHEL-9.2.0-20230117.13 Moving 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 (subscription-manager bug fix and enhancement 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-2023:2493 |