Bug 2046516
| Summary: | subscription-manager unable to register RHEL9 host with activation key - Unauthorized | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Roman Plevka <rplevka> | ||||
| Component: | subscription-manager | Assignee: | Pino Toscano <ptoscano> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 9.0 | CC: | arpandey, csnyder, jhnidek, jsefler, redakkan, swadeley | ||||
| Target Milestone: | rc | Keywords: | Regression, Triaged | ||||
| Target Release: | 9.0 | Flags: | pm-rhel:
mirror+
|
||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | subscription-manager-1.29.25-1.el9 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2022-05-17 15:58:31 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: | |||||||
| Attachments: |
|
||||||
Thanks Roman for the bug report. This is indeed a subscription-manager regression, so I'm reassigning it to the right product/component; we'll try to get to it soon. Pre-verifying on jenkins build Reproducer: [root@kvm-04-guest05 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.12-1 subscription management rules: 5.41 subscription-manager: 1.29.23-1.el9 [root@kvm-04-guest05 ~]# Register to a candlepin server with 'environments' variable- [root@kvm-04-guest05 ~]# subscription-manager register --activationkey act_key_test --org **** Invalid credentials. (HTTP error code 401: Unauthorized) =============================================================== Steps to verify: upgrading build to latest jenkins sub-man build- [root@kvm-04-guest05 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.22-1 subscription management rules: 5.41 subscription-manager: 1.29.25-1.git.0.307da3b.el9 [root@kvm-04-guest05 ~]# [root@kvm-04-guest05 ~]# subscription-manager register --activationkey act_key_test --org ***** The system has been registered with ID: d3d03ddd-f948-4e07-b621-c71cdd517ca8 The registered system name is: kvm-04-guest05.hv2.lab.eng.bos.redhat.com <<<<<<<<<<<< Successfully registered the system using activation key Installed Product Current Status: Product Name: Red Hat Enterprise Linux for x86_64 Beta Status: Not Subscribed Unable to find available subscriptions for all your installed products. Verification : Passed verifying on nightly build with sub-man subscription-manager-1.29.26-1.el9.x86_64 steps to verify- register the system to server with 'environments' resources using activation key and org [root@kvm-02-guest09 ~]# [root@kvm-02-guest09 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.22-1 subscription management rules: 5.41 subscription-manager: 1.29.26-1.el9 [root@kvm-02-guest09 ~]# [root@kvm-02-guest09 ~]# rpm -qa --changelog subscription-manager | grep 2046516 - 2046516: register: do not check environments w/ activation keys [root@kvm-02-guest09 ~]# [root@kvm-02-guest09 ~]# subscription-manager register --activationkey test_act_key --org snowwhite The system has been registered with ID: 8ee2e8e6-d090-4b09-ae9a-f076a8bfdd40 The registered system name is: kvm-02-guest09.lab.eng.rdu2.redhat.com <<<<<<<<<< successfully register system using activation key Installed Product Current Status: Product Name: Red Hat Enterprise Linux for x86_64 Beta Status: Not Subscribed Unable to find available subscriptions for all your installed products. [root@kvm-02-guest09 ~]# verification : PASSED 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 (new packages: subscription-manager), 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:3984 |
Created attachment 1855633 [details] rhsm.log Description of problem: Host registration with activation-key does not work with # subscription-manager register --activationkey vZfbLVti --org ezgMZbwwbkl Unauthorized: Invalid credentials for request. RHSM issues a GET request to rhsm/owners/ezgMZbwwbkl/environments and gets 401. Registration with user and password seems to work fine. Version-Release number of selected component (if applicable): Sat7.0 snap 7.0 subscription-manager-1.29.23-1.el9.x86_64 RHEL-9.0.0-20220118.1 How reproducible: always Additional info: the full traceback from rhsm.log is uploaded as attachment