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:
Move it to ON_QA, since this pull request is merged: https://github.com/openshift/origin-server/pull/654
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.