Actions
Issue #1399
closedCan't bind repo to pulp-consumer
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Master
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
It looks to me that even though pulp-consumer is reporting that the consumer is registered, the database is not being updated to reflect that information. As result you can't bind a repo to to the consumer.
sudo pulp-consumer -u admin -p admin register --consumer-id c1
Consumer [c1] successfully registered
pulp-consumer rpm bind --repo-id=zoo
The following resource(s) could not be found:
c1 (login)
---------- ssl_access_log -------------
172.16.137.44 - - [07/Dec/2015:18:36:14 +0000] "POST /pulp/api/v2/consumers/ HTTP/1.1" 201 2502
172.16.137.44 - - [07/Dec/2015:18:36:14 +0000] "GET /pulp/static/rsa_pub.key HTTP/1.1" 200 451
172.16.137.44 - - [07/Dec/2015:18:36:15 +0000] "GET /pulp/api/v2/consumers/c1/ HTTP/1.1" 404 343
172.16.137.44 - - [07/Dec/2015:18:36:31 +0000] "POST /pulp/api/v2/consumers/c1/bindings/ HTTP/1.1" 404 353
Actions
The auth decorator no longer causes a 404s for consumers.
It also no longer causes a 404 for missing users, which is an incorrect behaviour since this decorator is used on all views.
closes #1399