Description of problem: Our auth login module has a --username and --password options. But so does our pulp-admin command. $ sudo pulp-admin --help Usage: pulp-admin <options> <command> <snip> Options: -h, --help show this help message and exit Pulp User Account Credentials: -u USERNAME, --username=USERNAME account username -p PASSWORD, --password=PASSWORD account password Pulp Server Information: --host=HOST pulp server host name (default: localhost.localdomain) </snip> $ sudo pulp-admin auth login --help Usage: pulp-admin <options> auth login <options> Options: -h, --help show this help message and exit -u USERNAME, --username=USERNAME pulp account username -p PASSWORD, --password=PASSWORD pulp account password Ideally since the -u/-p on pulp-admin command is common to all commands; auth login should just use those instead of having its own --username/--password options. So this is expected to work: pulp-admin -u admin -p admin auth login vs pulp-admin -u admin -p admin auth login --username admin -password admin
The pulp-admin auth login command has been fixed to use either of the following: pulp-admin -u <user> -p <password> auth login pulp-admin auth login -u <user> -p <password> Fix pushed in: 749069bfdd5ad60d7b3f48791edfe920b82613ef
build: 0.176
verified [root@preethi ~]# pulp-admin -u admin -p admin auth login User credentials successfully stored at [/root/.pulp] [root@preethi ~]# pulp-admin repo list +------------------------------------------+ List of Available Repositories +------------------------------------------+ Id f15 Name f15 Feed URL http://download.devel.redhat.com/released/F-15/Beta/Fedora/x86_64/os/ Feed Type remote Feed Certs CA:No Cert:No Key:No Consumer Certs CA:No Cert:No Key:No Architecture noarch Sync Schedule R2/2011-05-24T22:00:00-04:00/P1D Packages 2937 Files 0 Distributions ks-f15-noarch Publish True Clones [] Groups None Filters [] Notes {} Id f14 Name f14 Feed URL http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os/ Feed Type remote Feed Certs CA:No Cert:No Key:No Consumer Certs CA:No Cert:No Key:No Architecture noarch Sync Schedule R10/2011-05-25T02:00:00-04:00/PT1H Packages 2766 Files 0 Distributions ks-f14-noarch Publish True Clones [] Groups None Filters [] Notes {} [root@preethi ~]# pulp-admin auth logout User credentials removed from [/root/.pulp] [root@preethi ~]# pulp-admin repo list error: operation failed: No valid authorization credentials found, please see: pulp-admin --help [root@preethi ~]# pulp-admin auth login -u admin -p admin User credentials successfully stored at [/root/.pulp] [root@preethi ~]# pulp-admin repo list +------------------------------------------+ List of Available Repositories +------------------------------------------+ Id f15 Name f15 Feed URL http://download.devel.redhat.com/released/F-15/Beta/Fedora/x86_64/os/ Feed Type remote Feed Certs CA:No Cert:No Key:No Consumer Certs CA:No Cert:No Key:No Architecture noarch Sync Schedule R2/2011-05-24T22:00:00-04:00/P1D Packages 2937 Files 0 Distributions ks-f15-noarch Publish True Clones [] Groups None Filters [] Notes {} Id f14 Name f14 Feed URL http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os/ Feed Type remote Feed Certs CA:No Cert:No Key:No Consumer Certs CA:No Cert:No Key:No Architecture noarch Sync Schedule R10/2011-05-25T02:00:00-04:00/PT1H Packages 2766 Files 0 Distributions ks-f14-noarch Publish True Clones [] Groups None Filters [] Notes {} [root@preethi ~]# pulp-admin auth logout User credentials removed from [/root/.pulp] [root@preethi ~]# pulp-admin repo list error: operation failed: No valid authorization credentials found, please see: pulp-admin --help [root@preethi ~]# pulp-admin auth login --username admin -password admin error: operation failed: Invalid username or password [root@preethi ~]# pulp-admin auth login --username admin --password admin User credentials successfully stored at [/root/.pulp] [root@preethi ~]# pulp-admin repo list +------------------------------------------+ List of Available Repositories +------------------------------------------+ Id f15 Name f15 Feed URL http://download.devel.redhat.com/released/F-15/Beta/Fedora/x86_64/os/ Feed Type remote Feed Certs CA:No Cert:No Key:No Consumer Certs CA:No Cert:No Key:No Architecture noarch Sync Schedule R2/2011-05-24T22:00:00-04:00/P1D Packages 2937 Files 0 Distributions ks-f15-noarch Publish True Clones [] Groups None Filters [] Notes {} Id f14 Name f14 Feed URL http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os/ Feed Type remote Feed Certs CA:No Cert:No Key:No Consumer Certs CA:No Cert:No Key:No Architecture noarch Sync Schedule R10/2011-05-25T02:00:00-04:00/PT1H Packages 2766 Files 0 Distributions ks-f14-noarch Publish True Clones [] Groups None Filters [] Notes {}
Closing with Community Release 15 pulp-0.0.223-4.