Bug 826472

Summary: It will return exception when use command "rhc-create-domain" after delete the .openshift directory.
Product: OKD Reporter: yquan <yquan>
Component: ocAssignee: John (J5) Palmieri <johnp>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: ccoleman, jhou, jkeck, mmcgrath, mpatel, xtian
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-25 18:26:31 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 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