Bug 789179

Summary: Confusing error message for user trying to create 2 domains/namespaces
Product: OKD Reporter: Nam Duong <nduong>
Component: ocAssignee: Dan McPherson <dmcphers>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: dmcphers, jofernan, rmillner, xtian
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: devenv_1601 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-17 02:06:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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'