Bug 1977720
| Summary: | Make messaging in service-level module compliant with rest of the system purpose attributes | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Rehana <redakkan> |
| Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9.0 | CC: | cdonnell, jhnidek, ptoscano |
| Target Milestone: | beta | Keywords: | Triaged |
| Target Release: | 9.0 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | subscription-manager-1.29.21-1.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-05-17 15:58:13 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: | |||
|
Description
Rehana
2021-06-30 10:54:29 UTC
This happens because the implementation of the 'service-level' syspurpose command differs from the implementation used by other syspurpose commands. A better idea would be to eventually switch 'service-level' to the same implementation of the others, if possible. This should make its behaviour and diagnostic coherent with the others. Reproducing the failure : subscription management server: 3.2.21-1 subscription management rules: 5.41 subscription-manager: 1.29.18-2.el9 # subscription-manager syspurpose addons --list --username=bad-username --password=password Unable to get the list of valid values for the system purpose "addons". # subscription-manager addons --list --username=bad-username --password=password Unable to get the list of valid values for the system purpose "addons". # subscription-manager service-level --list --username=bad-username --password=password HTTP error (401 - Unauthorized): Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html # subscription-manager syspurpose service-level --list --username=bad-username --password=password HTTP error (401 - Unauthorized): Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html Pre-testing on : # subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.21-1 subscription management rules: 5.41 subscription-manager: 1.29.21-1.git.0.d3fb25b.el9 # subscription-manager syspurpose addons --list --username=bad-username --password=password Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP error code 401: Unauthorized) # subscription-manager addons --list --username=bad-username --password=password Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP error code 401: Unauthorized) # subscription-manager service-level --list --username=bad-username --password=password Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP error code 401: Unauthorized) # subscription-manager syspurpose service-level --list --username=bad-username --password=password Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP error code 401: Unauthorized) Observed that the following message " Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP error code 401: Unauthorized)" is displayed consistently across all the syspurpose modules. Marking Verified:tested. Verifying on : ------------- # subscription-manager version server type: Red Hat Subscription Management subscription management server: 3.2.21-1 subscription management rules: 5.41 subscription-manager: 1.29.21-1.el9 # subscription-manager syspurpose addons --list --username=bad-username --password=password Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP error code 401: Unauthorized) # subscription-manager addons --list --username=bad-username --password=password Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP error code 401: Unauthorized) # subscription-manager service-level --list --username=bad-username --password=password Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP error code 401: Unauthorized) # subscription-manager syspurpose service-level --list --username=bad-username --password=password Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP error code 401: Unauthorized) # subscription-manager role --list --username=bad-username --password=password Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP error code 401: Unauthorized) # subscription-manager syspurpose role --list --username=bad-username --password=password Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP error code 401: Unauthorized) # subscription-manager usage --list --username=bad-username --password=password Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP error code 401: Unauthorized) # subscription-manager syspurpose usage --list --username=bad-username --password=password Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html (HTTP error code 401: Unauthorized) All the test scenarios passed. Moving the bug 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 (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 |