Bug 874405 - Should provide meaningful error message when adding existing alias to another app if two applications belong to two accounts separately
Summary: Should provide meaningful error message when adding existing alias to another...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Master
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Lili Nader
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 895864
TreeView+ depends on / blocked
 
Reported: 2012-11-08 05:59 UTC by Wei Sun
Modified: 2015-05-15 00:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 895864 (view as bug list)
Environment:
Last Closed: 2012-12-19 19:27:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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