Bug 623589

Summary: consumergroup: creation lists a description [ ] as empty, w/ no option to specify a description
Product: [Retired] Pulp Reporter: wes hayutin <whayutin>
Component: z_otherAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: cperry, pthomas
Target Milestone: ---Keywords: QA-Closed
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-20 16:11:25 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:

Description wes hayutin 2010-08-12 08:55:28 UTC
[root@localhost tmp]# pulp -u test01 -p dog8code consumergroup create --id=consumergroup-test01
Creating empty consumer group
 Successfully created Consumer group [ consumergroup-test01 ] with description [  ]
[root@localhost tmp]# 


** notice; description is empty

from the consumergroup --help


Options:
  -h, --help            show this help message and exit
  --consumerid=CONSUMERID
                        Consumer Identifier
  --id=GROUPID          Consumer Group Identifier
  -u USERNAME, --username=USERNAME
                        <REQUIRED> username for access to Pulp.  Default user
                        admin is included with base install.
  -p PASSWORD, --password=PASSWORD
                        <REQUIRED> password for access to Pulp.

Comment 1 wes hayutin 2010-08-12 09:02:40 UTC
commit bf585b29f96375917499d850d93859e00088c4fd

Comment 2 Sayli Karmarkar 2010-08-12 16:37:55 UTC
I can see correct options: 

$ sudo pulp consumergroup create --help
Usage: pulp -u <username> -p <password> consumergroup create [OPTIONS]


Options:
  -h, --help            show this help message and exit
  --id=ID               consumer group id
  --description=DESCRIPTION
                        description of consumer group
  --consumerids=CONSUMERIDS
                        consumer id list to be included in this group
  -u USERNAME, --username=USERNAME
                        <REQUIRED> username for access to Pulp.  Default user
                        admin is included with base install.
  -p PASSWORD, --password=PASSWORD
                        <REQUIRED> password for access to Pulp.

I don't think help in the bug report was consumergroup create help, because it should not have --consumerid=CONSUMERID as an option.

Comment 3 wes hayutin 2010-08-12 17:39:07 UTC
indeed


[root@localhost pulp]# pulp -u test01 -p dog8code consumergroup create --help
Usage: pulp -u <username> -p <password> consumergroup create [OPTIONS]


Options:
  -h, --help            show this help message and exit
  --id=ID               consumer group id
  --description=DESCRIPTION
                        description of consumer group
  --consumerids=CONSUMERIDS
                        consumer id list to be included in this group
  -u USERNAME, --username=USERNAME
                        <REQUIRED> username for access to Pulp.  Default user
                        admin is included with base install.
  -p PASSWORD, --password=PASSWORD
                        <REQUIRED> password for access to Pulp.
[root@localhost pulp]#

Comment 4 Preethi Thomas 2010-10-20 16:11:25 UTC
Closed after review.