Bug 2028894
| Summary: | subscription-manager service-level --serverurl encounters a "'dict' object has no attribute 'result'" | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | John Sefler <jsefler> |
| Component: | subscription-manager | Assignee: | mhorky |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9.0 | CC: | mhorky, redakkan, zpetrace |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 9.0 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | subscription-manager-1.29.23-1.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-05-17 15:58:19 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
John Sefler
2021-12-03 17:07:34 UTC
Note: This negative test scenario is passing on RHEL 8.6 with "Invalid credentials." as the result... [root@ibm-x3650m4-01-vm-16 ~]# cat /etc/redhat-release Red Hat Enterprise Linux release 8.6 Beta (Ootpa) [root@ibm-x3650m4-01-vm-16 ~]# rpm -q subscription-manager subscription-manager-1.28.24-1.el8.x86_64 [root@ibm-x3650m4-01-vm-16 ~]# subscription-manager register --serverurl=subscription.rhsm.stage.redhat.com:443/subscription Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: stage_rhsmqe_testuser01 Password: The system has been registered with ID: f3fb8cba-3147-4865-99dd-2092bf6933ba The registered system name is: ibm-x3650m4-01-vm-16.ibm2.lab.eng.bos.redhat.com [root@ibm-x3650m4-01-vm-16 ~]# subscription-manager service-level --serverurl=subscription.rhn.redhat.com:443/subscription Invalid credentials. (HTTP error code 401: Unauthorized) [root@ibm-x3650m4-01-vm-16 ~]# subscription-manager service-level --serverurl=subscription.rhn.redhat.com:443/subscription --list Invalid credentials. (HTTP error code 401: Unauthorized) [root@ibm-x3650m4-01-vm-16 ~]# subscription-manager syspurpose service-level --serverurl=subscription.rhn.redhat.com:443/subscription Invalid credentials. (HTTP error code 401: Unauthorized) [root@ibm-x3650m4-01-vm-16 ~]# subscription-manager syspurpose service-level --serverurl=subscription.rhn.redhat.com:443/subscription --list Invalid credentials. (HTTP error code 401: Unauthorized) Version: [root@kvm-01-guest11 ~]# 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.29.23-1.git.8.0557699.el9 Registering: [root@kvm-01-guest11 ~]# subscription-manager register --serverurl=subscription.rhsm.stage.redhat.com:443/subscription Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: zpetracePH03 Password: The system has been registered with ID: e38d7dbc-cd77-44f1-a272-244472daad94 The registered system name is: kvm-01-guest11.rhts.eng.tlv.redhat.com Pre-verifying on registered system: [root@kvm-01-guest11 ~]# subscription-manager service-level --serverurl=subscription.rhn.redhat.com:443/subscription Error: --username, --password, --token, --org and --serverurl can be used only on unregistered systems [root@kvm-01-guest11 ~]# subscription-manager service-level --serverurl=subscription.rhn.redhat.com:443/subscription --list Error: --username, --password, --token, --org and --serverurl can be used only on unregistered systems [root@kvm-01-guest11 ~]# subscription-manager syspurpose service-level --serverurl=subscription.rhn.redhat.com:443/subscription --list Error: --username, --password, --token, --org and --serverurl can be used only on unregistered systems [root@kvm-01-guest11 ~]# subscription-manager service-level --serverurl=subscription.rhn.redhat.com:443/subscription --show Error: --username, --password, --token, --org and --serverurl can be used only on unregistered systems --> PASSED Pre-verifying on unregistered system: [root@kvm-01-guest11 ~]# subscription-manager unregister Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription System has been unregistered. [root@kvm-01-guest11 ~]# subscription-manager service-level --serverurl=subscription.rhn.redhat.com:443/subscription --show Service-level not set. [root@kvm-01-guest11 ~]# subscription-manager syspurpose service-level --serverurl=subscription.rhn.redhat.com:443/subscription --list Error: you must register or specify --username and --password to list service levels [root@kvm-01-guest11 ~]# subscription-manager service-level --serverurl=subscription.rhn.redhat.com:443/subscription Service-level not set. --> PASSED Verifying on : # subscription-manager version server type: Red Hat Subscription Management subscription management server: 3.2.22-1 subscription management rules: 5.41 subscription-manager: 1.29.23-1.el9 # rpm -qa subscription-manager --changelog | grep 2028894 - 2028894: Don't allow service-level --serverurl on registered system On a registered system : # subscription-manager service-level --serverurl=subscription.rhn.redhat.com:443/subscription Error: --username, --password, --token, --org and --serverurl can be used only on unregistered systems # subscription-manager service-level --serverurl=subscription.rhn.redhat.com:443/subscription --show Error: --username, --password, --token, --org and --serverurl can be used only on unregistered systems # subscription-manager syspurpose service-level --serverurl=subscription.rhn.redhat.com:443/subscription Error: --username, --password, --token, --org and --serverurl can be used only on unregistered systems # subscription-manager syspurpose service-level --serverurl=subscription.rhn.redhat.com:443/subscription --show Error: --username, --password, --token, --org and --serverurl can be used only on unregistered systems On a unregistered system: # subscription-manager unregister Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription System has been unregistered. # subscription-manager service-level --serverurl=subscription.rhn.redhat.com:443/subscription --show Service-level not set. # subscription-manager syspurpose service-level --serverurl=subscription.rhn.redhat.com:443/subscription --list Error: you must register or specify --username and --password to list service levels # subscription-manager service-level --serverurl=subscription.rhn.redhat.com:443/subscription Service-level not set. Based on the above observations, Verifying the bug. 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 |