Bug 1029166

Summary: misleading error message when trying to run 'rhc domain configure'
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:34 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:
Embargoed:

Description Peter Ruan 2013-11-11 20:04:44 UTC
Description of problem:
  If a user does not have access to medium gears but tries to change the allowed gear sizes to it, the error message currently is 

Updating domain configuration ... The following gear sizes are invalid: medium

rhc should instead inform the user that he doesn't have access to the node profile.

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

devenv_4017
How reproducible:
always.

Steps to Reproduce:
1. with a user default access of only small gears
2. rhc domain configure --allowed-gear-sizes=medium
3. 

Actual results:
The following gear sizes are invalid: medium

Expected results:
should tell user that he doesn't have access to medium gears.

Additional info:

Comment 1 Jordan Liggitt 2013-11-11 21:54:26 UTC
Will merge improved message in https://github.com/openshift/rhc/pull/507

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

https://github.com/openshift/rhc/commit/1f8ed01394b9a970bf231530b1bbff7945285aad
Fix bug 1029166: Improve error message on domain configure

Comment 3 openshift-github-bot 2013-11-12 03:54:27 UTC
Commits pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/bc2fbf8ca2250113de90e825d7fb8967e4d9a35d
Fix bug 1029166: Improve error message on domain configure

https://github.com/openshift/origin-server/commit/31a78f1454ad7ed2bf2761420c1ffd8dcd5f3275
Merge pull request #4164 from liggitt/bug_1029166_improve_domain_configure_error

Fix bug 1029166: Improve error message on domain configure

Comment 4 weiwei jiang 2013-11-12 08:34:23 UTC
Tried on devenv_4022 with RHC build from it, and result is:

[root@ip-10-164-55-223 ~]# rhc domain configure --allowed-gear-sizes=medium
Updating domain configuration ... The following gear sizes are not available to this account: medium

So, verified this issue.