Bug 846031
Summary: | Adding a distributor to a repo via API causes duplicate Key Error | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Pradeep Kilambi <pkilambi> |
Component: | API/integration | Assignee: | Jay Dobies <jason.dobies> |
Status: | CLOSED WORKSFORME | QA Contact: | Preethi Thomas <pthomas> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.0.6 | CC: | skarmark |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | Sprint 39 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-09-05 14:46:13 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: |
Description
Pradeep Kilambi
2012-08-06 15:14:23 UTC
I can't reproduce this. I set up a script to create a repo and add both an ISO and yum distributor and it worked. Without more details on the call you made, this is going to be hard to debug. If this is an issue, we'll run into it when we start using the ISO distributor for normal repositories. For now, I'm closing this out figuring it was a local environment issue during dev. Below are the REST calls back and forth for adding the two distributors. I even made the call to add the iso distributor twice; the first is replaced by the second and no duplicate was seen. No error was received: Request Body { "distributor_id": "yum_distributor", "distributor_type_id": "yum_distributor", "distributor_config": { "http": true, "https": true, "relative_url": "http://localhost" } } Response Body { "repo_id": "one", "_ns": "repo_distributors", "last_publish": null, "auto_publish": false, "scheduled_publishes": [], "distributor_type_id": "yum_distributor", "scratchpad": null, "_id": { "$oid": "504765028a905b04e9000094" }, "config": { "http": true, "relative_url": "http://localhost", "https": true }, "id": "yum_distributor" } Request Body { "distributor_id": "iso_distributor", "distributor_type_id": "iso_distributor", "distributor_config": { "http": true, "https": true } } Response Body { "repo_id": "one", "_ns": "repo_distributors", "last_publish": null, "auto_publish": false, "scheduled_publishes": [], "distributor_type_id": "iso_distributor", "scratchpad": null, "_id": { "$oid": "504765028a905b04e900009a" }, "config": { "http": true, "https": true }, "id": "iso_distributor" } Request Body { "distributor_id": "iso_distributor", "distributor_type_id": "iso_distributor", "distributor_config": { "http": true, "https": true } } Response Body { "repo_id": "one", "_ns": "repo_distributors", "last_publish": null, "auto_publish": false, "scheduled_publishes": [], "distributor_type_id": "iso_distributor", "scratchpad": null, "_id": { "$oid": "5047656b8a905b04e90000b7" }, "config": { "http": true, "https": true }, "id": "iso_distributor" } |