Bug 1753236
| Summary: | Cockpit plugin: when Organization is not specified, then error is displayed | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | 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: | high | |||
| Version: | 8.1 | CC: | anilsson, csnyder, jsefler, khowell, mcatanza, mramendi, redakkan, skallesh, swick | |
| Target Milestone: | rc | Keywords: | Triaged | |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1772582 (view as bug list) | Environment: | ||
| Last Closed: | 2021-05-18 13:32:41 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: | 1772582 | |||
| Attachments: | ||||
Let's use this BZ to handle when the user has only a single org. *** Bug 1796916 has been marked as a duplicate of this bug. *** *** Bug 1704670 has been marked as a duplicate of this bug. *** Created attachment 1717816 [details]
You must specify organization for new units
reproducer:
[root@ibm-x3650m4-01-vm-16 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.1.18-1
subscription management rules: 5.41
subscription-manager: 1.27.16-1.el8
1. open cockpit page, login with valid credentials
2. go to subscriptions tab
3. click on register button and try to register with user that belongs to only one org
results :
P.S the attachment
Early testing/verification comments: [root@hpe-dl380pgen8-02-vm-5 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 3.1.21-1 subscription management rules: 5.41 subscription-manager: 1.28.3-1.git.10.32f43d9.el8 1. open cockpit page, login with valid credentials 2. go to subscriptions tab 3. click on register button and try to register with user that belongs to only one org Result: System got registered successfully Please refer attachments: 1)Username and password details 2) successful registration Created attachment 1717820 [details]
Username and password details
Created attachment 1717821 [details]
successful registration
Created attachment 1726184 [details]
Username and password details
Early verification comments:
[root@ibm-x3650m4-01-vm-14 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.0-1
subscription management rules: 5.41
subscription-manager: 1.28.5-1.el8
1. open cockpit page, login with valid credentials
2. go to subscriptions tab
3. click on register button and try to register with user that belongs to only one org
Result:
System got registered successfully
Please refer attachments:
1)Username and password details
2)Successful registration
Created attachment 1726185 [details]
successful registration
Created attachment 1729707 [details]
Username and password details
[root@ibm-x3650m4-01-vm-08 ~]# rpm -qa subscription-manager --changelog | grep 1753236
- 1753236: D-Bus Register properly, when org not specified; ENT-2096
[root@ibm-x3650m4-01-vm-08 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.0-1
subscription management rules: 5.41
subscription-manager: 1.28.5-1.el8
1. open cockpit page, login with valid credentials
2. go to subscriptions tab
3. click on register button and try to register with user that belongs to only one org
Result:
System got registered successfully
Please refer attachments:
1)Username and password details
2)Successful registration
Created attachment 1729708 [details]
Successful registration of the final verification
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-2021:1575 *** Bug 1965027 has been marked as a duplicate of this bug. *** |
Created attachment 1616221 [details] Error in registration dialog, when nor org is specified Description of problem: When you try to register system using subscription-manager cockpit plugin, then it is not enough to type username and password, when you register against default candlepin server (subscription.rhsm.redhat.com). You have to also type organization despite subscription-manager CLI doesn't require to type organization. Version-Release number of selected component (if applicable): [root@localhost ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 2.7.5-1 subscription management rules: 5.37 subscription-manager: RPM_VERSION How reproducible: 100% Steps to Reproduce: 1. Open cockpit page: https://<ip_of_your_rhel8_system>:9090 2. Click on Subscriptions 3. Click on Register button 4. Type correct username and password in registration dialog 5. Click on register button in registration dialog Actual results: - Following error is displayed in registration dialog: "You must specify an organization for new units." (look at attachment). - System is registered (but not auto-attached) at this point and it is possible to close registration dialog using Cancel button, but it is very confusing! Expected results: - No error is printed, when user is member of one organization (similar behavior in subscription-manager CLI or GUI) - user can select from available organizations (similar behavior in subscription-manager GUI) Additional info: When you get list of available organization using: [root@localhost ~]# subscription-manager orgs --username jhnidek --password secret +-------------------------------------------+ jhnidek Organizations +-------------------------------------------+ Name: 1234567 Key: 1234567 And you use the name of organization (1234567) in registration dialog, then no error is displayed too.