Bug 1983144
| Summary: | request for more useful feedback when an unknown subscription-manager argument is typed | ||
|---|---|---|---|
| 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: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9.0 | CC: | mhorky, redakkan |
| 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
John Sefler
2021-07-16 16:12:10 UTC
Here is another difference in response when arguments are incomplete after the move from optparse to argparse... ________________On RHEL-9:________________________________ [root@rhel9 ~]# subscription-manager repo-override --repo usage: subscription-manager repo-override [OPTIONS] subscription-manager: error: argument --repo: expected one argument [root@rhel9 ~]# echo $? 2 [root@rhel9 ~]# ________________On RHEL-8:________________________________ [root@rhel8 ~]# subscription-manager repo-override --repo Usage: subscription-manager repo-override [OPTIONS] subscription-manager: error: --repo option requires 1 argument [root@rhel8 ~]# echo $? 2 [root@rhel8 ~]# Note the capitalization difference in "usage"/"Usage" was reported in bug 1975641 Preliminary testing... [root@kvm-07-guest23 ~]# rpm -q subscription-manager subscription-manager-1.29.19-1.git.57.bfd5f1c.el9.x86_64 [root@kvm-07-guest23 ~]# rpm -q subscription-manager --changelog | grep 1983144 - 1983144: More useful feedback on unknown argument (mhorky) [root@kvm-07-guest23 ~]# subscription-manager attach --sku=RH00069 subscription-manager: error: no such option: --sku=RH00069 [root@kvm-07-guest23 ~]# echo $? 64 [root@kvm-07-guest23 ~]# VERIFIED: The stderr response of "subscription-manager: error: no such option: --sku=RH00069" closely matches the feedback originally reported on RHEL-8. VERIFIED: The exitCode of 64 (EX_USAGE) is more accurate than 2. The RHEL-9 response from comment 2 remains unchanged. Verifying 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.el9 # rpm -q subscription-manager --changelog | grep 1983144 - 1983144: More useful feedback on unknown argument (mhorky) # subscription-manager attach --sku=RH00004 subscription-manager: error: no such option: --sku=RH00004 # echo $? 64 Both message and Exit codes issues have been resolved. 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 |