Bug 1029169

Summary: rhc domain configure should print out the available sizes that can be set to.
Product: OpenShift Online Reporter: Peter Ruan <pruan>
Component: ocAssignee: Jordan Liggitt <jliggitt>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.xCC: jliggitt, wjiang
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: 2014-01-24 03:29:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Peter Ruan 2013-11-11 20:07:36 UTC
Description of problem:
rhc domain configure should print out the available sizes that can be set to.

Version-Release number of selected component (if applicable):
devenv_4017

How reproducible:
always.

Steps to Reproduce:
1. rhc domain configure --allowed-gear-sizes --help
2.
3.

Actual results:
Usage: rhc domain-configure <namespace>

Change one or more configuration settings on the domain


Options
  --[no-]allowed-gear-sizes [SIZES] A comma-delimited list of the gear sizes that will be allowed in this domain.
  -n, --namespace NAME              Name of a domain

Global Options
  -l, --rhlogin LOGIN       OpenShift login
  -p, --password PASSWORD   OpenShift password
  --token TOKEN             An authorization token for accessing your account.
  --server NAME             An OpenShift server hostname (default: openshift.redhat.com)
  --timeout SECONDS         The timeout for operations

  See 'rhc help options' for a full list of global options.


Expected results:
should like the available sizes for user who have no ideas what are the available options.

Additional info:

Comment 1 Jordan Liggitt 2013-11-11 20:47:31 UTC
--help won't contact the server

We can add help telling the user how to find their allowed gear sizes (Run "rhc account")

Comment 2 Jordan Liggitt 2013-11-11 21:09:46 UTC
Will merge in https://github.com/openshift/rhc/pull/506

Comment 3 openshift-github-bot 2013-11-12 00:12:41 UTC
Commit pushed to master at https://github.com/openshift/rhc

https://github.com/openshift/rhc/commit/0af9f0c2c36e50de3a836e3cac6673e210bd0f71
Fix bug 1029169 - improve rhc domain configure gear size help

Comment 4 weiwei jiang 2013-11-12 06:59:24 UTC
Tried on devenv_4022, and result like following:

[root@ip-10-164-3-171 ~]# rhc domain-configure --allowed-gear-sizes --help
Usage: rhc domain-configure <namespace>

Change one or more configuration settings on the domain


Options
  --[no-]allowed-gear-sizes A comma-delimited list of gear sizes allowed in this domain. To see available
  [SIZES]                   sizes, run 'rhc account'.
  -n, --namespace NAME      Name of a domain

Global Options
  -l, --rhlogin LOGIN       OpenShift login
  -p, --password PASSWORD   OpenShift password
  --token TOKEN             An authorization token for accessing your account.
  --server NAME             An OpenShift server hostname (default: openshift.redhat.com)
  --timeout SECONDS         The timeout for operations

  See 'rhc help options' for a full list of global options.


so, verified this issue.