Bug 1821830
| Summary: | Registration fails with a message "Restlib' object has no attribute '_get_cert_key_list'" | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Shwetha Kallesh <skallesh> |
| Component: | subscription-manager | Assignee: | William Poteat <wpoteat> |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.9 | CC: | candlepin-bugs, cdonnell, jsefler, pvlasin, qianzhan, redakkan, smaitra, wpoteat |
| Target Milestone: | beta | Keywords: | Regression |
| 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: | 2020-09-29 19:23:08 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: | 1818012 | ||
*** Bug 1822029 has been marked as a duplicate of this bug. *** 1. What is the scope of harm if this BZ is not resolved in this release? Reviewers want to know which RHEL features or customers are affected and if it will impact any Layered Product or Hardware partner plans. Subscription Manager cannot execute a register 2. What are the risks associated with resolving this BZ? Reviewers want to know the scope of retesting, potential regressions. Subscription Manager cannot execute a register. This is a regression. 3. Provide any other details that meet blocker criteria or should be weighed in making a decision (Other releases affected, upstream status, business impacts, etc). It will make subscription manager unuseable. Verification:
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.9.21-1
subscription management rules: 5.37
subscription-manager: 1.24.32
[root@hpe-dl380pgen8-02-vm-4 ~]
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager register --serverurl subscription.rhsm.stage.redhat.com --username stage_auto_testuser --password redhat --auto-attach
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
The system has been registered with ID: acdf2dc2-ec68-4289-b9be-b4543e095b87
The registered system name is: hpe-dl380pgen8-02-vm-4.hpe2.lab.eng.bos.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed
^^ moving bug to verified as I system is registered sucessfully without any "Restlib' object has no attribute '_get_cert_key_list'" error message
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Enterprise Linux Academic Site Subscription with Smart Management, Premium (Server, Desktop, Workstation, POWER, HPC, per FTE)
Provides: Red Hat Enterprise Linux Atomic Host
Red Hat Enterprise Linux Atomic Host Beta
Red Hat Developer Tools (for RHEL Server)
Red Hat Container Images
RHEL for SAP for Power, little endian - Extended Update Support
Red Hat Developer Tools Beta (for RHEL Server)
Red Hat Container Images Beta
RHEL for SAP HANA for Power, little endian - Extended Update Support
Red Hat Software Collections (for RHEL Server for IBM Power)
Red Hat Software Collections Beta (for RHEL Server for IBM Power)
Red Hat Software Collections (for RHEL Server for IBM Power LE)
Red Hat Enterprise Linux for Power, little endian
Red Hat Software Collections Beta (for RHEL Server for IBM Power LE)
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux Resilient Storage for x86_64 - Extended Update Support
dotNET on RHEL (for RHEL Server)
Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Extended Update Support
dotNET on RHEL Beta (for RHEL Server)
Oracle Java (for RHEL Server)
Oracle Java (for RHEL Client)
Oracle Java (for RHEL Compute Node)
Oracle Java (for RHEL Workstation)
Red Hat Software Collections (for RHEL Server)
SKU: RH2501844
Contract: 12032883
Account: 6319586
Serial: 789552165554790931
Pool ID: 8a99f9ae6e15eba0016e180f5f07017c
Provides Management: Yes
Active: True
Quantity Used: 1
Service Type: L1-L3
Roles:
Service Level: Premium
Usage: Production
Add-ons:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 10/29/2019
Ends: 10/28/2020
Entitlement Type: Virtual
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-2020:3866 |
Description of problem: Registration fails with a message "Restlib' object has no attribute '_get_cert_key_list'" Version-Release number of selected component (if applicable): [root@hp-z210-01 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: Unknown subscription management rules: Unknown subscription-manager: 1.24.31 How reproducible: Steps to Reproduce: [root@hp-z210-01 ~]# subscription-manager register Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: stage_auto_syspurpose001 Password: 'Restlib' object has no attribute '_get_cert_key_list' tail from rhsm.log ---------------------------------------------------------------------- 2020-04-07 12:59:25,786 [DEBUG] subscription-manager:10638:MainThread @connection.py:822 - Environment variable NO_PROXY= will be used 2020-04-07 12:59:25,787 [INFO] subscription-manager:10638:MainThread @connection.py:919 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=basic username=stage_auto_syspurpose001 2020-04-07 12:59:25,787 [ERROR] subscription-manager:10638:MainThread @managercli.py:215 - Error during registration: 'Restlib' object has no attribute '_get_cert_key_list' 2020-04-07 12:59:25,787 [ERROR] subscription-manager:10638:MainThread @managercli.py:216 - 'Restlib' object has no attribute '_get_cert_key_list' Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1365, in _do_command owner_key = self._determine_owner_key(admin_cp) File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1513, in _determine_owner_key owners = cp.getOwnerList(self.username) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 1281, in getOwnerList return self.conn.request_get(method) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 740, in request_get return self._request("GET", method, headers=headers) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 766, in _request info=info, headers=headers) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 574, in _request cert_key_pairs = self._get_cert_key_list() AttributeError: 'Restlib' object has no attribute '_get_cert_key_list' Actual results: Expected results: Additional info: