Bug 658162
| Summary: | pulp-client needs to use --server twice for 'consumer create' | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | user-experience | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | CC: | mmccune |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 655256 | Environment: | |
| Last Closed: | 2011-08-16 14:02:23 UTC | Type: | --- |
| 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: | 655256 | ||
| Bug Blocks: | 647488 | ||
|
Description
Preethi Thomas
2010-11-29 14:45:31 UTC
conclusion from discussion on IRC: * fix the requirement to run --server 2x before it works * dont override conf with server value if you want to permanently change it, edit the conf file commit f40ffff0efbc2843af6612befe1cc60e0ad5304c
Author: Pradeep Kilambi <pkilambi>
Date: Mon Jan 3 16:12:54 2011 -0500
633988, 658162 - server option enhancements:
* server option will not update config file any more and picks up server url at runtime from cli
* user shouldnt have to run commands twice to take effect
Test:
* --server should take precedence over config
* if no --server cli uses config url
* config is not overwritten when --server is specified
Fixed in 0.120. Verified
[root@10 ~]# rpm -q pulp
pulp-0.0.121-1.fc14.noarch
[root@10 ~]# pulp-client --help
Usage: pulp-client <options> <command>
Supported Commands:
consumer consumer specific actions to pulp server
errata errata specific actions to pulp server
repo repository specific actions to pulp server
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
-s SERVER, --server=SERVER
pulp server host
[root@10 ~]#
When --server option is specified the result as follows
[root@10 ~]# pulp-client --server=preethi.usersys.redhat.com -u admin -p admin consumer create --id=10.16.79.226
warning: this client is not registered; please register to continue
Successfully created consumer [ 10.16.79.226 ]
On the server
[root@preethi ~]# pulp-admin consumer list
+------------------------------------------+
Consumer Information
+------------------------------------------+
Id preethi.usersys.redhat.com
Description None
Subscribed Repos /pulp/api/consumers/preethi.usersys.redhat.com/repoids/
Additional info {}
Id 10.16.79.226
Description None
Subscribed Repos /pulp/api/consumers/10.16.79.226/repoids/
Additional info {}
[root@10 ~]# pulp-client --server=preethi.usersys.redhat.com -u admin -p admin consumer create --id=10.16.79.226
warning: this client is not registered; please register to continue
Successfully created consumer [ 10.16.79.226 ]
When --server is not specified the config is being used
[root@10 ~]# pulp-client -u admin -p admin consumer create --id=10.16.79.226 warning: this client is not registered; please register to continue
Successfully created consumer [ 10.16.79.226 ]
[root@10 ~]# pulp-admin consumer list+------------------------------------------+
Consumer Information
+------------------------------------------+
Id 10.16.79.226
Description None
Subscribed Repos /pulp/api/consumers/10.16.79.226/repoids/
Additional info {}
Closing with Community Release 15 pulp-0.0.223-4. |