Bug 2064002
Summary: | TypeError: registerConsumer() got an unexpected keyword argument 'environment' in initial-setup-graphical | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Jan Stavel <jstavel> | ||||
Component: | subscription-manager | Assignee: | Pino Toscano <ptoscano> | ||||
Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 8.6 | CC: | arpandey, cdonnell, jsefler, jwboyer, lmiksik, ptoscano, redakkan | ||||
Target Milestone: | rc | Keywords: | Regression, Triaged | ||||
Target Release: | 8.6 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | subscription-manager-1.28.29-2.el8 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 2065209 (view as bug list) | Environment: | |||||
Last Closed: | 2022-05-10 15:23:24 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: | 2026666, 2065209 | ||||||
Attachments: |
|
Uhh this is a regression in the GUI code, used only for the initial-setup addon, because of the changes for multi-environments (bug 1994056). The fix seems easy though, luckily. verifying on subscription-manager-1.28.29-2.el8.x86_64
Steps for verification:
[root@localhost ~]# 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.28.29-2.el8
[root@localhost ~]#
[root@localhost ~]# rpm -qa --changelog subscription-manager | grep 2064002
- 2064002: fix named argument for registerConsumer() (ptoscano)
[root@localhost ~]#
[root@localhost ~]# systemctl enable initial-setup
Created symlink /etc/systemd/system/graphical.target.wants/initial-setup.service → /usr/lib/systemd/system/initial-setup.service.
Created symlink /etc/systemd/system/multi-user.target.wants/initial-setup.service → /usr/lib/systemd/system/initial-setup.service.
[root@localhost ~]#
[root@localhost ~]# reboot
******* Successfully Registered using initial setup GUI *********
Image attached attachment 1868665 [details]
[root@localhost ~]# subscription-manager status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Current
System Purpose Status: Not Specified
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 (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-2022:2047 |
Created attachment 1865924 [details] an error in registration dialog Description of problem: Version-Release number of selected component (if applicable): server type: This system is currently not registered. subscription management server: 3.2.22-1 subscription management rules: 5.41 subscription-manager: 1.28.28-1.el8 Steps to Reproduce: I want to register a system. I've used RHEL-8.6.0-20220302.5 Actual results: I used subscriptions plugin in anaconda and initial-setup-graphical. I wanted to register a system against a stage candlepin server. An error: TypeError: registerConsumer() got an unexpected keyword argument 'environment' in initial-setup-graphical appeared. I've attached a screenshot with the error message too. Additional info: /var/log/rhsm/rhsm.log: oneType: None 2022-03-11 22:59:28,289 [ERR] initial-setup-graphical:3972:MainThread @utils.py:165 - None Traceback (most recent call last): File "/usr/lib64/python3.6/site-packages/subscription_manager/gui/registergui.py", line 2000, in _register_consumer usage=syspurpose.get('usage') TypeError: registerConsumer() got an unexpected keyword argument 'environment' 2022-03-11 22:59:28,984 [WRN] initial-setup-graphical:3972:RegisterConsumerThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not # fully supported by this version of dmidecode. NoneType: None 2022-03-11 22:59:29,159 [ERR] initial-setup-graphical:3972:MainThread @utils.py:165 - None Traceback (most recent call last): File "/usr/lib64/python3.6/site-packages/subscription_manager/gui/registergui.py", line 2000, in _register_consumer usage=syspurpose.get('usage') TypeError: registerConsumer() got an unexpected keyword argument 'environment' 2022-03-11 23:02:52,177 [WARNING] rhsm-service:2611:Thread-FileSystemWatcher @logutil.py:170 - logging already initialized