Hide Forgot
Description of problem: I am unable to tab complete 2 modules in subscription-manager from the CLI. Version-Release number of selected component (if applicable): subscription-manager-1.0.0-1.git.19.46c8d80 How reproducible: Never completes on my Fedora vm or my RHEL 6.2 vm Steps to Reproduce: 1a. type subscription-manager rel and try to tab complete, nothing happens or 1b. type subscription-manager serv and try to tab complete, nothing happens Actual results: No tab completion, I must finish typing them correctly on my own Expected results: For tab completion to work, like the rest of the modules
commit e24c7eda324894fb75e835e33119df81ba90f35e Author: Adrian Likins <alikins> Date: Thu Apr 12 15:47:59 2012 -0400 812104: add "release" and "service-level" to completion
Note: This functionality requires installation of bash-completion package... [root@jsefler-r63-server ~]# rpm -q bash-completion bash-completion-1.3-5.el6.noarch Verifying Version... [root@jsefler-r63-server ~]# rpm -q subscription-manager subscription-manager-0.99.15-1.el6.x86_64 WITH INSTALLATION OF... [root@jsefler-r63-server ~]# rpm -q bash-completion bash-completion-1.3-5.el6.noarch Primary Modules: list List subscription and product information for this machine refresh Pull the latest subscription data from the server register register the client to RHN release Configure what os release to use subscribe Subscribe the registered machine to a specified product unregister unregister the client from RHN unsubscribe Unsubscribe the machine from all or specific subscriptions Other Modules (Please consult documentation): clean Remove all local consumer and subscription data without affecting the server config List, set, or remove the configuration parameters in use by this machine. environments Display the environments available for a user facts Work with the current facts for this machine identity Display the identity certificate for this machine or request a new one import Import certificates which were provided outside of the tool orgs Display the orgs against which a user can register a system redeem Attempt to redeem a subscription for a preconfigured machine repos List the repos which this machine is entitled to use service-level Manage service levels for this system. VERIFIED! All of those ^ subscription-manager primary modules now work with tab completion.
In fact, all of the options also tab complete as demonstrated below... example: type... subscrip<TAB> lis<TAB> --<TAB><TAB> [root@jsefler-r63-server ~]# subscription-manager list -- --all --help --proxy --available --installed --proxypassword --consumed --ondate --proxyuser [root@jsefler-r63-server ~]# subscription-manager refresh -- --help --proxy --proxypassword --proxyuser [root@jsefler-r63-server ~]# subscription-manager register -- --activationkey --force --password --type --autosubscribe --help --proxy --username --consumerid --name --proxypassword --environment --org --proxyuser [root@jsefler-r63-server ~]# subscription-manager release -- --help --proxy --proxyuser --list --proxypassword --set [root@jsefler-r63-server ~]# subscription-manager subscribe -- --auto --pool --proxypassword --quantity --help --proxy --proxyuser [root@jsefler-r63-server ~]# subscription-manager unregister -- --help --proxy --proxypassword --proxyuser [root@jsefler-r63-server ~]# subscription-manager unsubscribe -- --all --proxy --proxyuser --help --proxypassword --serial [root@jsefler-r63-server ~]# subscription-manager clean -- --help --proxy --proxypassword --proxyuser [root@jsefler-r63-server ~]# subscription-manager config -- --help --rhsm.hostname --list --rhsm.insecure --proxy --rhsm.manage_repos --proxypassword --rhsm.port --proxyuser --rhsm.prefix --remove --rhsm.productcertdir --rhsm.baseurl --rhsm.proxy_hostname --rhsm.ca_cert_dir --rhsm.proxy_password --rhsmcertd.baseurl --rhsm.proxy_port --rhsmcertd.ca_cert_dir --rhsm.proxy_user --rhsmcertd.certfrequency --rhsm.repo_ca_cert --rhsmcertd.consumercertdir --rhsm.ssl_verify_depth --rhsmcertd.entitlementcertdir --server.baseurl --rhsmcertd.healfrequency --server.ca_cert_dir --rhsmcertd.hostname --server.certfrequency --rhsmcertd.insecure --server.consumercertdir --rhsmcertd.manage_repos --server.entitlementcertdir --rhsmcertd.port --server.healfrequency --rhsmcertd.prefix --server.hostname --rhsmcertd.productcertdir --server.insecure --rhsmcertd.proxy_hostname --server.manage_repos --rhsmcertd.proxy_password --server.port --rhsmcertd.proxy_port --server.prefix --rhsmcertd.proxy_user --server.productcertdir --rhsmcertd.repo_ca_cert --server.proxy_hostname --rhsmcertd.ssl_verify_depth --server.proxy_password --rhsm.certfrequency --server.proxy_port --rhsm.consumercertdir --server.proxy_user --rhsm.entitlementcertdir --server.repo_ca_cert --rhsm.healfrequency --server.ssl_verify_depth [root@jsefler-r63-server ~]# subscription-manager environments --^C [root@jsefler-r63-server ~]# subscription-manager facts -- --help --proxy --proxyuser --list --proxypassword --update [root@jsefler-r63-server ~]# subscription-manager identity -- --force --password --proxypassword --regenerate --help --proxy --proxyuser --username [root@jsefler-r63-server ~]# subscription-manager import -- --certificate --proxy --proxyuser --help --proxypassword [root@jsefler-r63-server ~]# subscription-manager orgs -- --help --proxy --proxyuser --password --proxypassword --username [root@jsefler-r63-server ~]# subscription-manager redeem -- --email --locale --proxypassword --help --proxy --proxyuser [root@jsefler-r63-server ~]# subscription-manager repos -- --help --proxy --proxyuser --list --proxypassword [root@jsefler-r63-server ~]# subscription-manager service-level -- --help --org --proxypassword --show --list --proxy --proxyuser [root@jsefler-r63-server ~]#
Note in comment 7 that TAB completion on subscription-manager environments options actually failed. See Bug 817117 opened seperately.
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, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0804.html