Bug 858203 - Should have meaningful error message when adding cartridge for a scalable app while dns is outage
Summary: Should have meaningful error message when adding cartridge for a scalable app...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Ravi Sankar
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-18 10:12 UTC by Wei Sun
Modified: 2015-05-15 02:04 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Wei Sun 2012-09-18 10:12:58 UTC
Description of problem:

Try to add cartridge for a scalable app when dns is outage, user will get non-meaning full error like :exception object expected

Should give  meaningful error message like :Error communicating with DNS system.

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

devenv_2188
devenv-stage_239

How reproducible:
always

Steps to Reproduce:
1.Add cartrdige to a scalable app when dns is outage
2.
3.
  
Actual results:

[sunwei@dhcp-8-229 stage]$ rhc app cartridge add -a r9s -c mysql-5.1 -l jinzhang+6 -p redhat -d 
Contacting https://stg.openshift.redhat.com
Problem reported from server. Response code was 500.
DEBUG:
exception object expected/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.16.5/lib/stickshift-controller/app/models/application.rb:493:in `raise'
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.16.5/lib/stickshift-controller/app/models/application.rb:493:in `configure_dependencies'
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.16.5/lib/stickshift-controller/app/models/application.rb:1067:in `add_dependency'
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.16.5/lib/stickshift-controller/app/controllers/legacy_broker_controller.rb:335:in `embed_cartridge_post'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.13/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.13/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
Exit Code: 1
broker_c: ["namespace", "rhlogin", "ssh", "app_uuid", "debug", "alter", "cartridge", "cart_type", "action", "app_name", "api"]
api_c: ["placeholder"]
API version:    1.1.3
RESULT:
exception object expected

Expected results:
Give meaningful error message:Error communicating with DNS system.

Additional info:

Comment 1 Xiaoli Tian 2012-10-12 04:25:31 UTC
Move it to ON_QA, since this pull request is merged:
https://github.com/openshift/origin-server/pull/654

Comment 2 Wei Sun 2012-10-12 10:58:45 UTC
 verified on devenv_2320,
 client rhc-0.99.5.gem(build from fork_226)

 Step:
 1.Add cartrdige to a scalable app when dns is outage
  rhc cartridge add 

 Result:
 [sunwei@dhcp-8-229 ~]$ rhc cartridge add mysql-5.1  -a phpscaletest -p redhat
Adding 'mysql-5.1' to application 'phpscaletest'
Error communicating with DNS system.  If the problem persists please contact Red Hat support.


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