Bug 633988
| Summary: | Need a --server flag for pulp-admin too | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Mike McCune <mmccune> |
| Component: | z_other | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | CC: | pthomas |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-16 14:20:50 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: | |||
| Bug Blocks: | 647488 | ||
|
Description
Mike McCune
2010-09-14 20:27:43 UTC
Looks like we have a --server flag now but you have to use it twice for it to stick: $ pulp-admin --server=box.example.com repo list ERROR: The server hostname you have configured in /etc/pulp/client.conf does not match the hostname returned from the Pulp server you are connecting to. You have: [localhost.localdomain] configured but got: [box.example.com] from the server. Please correct the host in the /etc/pulp/client.conf file $ pulp-admin --server=box.example.com repo list No repositories available to list 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.
[root@preethi ~]# rpm -q pulp
pulp-0.0.121-1.fc14.noarch
[root@preethi ~]# pulp-admin --username=admin --password=admin --server=10.16.79.185 repo list
+------------------------------------------+
List of Available Repositories
+------------------------------------------+
Label pulp-repo1
Name pulp-repo1
FeedURL http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-14/x86_64/
FeedType yum
Arch noarch
Sync Schedule None
Packages 10
Files 0
Distributions None
Publish True
Clones []
Groups None
[root@preethi ~]# cat /etc/pulp/client.conf |grep host
# host : The pulp server
host = preethi.usersys.redhat.com
Closing with Community Release 15 pulp-0.0.223-4. |