Bug 2026286
| Summary: | Needs consistent error message in syspurpose modules(role/usage/addon) when an invalid org is used | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Rehana <redakkan> | |
| Component: | subscription-manager | Assignee: | Pino Toscano <ptoscano> | |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 9.0 | CC: | arpandey, candlepin-bugs, jsefler, rhsm-qe | |
| 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: | 2026013 | |||
| : | 2037902 (view as bug list) | 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: | ||||
| Bug Depends On: | 2026013 | |||
| Bug Blocks: | 2037902 | |||
|
Description
Rehana
2021-11-24 09:47:08 UTC
Preverification on jenkins build:
reproducing issue on : subscription-manager: 1.29.21-1.el9
[root@kvm-03-guest19 ~]# 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.el9
[root@kvm-03-guest19 ~]#
[root@kvm-03-guest19 ~]# subscription-manager service-level --list --username rhel9GA --password ****** --org=foo
Organization with id foo could not be found. (HTTP error code 404: Not Found)
[root@kvm-03-guest19 ~]#
[root@kvm-03-guest19 ~]# subscription-manager role --list --username rhel9GA --password ****** --org=foo
+-------------------------------------------+
Available role <<<<<<<<< org name ignored, should have thrown error
+-------------------------------------------+
- Red Hat Enterprise Linux Server
[root@kvm-03-guest19 ~]#
[root@kvm-03-guest19 ~]# subscription-manager usage --list --username rhel9GA --password ****** --org=foo
+-------------------------------------------+
Available usage <<<<<<<<< org name ignored, should have thrown error
+-------------------------------------------+
- Production
[root@kvm-03-guest19 ~]# subscription-manager addons --list --username rhel9GA --password ****** --org=foo
There are no available values for the system purpose "addons" from the available subscriptions in this organization. <<<<<<<<< org name ignored, should have thrown error
[root@hpe-dl380pgen8-02-vm-6 ~]#
[root@hpe-dl380pgen8-02-vm-6 ~]#
[root@hpe-dl380pgen8-02-vm-6 ~]#
lets install latest build from jenkins and verify-
[root@kvm-03-guest19 ~]# 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.71.2c658b9.el9
[root@kvm-03-guest19 ~]#
[root@kvm-03-guest19 ~]# subscription-manager service-level --list --username rhel9GA --password ****** --org=foo
Organization with id foo could not be found. (HTTP error code 404: Not Found) <<<<<<<<<<<< expected error message
[root@kvm-03-guest19 ~]#
[root@kvm-03-guest19 ~]# subscription-manager role --list --username rhel9GA --password ****** --org=foo
Organization with id foo could not be found. (HTTP error code 404: Not Found) <<<<<<<<<<<< expected error message
[root@kvm-03-guest19 ~]#
[root@kvm-03-guest19 ~]# subscription-manager usage --list --username rhel9GA --password ****** --org=foo
Organization with id foo could not be found. (HTTP error code 404: Not Found) <<<<<<<<<<<< expected error message
[root@kvm-03-guest19 ~]#
[root@kvm-03-guest19 ~]# subscription-manager addons --list --username rhel9GA --password ****** --org=foo
Organization with id foo could not be found. (HTTP error code 404: Not Found) <<<<<<<<<<<< expected error message
[root@kvm-03-guest19 ~]#
verification for sub-man syspurpose sub-modules-
[root@kvm-03-guest19 ~]# subscription-manager syspurpose service-level --list --username rhel9GA --password ****** --org=foo
Organization with id foo could not be found. (HTTP error code 404: Not Found) <<<<<<<<<<<< expected error message
[root@kvm-03-guest19 ~]# subscription-manager syspurpose role --list --username rhel9GA --password ****** --org=foo
Organization with id foo could not be found. (HTTP error code 404: Not Found) <<<<<<<<<<<< expected error message
[root@kvm-03-guest19 ~]# subscription-manager syspurpose usage --list --username rhel9GA --password ****** --org=foo
Organization with id foo could not be found. (HTTP error code 404: Not Found) <<<<<<<<<<<< expected error message
[root@kvm-03-guest19 ~]#
[root@kvm-03-guest19 ~]# subscription-manager syspurpose addons --list --username rhel9GA --password ****** --org=foo
Organization with id foo could not be found. (HTTP error code 404: Not Found) <<<<<<<<<<<< expected error message
[root@kvm-03-guest19 ~]#
Verification result:PASSED - All the syspurpose modules(role/usage/service-level/addons) failing with consistent error message for incorrect org value
Verifying on subscription-manager-1.29.23-1.el9.x86_64 steps to verify: [root@dell-per630-fc-01 ~]# 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.el9 [root@dell-per630-fc-01 ~]# [root@dell-per630-fc-01 ~]# subscription-manager service-level --list --username rhel9GA --password redhat@123 --org=foo Organization with id foo could not be found. (HTTP error code 404: Not Found) [root@dell-per630-fc-01 ~]# [root@dell-per630-fc-01 ~]# subscription-manager role --list --username rhel9GA --password redhat@123 --org=foo Organization with id foo could not be found. (HTTP error code 404: Not Found) [root@dell-per630-fc-01 ~]# [root@dell-per630-fc-01 ~]# subscription-manager usage --list --username rhel9GA --password redhat@123 --org=foo Organization with id foo could not be found. (HTTP error code 404: Not Found) [root@dell-per630-fc-01 ~]# [root@dell-per630-fc-01 ~]# subscription-manager addons --list --username rhel9GA --password redhat@123 --org=foo Organization with id foo could not be found. (HTTP error code 404: Not Found) [root@dell-per630-fc-01 ~]# [root@dell-per630-fc-01 ~]# subscription-manager syspurpose addons --list --username rhel9GA --password redhat@123 --org=foo Organization with id foo could not be found. (HTTP error code 404: Not Found) [root@dell-per630-fc-01 ~]# [root@dell-per630-fc-01 ~]# subscription-manager syspurpose usage --list --username rhel9GA --password redhat@123 --org=foo Organization with id foo could not be found. (HTTP error code 404: Not Found) [root@dell-per630-fc-01 ~]# [root@dell-per630-fc-01 ~]# subscription-manager syspurpose role --list --username rhel9GA --password redhat@123 --org=foo Organization with id foo could not be found. (HTTP error code 404: Not Found) [root@dell-per630-fc-01 ~]# [root@dell-per630-fc-01 ~]# subscription-manager syspurpose service-level --list --username rhel9GA --password redhat@123 --org=foo Organization with id foo could not be found. (HTTP error code 404: Not Found) [root@dell-per630-fc-01 ~]# [root@dell-per630-fc-01 ~]# All the syspurpose modules(role/usage/service-level/addons) failing with consistent error message for incorrect org value 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 (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 |