Bug 663762

Summary: [RFE] keyvalue cli options for pulp-client consumer
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: jason.dobies
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-09 17:09:07 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: 673012    

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