Bug 859348 - Exception is shown if using "rhc app --help" while the libra server is not available in conf file
Summary: Exception is shown if using "rhc app --help" while the libra server is not av...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: John (J5) Palmieri
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-21 09:19 UTC by joycezhang
Modified: 2015-05-15 02:05 UTC (History)
2 users (show)

Fixed In Version: fork_ami_US2597_US2599_US2813_US2817_US2872_US2816_US2814_207
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-06 18:49:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description joycezhang 2012-09-21 09:19:56 UTC
Description of problem:
Unfriendly expeption is shown as below if using "rhc app --help" or "rhc app create --help" while the libra server is not avaiable in express.conf.
# rhc app --help
Obtaining list of cartridges (please excuse the delay)...
/usr/share/ruby/net/http.rb:762:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
    from /usr/share/ruby/net/http.rb:762:in `open'
    from /usr/share/ruby/net/http.rb:762:in `block in connect'
    from /usr/share/ruby/timeout.rb:68:in `timeout'
    from /usr/share/ruby/timeout.rb:99:in `timeout'
    from /usr/share/ruby/net/http.rb:762:in `connect'
    from /usr/share/ruby/net/http.rb:755:in `do_start'
    from /usr/share/ruby/net/http.rb:744:in `start'
    from /usr/local/share/gems/gems/rhc-0.99.2/lib/rhc-common.rb:376:in `http_post'
    from /usr/local/share/gems/gems/rhc-0.99.2/lib/rhc-common.rb:120:in `get_cartridges_list'
    from /usr/local/share/gems/gems/rhc-0.99.2/lib/rhc-common.rb:144:in `get_cartridge_listing'
    from /usr/local/share/gems/gems/rhc-0.99.2/bin/rhc-app:16:in `p_usage'
    from /usr/local/share/gems/gems/rhc-0.99.2/bin/rhc-app:500:in `<top (required)>'
    from /usr/local/bin/rhc-app:23:in `load'
    from /usr/local/bin/rhc-app:23:in `<main>'

Version-Release number of selected component (if applicable):
rhc-0.99.2.gem 

How reproducible:
always

Steps to Reproduce:
1. Keep an expired instance in ~/.openshift/express.conf like "ec2-184-72-194-136.compute-1.amazonaws.com"
2. Run "rhc app --help" or "rhc app create --help"
  
Actual results:
Exception is shown.

Expected results:
Help contents are shown correctly without error.

Additional info:
Other rhc commands can work fine.

Comment 1 John (J5) Palmieri 2012-10-04 14:53:05 UTC
fixed in fork

Comment 2 Chandrika Gole 2012-10-04 21:46:53 UTC
verified in fork


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