Bug 807268 - Get "NoMethodError" while running rhc-domain-info without domain created
Get "NoMethodError" while running rhc-domain-info without domain created
Product: OpenShift Origin
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: John (J5) Palmieri
libra bugs
: Triaged
: 807514 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2012-03-27 07:58 EDT by jizhao
Modified: 2015-05-14 21:49 EDT (History)
6 users (show)

See Also:
Fixed In Version: rhc-0.89.9
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-04-13 14:33:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description jizhao 2012-03-27 07:58:47 EDT
Description of problem:
Destroy domain and run "rhc-domain-info". Get NoMethodError.

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

How reproducible:

Steps to Reproduce:
1.Destroy existing domains if any
$ rhc domain destroy -n <domain_name>
2.Run rhc-domain-info
$ rhc-domain-info -ai -d
Actual results:
/usr/lib/ruby/gems/1.8/gems/rhc-0.89.4/bin/rhc-domain-info:84: undefined method `[]' for nil:NilClass (NoMethodError)
	from /usr/bin/rhc-domain-info:19:in `load'
	from /usr/bin/rhc-domain-info:19

Expected results:
Should get "user doesn't have registered namespace"

Additional info:
Comment 1 bzhao 2012-03-28 07:20:59 EDT
Version-Release number of selected component

It'll output the following message while running rhc-domain-info without created domain ..

Output message as follows:

Application Info
No applications found.  You can use rhc-create-app to create new applications.

It has still problems, we should get "user doesn't have registered namespace" or the others for expected results
Comment 2 Rob Millner 2012-03-28 13:40:36 EDT
*** Bug 807514 has been marked as a duplicate of this bug. ***
Comment 3 John (J5) Palmieri 2012-03-29 16:29:12 EDT
This is now fixed for 'rhc-domain-info --info' similarly to how we fixed 'rhc domain info'

git commit 6241168dcd196853d6d8465863fdbffbaa56bbc4
Comment 4 jizhao 2012-03-30 02:17:35 EDT
Verified on devenv_stage_154.

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