Bug 691415

Summary: pulp-client is schizophrenic about --id option
Product: [Retired] Pulp Reporter: dgao
Component: user-experienceAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: high Docs Contact:
Priority: urgent    
Version: unspecifiedCC: cperry
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 22   
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:07:05 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 dgao 2011-03-28 14:01:36 UTC
[root@pulp-nightly ~]# pulp-client consumer bind --repoid=foo
Usage: pulp-client <options> consumer bind <options>

pulp-client: error: Option --id is required; please see --help
[root@pulp-nightly ~]# pulp-client consumer bind --repoid=foo --id=fred
Usage: pulp-client <options> consumer bind <options>

pulp-client: error: no such option: --id
[root@pulp-nightly ~]# pulp-client consumer bind --help
Usage: pulp-client <options> consumer bind <options>

Options:
  -h, --help       show this help message and exit
  --repoid=REPOID  repo identifier (required)
[root@pulp-nightly ~]#

Comment 1 Pradeep Kilambi 2011-03-28 14:14:22 UTC
this looks like a regression due to

commit d4610da78c6d644d916f22e9e48a5cd6971a5585

Comment 2 Sayli Karmarkar 2011-03-28 16:28:30 UTC
Fixed.

$ sudo pulp-client consumer bind --repoid=foo --help
Usage: pulp-client <options> consumer bind <options>

Options:
  -h, --help       show this help message and exit
  --repoid=REPOID  repo identifier (required)

$ sudo pulp-client consumer bind --repoid=test3 
Successfully subscribed consumer [consumer4] to repo [test3]


$ sudo pulp-admin consumer bind --repoid=foo --help
Usage: pulp-admin <options> consumer bind <options>

Options:
  -h, --help       show this help message and exit
  --id=ID          consumer identifier eg: foo.example.com (required)
  --repoid=REPOID  repo identifier (required)

$ sudo pulp-admin consumer bind --repoid=test2 --id=consumer1 
Successfully subscribed consumer [consumer1] to repo [test2]


Fixed for "unbind", "history" and "delete" actions as well.

Comment 3 Jeff Ortel 2011-03-29 17:32:41 UTC
Build: 0.158

Comment 4 Preethi Thomas 2011-03-30 19:45:09 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.158-1.fc14.noarch


[root@preethi ~]# pulp-admin consumer bind --id=pulp-client --repoid=f14
Successfully subscribed consumer [pulp-client] to repo [f14]



[root@preethi ~]# pulp-admin consumer unbind --id=pulp-client --repoid=f14
Successfully unsubscribed consumer [pulp-client] from repo [f14]



[root@10 ~]# pulp-client consumer bind --repoid=f14
Successfully subscribed consumer [pulp-client] to repo [f14]

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

pulp-0.0.223-4.

Comment 6 Preethi Thomas 2011-08-16 12:20:52 UTC
Closing with Community Release 15

pulp-0.0.223-4.