Bug 826472 - It will return exception when use command "rhc-create-domain" after delete the .openshift directory.
Summary: It will return exception when use command "rhc-create-domain" after delete th...
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: John (J5) Palmieri
QA Contact: libra bugs
URL:
Whiteboard:
: 826471 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-30 09:47 UTC by yquan
Modified: 2015-05-15 01:56 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-25 18:26:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description yquan 2012-05-30 09:47:37 UTC
Description of problem:
It will return exception when use command "rhc-create-domain" after delete the .openshift directory.

Version-Release number of selected component (if applicable):
rhc-0.93.15-1.el6_2.noarch

How reproducible:
always.

Steps to Reproduce:
1.use command "rhc setup" and input your information. 
2.remove the directory ~/.openshift.
3.use old command "rhc-create-domain -n domaintest0003"   #the user must don't have any domain.
  
Actual results:
It will return exception.


[root@localhost home]# rhc-create-domain -n domaintest0003 -l yquan
Password: *********

OpenShift key found at /root/.ssh/id_rsa.  Reusing...
/usr/lib/ruby/gems/1.8/gems/rhc-0.93.15/lib/rhc-common.rb:1027:in `initialize': No such file or directory - /root/.openshift/express.conf (Errno::ENOENT)
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.93.15/lib/rhc-common.rb:1027:in `open'
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.93.15/lib/rhc-common.rb:1027:in `add_rhlogin_config'
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.93.15/bin/rhc-create-domain:147
	from /usr/local/bin/rhc-create-domain:19:in `load'
	from /usr/local/bin/rhc-create-domain:19



Expected results:
It should create domain successfully.
And should also have "rhc setup" wizard steps.

Additional info:

Comment 1 John (J5) Palmieri 2012-05-30 20:33:19 UTC
Unfortunately the wizard removed the config generation code but I am punting this so it doesn't hold up the release since rhc-create-domain is deprecated for rhc create-domain.  Will fix early next sprint.

Comment 2 John (J5) Palmieri 2012-05-30 20:33:54 UTC
rhc domain create that is

Comment 3 Fabiano Franz 2012-05-30 20:38:39 UTC
*** Bug 826471 has been marked as a duplicate of this bug. ***

Comment 4 Jianwei Hou 2012-06-20 12:33:44 UTC
fixed version rhc-0.94.7-1.el6_3.noarch


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