Bug 852259

Summary: Outdated parameter "-n" is shown when creating application without existing namespace
Product: OKD Reporter: joycezhang <jinzhang>
Component: ocAssignee: John (J5) Palmieri <johnp>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.xCC: cgole, jkeck, johnp
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: 2012-11-06 18:48:25 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 joycezhang 2012-08-28 03:36:26 UTC
Description of problem:
The message is need to be updated as it's still displayed with outdated parameter "n" when creating app without existing namespace.

rhc app create -a ruby18 -t ruby-1.8 -p a
Problem reported from server. Response code was 403.
Re-run with -d for more information.

MESSAGES:
Please create a domain with 'rhc domain create -n <namespace>' before creating applications.


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

How reproducible:
always


Steps to Reproduce:
1. Try to create an app without domain created.
2.
3.
  
Actual results:
The error message is displayed with old command paramter "-n".


Expected results:
The error message should be updated without parameter "-n" like below:

MESSAGES:
Please create a domain with 'rhc domain create <namespace>' before creating applications.

Additional info:
It works fine when using "rhc domain show" without domain created as below:

# rhc domain show
Password: ******


User Info
=========
Namespace: No namespaces found. You can use 'rhc domain create <namespace>' to create a namespace for your applications.

Login: jinzhang+5

Comment 1 John (J5) Palmieri 2012-10-04 17:24:47 UTC
in fork

Comment 2 Chandrika Gole 2012-10-04 19:41:34 UTC
verified this on AMI: fork_ami_US2597_US2599_US2813_US2817_US2872_US2816_US2814_207 (ami-a50eb3cc)

[root@ip-10-245-205-215 ~]# rhc app  create -a a1 -t php-5.3
To connect to localhost enter your OpenShift login (email or Red Hat login id): cgole+10
Password: 

No domains configured for this user.  You may create one using 'rhc domain create'.