Bug 667168
| Summary: | pulp commands such as repo list doesn't ask for username/password after you logout with auth logout | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | z_other | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-16 13:58:38 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
Preethi Thomas
2011-01-04 17:48:33 UTC
In order to view repo list you either need to be logged in as admin or you should have a consumer. When you logout, you only remove admin credentials, but you still have consumer in /etc/pki/consumer. If I remove just admin: # pulp-admin auth logout User credentials removed from [/root/.pulp] # pulp-admin repo list Label bar123 Name bar123 FeedURL None FeedType None Arch noarch Sync Schedule None Packages 0 Files 0 Distributions None Publish True Clones [] Groups ['A'] Now if I remove consumer as well: # rm -f /etc/pki/consumer/* # pulp-admin repo list No valid credentials found So this is working as designed imo. Moving to QA. verified. I agree with the above comment
[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 {}
[root@preethi ~]# pulp-admin auth logout
User credentials removed from [/root/.pulp]
[root@preethi ~]# pulp-admin repo list
+------------------------------------------+
List of Available Repositories
+------------------------------------------+
Label feedles
Name feedless
FeedURL None
FeedType None
Arch noarch
Sync Schedule None
Packages 0
Files 0
Distributions None
Publish True
Clones []
Groups None
Label local
Name local
FeedURL file:///var/www/html/local-repo/
FeedType local
Arch noarch
Sync Schedule None
Packages 1
Files 0
Distributions None
Publish True
Clones []
Groups None
Label upload
Name upload
FeedURL None
FeedType None
Arch noarch
Sync Schedule None
Packages 2
Files 0
Distributions None
Publish True
Clones []
Groups None
Label f13
Name f13
FeedURL http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/
FeedType yum
Arch x86_64
Sync Schedule None
Packages 3102
Files 0
Distributions ks-f13-x86_64
Publish True
Clones []
Groups None
[root@preethi ~]# pulp-admin consumer delete
Successfully deleted consumer [preethi.usersys.redhat.com]
[root@preethi ~]#
[root@preethi ~]#
[root@preethi ~]# pulp-admin repo list
No valid credentials found
[root@preethi ~]#
Closing with Community Release 15 pulp-0.0.223-4. |