Bug 845010
Summary: | Creating a second repo with the same feed is successful but fails to create any repos after. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> | ||||
Component: | user-experience | Assignee: | Barnaby Court <bcourt> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Preethi Thomas <pthomas> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | high | ||||||
Version: | Master | CC: | jason.dobies, mhrivnak, skarmark | ||||
Target Milestone: | --- | Keywords: | Triaged | ||||
Target Release: | 2.3.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-09-09 17:23:00 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Preethi Thomas
2012-08-01 13:16:08 UTC
Turning this over to Barnaby, who recently did work in this area. Creating two repos in a row with the same feed now produces an error, but not the helpful kind. Here is the second create: $ pulp-admin rpm repo create --repo-id=zoo2 --feed=http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/ The server indicated one or more values were incorrect. The server provided the following error message: Pulp exception occurred: PulpDataException More information can be found in the client log file ~/.pulp/admin.log. An here is pulp.log: Traceback (most recent call last): File "/home/mhrivnak/git/pulp/server/pulp/server/managers/repo/distributor.py", line 169, in add_distributor result = distributor_instance.validate_config(transfer_repo, call_config, config_conduit) File "/usr/lib/pulp/plugins/distributors/yum_distributor/distributor.py", line 217, in validate_config if conflict_items.count() > 0: TypeError: count() takes exactly one argument (0 given) I think that on the line linked below, you want "len(conflict_items)" instead of "conflict_items.count()". It's also pythonic to just say "if conflict_items:" This item was also fixed by 1004897 *** This bug has been marked as a duplicate of bug 1004897 *** |