Bug 874405

Summary: Should provide meaningful error message when adding existing alias to another app if two applications belong to two accounts separately
Product: OKD Reporter: Wei Sun <wsun>
Component: MasterAssignee: Lili Nader <lnader>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: bmeng, mfisher
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 895864 (view as bug list) Environment:
Last Closed: 2012-12-19 19:27:14 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:
Bug Depends On:    
Bug Blocks: 895864    

Description Wei Sun 2012-11-08 05:59:32 UTC
Description of problem:

Add an alias to app  which belongs to one account,and try to add the same alias to another app which belongs to another account,can not add successfully,but have not meaningful error message,will prompt like:Node execution failure (invalid exit code from node).  If the problem persists please contact Red Hat support.
Should have meaningful prompt for user.

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

How reproducible:
Always

Steps to Reproduce:
1.Create an app(app1) using one account
rhc app create -a app1 -t php-5.3 -l wsun
2.Create another app(app2) using another account 
rhc app create -a app2 -t php-5.3 -l wsun+1
3.Add alias for app1
rhc alias add app1 test.com
4.Add the same alias for app2
rhc alias add app2 test.com

Actual results:
3.[sunwei@dhcp-8-229 dev]$ rhc alias add rack8test test.com -l wsun+1
Password: ******
RESULT:
Application event 'add-alias' successful

4.[sunwei@dhcp-8-229 dev]$ rhc alias add rack9test test.com -l wsun
Password: ******
Node execution failure (invalid exit code from node).  If the problem persists please contact Red Hat support.

Expected results:
Show meaningful prompt:
 The alias is already in use.

Additional info:

If add the same alias to two applications which belongs to one account,will give meaningfull prompt.
[sunwei@dhcp-8-229 dev]$ rhc alias add rack8scaletest test.com -l wsun+1
Password: ******
Alias already in use.

Comment 1 Lili Nader 2012-11-29 18:16:38 UTC
fixed as part of error message fixes

Comment 2 Meng Bo 2012-11-30 10:24:35 UTC
Checked on devenv_2534, the error message has been updated.

[bmeng@localhost openshift_testdir]$ rhc alias add app2 test.com -p123 -lbmeng

RESULT:
Application event 'add-alias' successful

[bmeng@localhost openshift_testdir]$ rhc alias add app1 test.com -p123 -lbmeng+1
FATAL ERROR: test.com Already exists.