Bug 789179 - Confusing error message for user trying to create 2 domains/namespaces
Summary: Confusing error message for user trying to create 2 domains/namespaces
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Dan McPherson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-10 02:34 UTC by Nam Duong
Modified: 2015-05-15 01:46 UTC (History)
4 users (show)

Fixed In Version: devenv_1601
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-17 02:06:53 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Nam Duong 2012-02-10 02:34:03 UTC
Description of problem:
We're reporting the wrong error message as a result of one user trying to create a second domain.  

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

How reproducible:
Always

Steps to Reproduce:
1.  run rhc-create-domain -n namespaceX -l RHLoginX
2.  Once successful, run rhc-create-domain -n Differentnamespace -l RHLoginX
3.  See error message
4.  BTW:  Same thing happens if the user tries to run the same command twice like 
  rhc-create-domain -n namespaceX -l RHLoginX

Actual results:
2 confusing error messages:
1)  Problem reported from server. Response code was 400.
2)  A user with login 'nduong+mac' already exists

Expected results:
I expect to see an error more related to the fact that we only allow one namespace per User today.  e.g, A user with login 'nduong+mac' already created a namespace "namespaceX"


NOTE:  The reason people are doing this is because they don't know they shouldn't create 2 domains with one user.  Our error message doesn't tell them so.  Seeing this a lot lately (meaning 4 this week).

Comment 1 Xiaoli Tian 2012-02-13 07:33:57 UTC
Verify this on devenv_1606

The reminding message is like following now :

User with login 'xtian+t3' already has a domain with namespace 'domx0'


Note You need to log in before you can comment on or make changes to this bug.