Bug 1973807
| Summary: | unexpected error message due to an overzealous change from bug 1897767 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | John Sefler <jsefler> |
| Component: | subscription-manager | Assignee: | Pino Toscano <ptoscano> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.0 | CC: | candlepin-bugs, cdonnell, redakkan, rhsm-qe |
| Target Milestone: | beta | Keywords: | Triaged |
| Target Release: | 9.0 Beta | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | subscription-manager-1.29.18-1.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1973731 | Environment: | |
| Last Closed: | 2021-12-07 21:55:02 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: | 1973731 | ||
| Bug Blocks: | |||
|
Description
John Sefler
2021-06-18 18:25:23 UTC
This bug was cloned from Bug #1973731 because the same fix is needed in the main branch of subscription-manager for the benefit of RHEL-9.0. demonstrated here... On RHEL 8.4: [root@kvm-04-guest13 ~]# rpm -q subscription-manager subscription-manager-1.28.13-2.el8.x86_64 [root@kvm-04-guest13 ~]# subscription-manager role --list --username=bad-username --password=password Unable to get list of valid values for "role" On RHEL 9.0: [root@kvm-07-guest23 ~]# rpm -q subscription-manager subscription-manager-1.29.12-1.el9.x86_64 [root@kvm-07-guest23 ~]# subscription-manager role --list --username=bad-username --password=password This org does not have any subscriptions with an available "role" Expected results: Unable to get list of valid values for "role" (and put a period at the end of the sentence)^ Pre-verifying on : ================== # subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.18-1 subscription management rules: 5.41 subscription-manager: 1.29.15-1.git.14.dcbf3e7.el9 #subscription-manager role --list --username=bad-username --password=password Unable to get the list of valid values for the system purpose "role". # subscription-manager syspurpose role --list --username=bad-username --password=password Unable to get the list of valid values for the system purpose "role". # subscription-manager usage --list --username=bad-username --password=password Unable to get the list of valid values for the system purpose "usage". # subscription-manager syspurpose usage --list --username=bad-username --password=password Unable to get the list of valid values for the system purpose "usage". # 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 ^^ Notice the messaging on "service-level" module is slightly different , opened a new Bug 1977720 to make service-level error message to be consistent with other system purpose modules. Setting Verified:Tested Verifying on : ============= # subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.19-1 subscription management rules: 5.41 subscription-manager: 1.29.18-1.el9 # rpm -q subscription-manager --changelog | grep 1973807 - 1973807: fix wording on error when listing syspurpose values (#2684) # subscription-manager role --list --username=bad-username --password=password Unable to get the list of valid values for the system purpose "role". # subscription-manager syspurpose role --list --username=bad-username --password=password Unable to get the list of valid values for the system purpose "role". # subscription-manager usage --list --username=bad-username --password=password Unable to get the list of valid values for the system purpose "usage". # subscription-manager syspurpose usage --list --username=bad-username --password=password Unable to get the list of valid values for the system purpose "usage". # 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 For differences in the messaging in servie-level module , a separate bug has been reported as mentioned earlier . Based on the observations, moving the bug to Verified!! |