Bug 669220

Summary: pulp-admin consumergroup bind is broken (Bind object has no attribute options)
Product: [Retired] Pulp Reporter: Jay Dobies <jason.dobies>
Component: z_otherAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: cperry, skarmark
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 12:09:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 647488    

Description Jay Dobies 2011-01-12 21:59:14 UTC
$ pulp-admin consumergroup bind --id test-group --repoid example
Traceback (most recent call last):
  File "/usr/bin/pulp-admin", line 7, in <module>
    execfile(__file__)
  File "/home/jdob/code/pulp/bin/pulp-admin", line 147, in <module>
    admin.main()
  File "/home/jdob/code/pulp/src/pulp/client/cli/base.py", line 98, in main
    command.main(args[1:])
  File "/home/jdob/code/pulp/src/pulp/client/core/base.py", line 118, in main
    action.main(args[1:])
  File "/home/jdob/code/pulp/src/pulp/client/core/base.py", line 229, in main
    self.run()
  File "/home/jdob/code/pulp/src/pulp/client/core/consumergroup.py", line 141, in run
    self.cgconn.bind(groupid, self.options.repoid)
AttributeError: 'Bind' object has no attribute 'options'

Comment 1 Sayli Karmarkar 2011-01-13 21:42:48 UTC
Seems like a bug introduced after cli refactoring. Fixed.

$ sudo pulp-admin consumergroup bind --id=group1 --repoid=temp
Successfully subscribed consumer group [group1] to repo [temp]

Comment 2 Jay Dobies 2011-01-14 20:08:14 UTC
Fixed in build 0.124.

Comment 3 Preethi Thomas 2011-01-14 20:30:29 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.124-1.fc14.noarch


[root@preethi ~]# pulp-admin consumergroup bind --id=mygroup  --repoid=pulp-repo
Successfully subscribed consumer group [mygroup] to repo [pulp-repo]

Comment 4 Preethi Thomas 2011-08-16 12:09:43 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:22:05 UTC
Closing with Community Release 15

pulp-0.0.223-4.