Hide Forgot
Description of problem: Check rhc domain-configure -h,could get "--[no-]allowed-gear-sizes [SIZES] A comma-delimited list of the gear sizes that will be allowed in this domain." But try to unset one gear size (such as small )when an account have two gear sizes(small and medium),will get "Too many arguments passed in: small no-allowed-gear-sizes --",and could not unset gear size successfully.Only allow to unset all gear sizes,but for website,could unset one gear size . Version-Release number of selected component (if applicable): fork_ami_origin_ui_72_membership_844 How reproducible: Always Steps to Reproduce: 1.Create a domain with a silver account 2.Make sure have medium and small gear size in the domain 3.Try to unset small gear size for the domain via CLI 4.Try to unset all gear size for the domain via CLI Actual results: 2.[wsun@dhcp-8-229 dev]$ rhc domain-configure wsunfork8441 --allowed-gear-sizes small,medium Updating domain configuration ... done Domain wsunfork8441 configuration --------------------------------- Allowed Gear Sizes: small, medium 3.[wsun@dhcp-8-229 dev]$ rhc domain-configure wsunfork8441 --no-allowed-gear-sizes small Too many arguments passed in: small Usage: rhc domain-configure <namespace> Pass '--help' to see the full list of options 4.[wsun@dhcp-8-229 dev]$ rhc domain-configure wsunfork8441 --no-allowed-gear-sizes Updating domain configuration ... done Domain wsunfork8441 configuration --------------------------------- Allowed Gear Sizes: <none> Expected results: Should allow to unset one gear size for the domain via CLI Additional info:
rhc version is rhc 1.15.0 build from fork_ami_origin_ui_72_membership_844
This is difficult for us to fix because the upstream command library we use is what is providing this behavior to us. The supported calls are: --no-allowed-gear-sizes sets the allowed gear sizes to [] --allowed-gear-sizes= sets the allowed gear sizes to [] --allowed-gear-sizes=small,medium sets the allowed gear sizes to [small,medium] All other options are unsupported.
Tried with rhc-1.17.3, and the help info is so confusing. According to the help info of domain configure,[SIZES] arguments of --no-allowed-gear-sizes option is optional, means you can pass a argument to --no-allowed-gear-sizes, and actually it is not supported. $ rhc domain configure -h 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. And I hope the help info will be more clear, thx
Separated --allowed-gear-sizes and --no-allowed-gear-sizes options Will merge in https://github.com/openshift/rhc/pull/509
Commit pushed to master at https://github.com/openshift/rhc https://github.com/openshift/rhc/commit/4562271c9aa1e2e8865c97057b5d992dd40e3c5b Bug 1010939: Improve no allowed gear sizes
Tried on devenv_4027, and result as follow: [root@ip-10-185-177-123 ~]# rhc configure-domain --help Usage: rhc domain-configure <namespace> Change one or more configuration settings on the domain Options --no-allowed-gear-sizes Do not allow any gear sizes in this domain. --allowed-gear-sizes [SIZES] A comma-delimited list of gear sizes allowed in this domain. To see available 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. Thx.