Bug 1038751 - Pulp Distributors should not be created using the distributor_typ_id as the distributor_id
Summary: Pulp Distributors should not be created using the distributor_typ_id as the d...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: Master
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: pulp-bugs
QA Contact: pulp-qe-list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-05 18:16 UTC by Barnaby Court
Modified: 2015-02-28 22:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-28 22:00:12 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 387 0 None None None Never

Description Barnaby Court 2013-12-05 18:16:16 UTC
Description of problem:

Distributors that are currently created by the command line & the unit tests are  using the distributor_type_id as the distributor_id.  Katello specifies a different value for the distributor_id.  This has led to a number of bugs including 1038309 that were not found until Katello had a release in hand.  

Our client & server code should be reworked to use the id generated by mongo automatically instead of creating one.  Have the server (mongo) generate a unique distributor id automatically if one is not specified on the API, or use the object id that mongo is already creating.  The client code should be updated to not specify the distributor ID.  

We could also consider removing the distributor_id entirely and just use the id from mongo.

Comment 1 Brian Bouterse 2015-02-28 22:00:12 UTC
Moved to https://pulp.plan.io/issues/387


Note You need to log in before you can comment on or make changes to this bug.