Bug 1183069

Summary: Running a Node bind on a repo that is already bound to the consumer results in the repo showing up twice in the bindings
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: nodesAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED UPSTREAM QA Contact: pulp-qe-list
Severity: high Docs Contact:
Priority: medium    
Version: 2.5CC: cperry, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-28 23:19:45 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 Preethi Thomas 2015-01-16 15:37:48 UTC
Description of problem:
If you  run node bind on a repo that is already bound to the consumer, the repo will show up twice in the bindings

Version-Release number of selected component (if applicable):
[root@rhsm-jenkins ~]# rpm -qa pulp-server
pulp-server-2.5.2-0.3.beta.el6.noarch
[root@rhsm-jenkins ~]#

How reproducible:


Steps to Reproduce:
1.Create / Sync a repo on a node server and bind the repo to a consumer
2.Setup that consumer as the node child
3.Enable and publish that repo from step1 on the node
4. Use node bind to bind that repo to the node child
5. Run consumer list
6. Run node list

Actual results:
[root@rhsm-jenkins ~]# pulp-admin consumer list
+----------------------------------------------------------------------+
                               Consumers
+----------------------------------------------------------------------+

Id:            january
Display Name:  january
Description:   None
Bindings:      
  Confirmed:   rhel6, rhel6, drpm, drpm
  Unconfirmed: 
Notes:         


[root@rhsm-jenkins ~]# pulp-admin node list
+----------------------------------------------------------------------+
                              Child Nodes
+----------------------------------------------------------------------+

Id:               january
Display Name:     january
Description:      None
Bindings:         
  Additive: rhel6, rhel6, drpm, drpm
Update Strategy:  additive
Notes:            


[root@rhsm-jenkins ~]# 


Expected results:


Additional info:

Comment 1 Brian Bouterse 2015-02-28 23:19:45 UTC
Moved to https://pulp.plan.io/issues/666