Bug 663762 - [RFE] keyvalue cli options for pulp-client consumer
Summary: [RFE] keyvalue cli options for pulp-client consumer
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: 673012
TreeView+ depends on / blocked
 
Reported: 2010-12-16 19:12 UTC by Preethi Thomas
Modified: 2013-09-09 16:32 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-09 17:09:07 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2010-12-16 19:12:03 UTC
Description of problem:

As of now the keyvalue options are available only in pulp-admin consumer

Since pulp-client is used for consumer create it may be good to have the keyvalue options available for pulp-client consumer as well.



[root@preethi ~]# pulp-admin consumer 
Usage: pulp-admin <options> consumer <action> <options>
Supported Actions:
	list           list all known consumers 
	info           list of accessible consumer info
	delete         delete the consumer      
	bind           bind the consumer to listed repos
	unbind         unbind the consumer from repos
	add_keyvalue   add key-value information to consumer
	delete_keyvalue delete key-value information from consumer
	update_keyvalue update key-value information of a consumer
	get_keyvalues  get key-value attributes for given consumer
	history        view the consumer history

pulp-admin: error: no action given: please see --help
[root@preethi ~]# pulp-client consumer 
Usage: pulp-client <options> consumer <action> <options>
Supported Actions:
	create         create a consumer        
	delete         delete the consumer      
	bind           bind the consumer to listed repos
	unbind         unbind the consumer from repos
	history        view the consumer history
	update         update consumer profile

Comment 1 Jay Dobies 2012-07-11 18:55:11 UTC
Fixed in v2.

pulp-consumer register --help
Command: register
Description: registers this consumer to the Pulp server

Available Arguments:

  --id           - (required) uniquely identifies the consumer; only
                   alphanumeric, -, and _ allowed
  --display-name - user-readable display name for the consumer
  --description  - user-readable description for the consumer
  --note         - adds/updates/deletes key-value pairs to programmatically
                   identify the repository; pairs must be separated by an equal
                   sign (e.g. key=value); multiple notes can be added by
                   specifying this option multiple times; notes are deleted by
                   specifying "" as the value

Comment 2 Preethi Thomas 2012-11-06 17:48:10 UTC
verified
[root@pulp-master ~]# rpm -q pulp-rpm-consumer-client
pulp-rpm-consumer-client-0.0.335-1.fc17.noarch
[root@pulp-master ~]# 

[root@pulp-master ~]# pulp-consumer register
Command: register
Description: registers this consumer to the Pulp server

Available Arguments:

  --consumer-id  - (required) uniquely identifies the consumer; only
                   alphanumeric, -, and _ allowed
  --display-name - user-readable display name for the consumer
  --description  - user-readable description for the consumer
  --note         - adds/updates/deletes key-value pairs to programmatically
                   identify the repository; pairs must be separated by an equal
                   sign (e.g. key=value); multiple notes can be added by
                   specifying this option multiple times; notes are deleted by
                   specifying "" as the value

The following options are required but were not specified:
  --consumer-id
[root@pulp-master ~]#

Comment 3 Preethi Thomas 2013-01-09 17:09:07 UTC
Pulp v2.0 released


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