Bug 1974641
| Summary: | Tab completion of does not list all the options available under the new syspurpose submodules | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Rehana <redakkan> |
| 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, zpetrace |
| 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: | |||
Version:
[root@kvm-08-guest11 ~]# 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.19-1.git.119.033bf98.el9
Bash-completion:
[root@kvm-08-guest11 ~]# yum install bash-completion
Updating Subscription Management repositories.
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Last metadata expiration check: 0:10:31 ago on Thu 11 Nov 2021 07:12:30 AM EST.
Package bash-completion-1:2.11-4.el9.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Pre-verifying 1:
[root@kvm-08-guest11 ~]# subscription-manager syspurpose role --list -h
usage: subscription-manager syspurpose role [OPTIONS]
Show or modify the system purpose role setting
optional arguments:
-h, --help show this help message and exit
--proxy PROXY_URL proxy URL in the form of hostname:port
--proxyuser PROXY_USER
user for HTTP proxy with basic authentication
--proxypassword PROXY_PASSWORD
password for HTTP proxy with basic authentication
--noproxy NO_PROXY host suffixes that should bypass HTTP proxy
--username USERNAME username to use when authorizing against the server
--password PASSWORD password to use when authorizing against the server
--token TOKEN token to use when authorizing against the server
--org ORG_KEY specify an organization
--set SET set role of system purpose
--unset unset role of system purpose
--show show this system's current role
--list list all role available
Pre-verifying 2:
[root@kvm-08-guest11 ~]# subscription-manager syspurpose role --list --<tab><tab>
--help --noproxy --password --proxypassword --set --token --username
--list --org --proxy --proxyuser --show --unset
^^ shows all the options --> PASSED
Pre-verifying 3:
[root@kvm-08-guest11 ~]# subscription-manager syspurpose usage --list --<tab><tab>
--help --noproxy --password --proxypassword --set --token --username
--list --org --proxy --proxyuser --show --unset
^^ shows all the options --> PASSED
Pre-verifying 4 - picking 2 options:
[root@kvm-08-guest11 ~]# subscription-manager syspurpose usage --username --<tab><tab>
--help --noproxy --password --proxypassword --set --token --username
--list --org --proxy --proxyuser --show --unset
^^ shows all the options --> PASSED
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 1974641
- 1974641: Fix tab completion with multiple optional commands
# subscription-manager syspurpose role --list -h
usage: subscription-manager syspurpose role [OPTIONS]
Show or modify the system purpose role setting
optional arguments:
-h, --help show this help message and exit
--proxy PROXY_URL proxy URL in the form of hostname:port
--proxyuser PROXY_USER
user for HTTP proxy with basic authentication
--proxypassword PROXY_PASSWORD
password for HTTP proxy with basic authentication
--noproxy NO_PROXY host suffixes that should bypass HTTP proxy
--username USERNAME username to use when authorizing against the server
--password PASSWORD password to use when authorizing against the server
--token TOKEN token to use when authorizing against the server
--org ORG_KEY specify an organization
--set SET set role of system purpose
--unset unset role of system purpose
--show show this system's current role
--list list all role available
# subscription-manager syspurpose role --list --
--help --password --set --username
--list --proxy --show
--noproxy --proxypassword --token
--org --proxyuser --unset
# subscription-manager syspurpose usage --
--help --password --set --username
--list --proxy --show
--noproxy --proxypassword --token
--org --proxyuser --unset
# subscription-manager syspurpose usage --username --
--help --password --set --username
--list --proxy --show
--noproxy --proxypassword --token
--org --proxyuser --unset
# subscription-manager syspurpose service-level --
--help --list --org --proxy --proxyuser --set --token --username
--insecure --noproxy --password --proxypassword --serverurl --show --unset
All options now appear in tab completion, 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 |
Description of problem: Version-Release number of selected component (if applicable): subscription management server: 4.1.0-1 subscription management rules: 5.41 subscription-manager: 1.29.15-1.git.0.5e9a992.el9 How reproducible: always Steps to Reproduce: 1.List the options under new role module # subscription-manager syspurpose role --list -h usage: subscription-manager syspurpose [OPTIONS] role [OPTIONS] Show or modify the system purpose role setting optional arguments: -h, --help show this help message and exit --proxy PROXY_URL proxy URL in the form of hostname:port --proxyuser PROXY_USER user for HTTP proxy with basic authentication --proxypassword PROXY_PASSWORD password for HTTP proxy with basic authentication --noproxy NO_PROXY host suffixes that should bypass HTTP proxy --username USERNAME username to use when authorizing against the server --password PASSWORD password to use when authorizing against the server --token TOKEN token to use when authorizing against the server --org ORG_KEY specify organization --set SET set role of system purpose --unset unset role of system purpose --show show this system's current role --list list all role available 2.Check the tab completion options # subscription-manager syspurpose role --list --<tab><tab> --help --noproxy --proxy --proxypassword --proxyuser --show ^^ Does not contain all the options 3.Sceanrio 2 subscription-manager syspurpose usage --<tab><tab> # subscription-manager syspurpose usage - -h --list --org --proxy --proxyuser --show --unset --help --noproxy --password --proxypassword --set --token --username ^^ Notice all options appear Now try to pick two options # subscription-manager syspurpose usage --username --<tab><tab> --help --noproxy --proxy --proxypassword --proxyuser --show ^^ Notice some of the options are now gone Actual results: tab completion is not working as expected under new `subscription-manager syspurpose` sub modules Expected results: Tab completion should work for all the options Additional info: