You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Ronelle Landy (Commented) (JIRA)" <ji...@apache.org> on 2012/03/09 20:38:58 UTC
[jira] [Commented] (DTACLOUD-151) Unhandled exception or status
code (No route to host - connect(2)) - invalid rhevm server/provider
supplied
[ https://issues.apache.org/jira/browse/DTACLOUD-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226373#comment-13226373 ]
Ronelle Landy commented on DTACLOUD-151:
----------------------------------------
Testing error handling - deltacloud commit: (61ac9fef965dd7d1af7c213357ea7d66630d88d7 not-for-merge branch 'master' of https://git-wip-us.apache.org/repos/asf/deltacloud)
Valid rhevm server ... incorrect provider:
API_PROVIDER="https://10.16.120.230:8443/api;ef590778-9a1e-42de-9c7e-" ./bin/deltacloudd -i rhevm -r localhost -p 4008
curl -X GET --user 'username:password' "http://localhost:4008/api/instances?format=xml"
<error status='404' url='/api/instances?format=xml'>
<message>Resource not found</message>
</error>
Invalid rhevm server:
API_PROVIDER="https://10.16.120.235:8443/api;123456" ./bin/deltacloudd -i rhevm -r localhost -p 4008
curl -X GET --user 'username:password' "http://localhost:4008/api/instances?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<error status='500' url='/api/instances?format=xml'>
<kind>backend_error</kind>
<backend driver='rhevm' provider='https://10.16.120.235:8443/api;123456'>
<code>500</code>
</backend>
<message><![CDATA[No route to host - connect(2)]]></message>
<backtrace>
<![CDATA[/usr/lib/ruby/gems/1.8/gems/rbovirt-0.0.6/lib/rbovirt.rb:259:in `handle_fault'
/usr/lib/ruby/gems/1.8/gems/rbovirt-0.0.6/lib/rbovirt.rb:171:in `datacenter'
/usr/lib/ruby/gems/1.8/gems/rbovirt-0.0.6/lib/rbovirt.rb:159:in `current_datacenter'
/usr/lib/ruby/gems/1.8/gems/rbovirt-0.0.6/lib/rbovirt.rb:63:in `vms'
/home/rlandy/workspace/deltacloud/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb:134:in `instances'
/home/rlandy/workspace/deltacloud/server/lib/deltacloud/base_driver/exceptions.rb:173:in `call'
/home/rlandy/workspace/deltacloud/server/lib/deltacloud/base_driver/exceptions.rb:173:in `safely'
/home/rlandy/workspace/deltacloud/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb:130:in `instances'
/home/rlandy/workspace/deltacloud/server/lib/deltacloud/helpers/application_helper.rb:81:in `send'
/home/rlandy/workspace/deltacloud/server/lib/deltacloud/helpers/application_helper.rb:81:in `filter_all'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/home/rlandy/workspace/deltacloud/server/lib/deltacloud/helpers/application_helper.rb:80:in `filter_all'
/home/rlandy/workspace/deltacloud/server/lib/deltacloud/server.rb:464
/home/rlandy/workspace/deltacloud/server/lib/sinatra/rabbit.rb:125:in `instance_eval'
/home/rlandy/workspace/deltacloud/server/lib/sinatra/rabbit.rb:125:in `GET /api/instances'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in `call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in `compile!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `[]'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:788:in `route_eval'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:821:in `process_route'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `catch'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `process_route'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:771:in `route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `each'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:886:in `dispatch!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `catch'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:692:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/commonlogger.rb:20:in `call'
/home/rlandy/workspace/deltacloud/server/lib/sinatra/rack_date.rb:31:in `call'
/home/rlandy/workspace/deltacloud/server/lib/sinatra/rack_accept.rb:149:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/json_csrf.rb:17:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/nulllogger.rb:9:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/head.rb:9:in `call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/showexceptions.rb:21:in `call'
/home/rlandy/workspace/deltacloud/server/lib/sinatra/rack_driver_select.rb:45:in `call'
/home/rlandy/workspace/deltacloud/server/lib/sinatra/rack_matrix_params.rb:106:in `call'
/home/rlandy/workspace/deltacloud/server/lib/sinatra/rack_runtime.rb:36:in `call'
/home/rlandy/workspace/deltacloud/server/lib/sinatra/rack_etag.rb:41:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-accept-0.4.4/lib/rack/accept/context.rb:22:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/json_csrf.rb:17:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/logger.rb:15:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/commonlogger.rb:20:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/head.rb:9:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/methodoverride.rb:24:in `call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in `call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1403:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in `call'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:80:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:78:in `catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:78:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in `call'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in `spawn_threadpool'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `initialize'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `new'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `spawn_threadpool'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1049:in `defer'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:50:in `process'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:38:in `receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `send'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
./bin/deltacloudd:239]]>
</backtrace>
<request>
<param name='format'>xml</param>
</request>
</error>
Don't see a 502 'Bad Gateway' message.
> Unhandled exception or status code (No route to host - connect(2)) - invalid rhevm server/provider supplied
> -----------------------------------------------------------------------------------------------------------
>
> Key: DTACLOUD-151
> URL: https://issues.apache.org/jira/browse/DTACLOUD-151
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: rhevm 3.0
> deltacloud-core-vsphere-0.5.0-5.el6.noarch
> deltacloud-core-ec2-0.5.0-5.el6.noarch
> deltacloud-core-rhevm-0.5.0-5.el6.noarch
> deltacloud-core-0.5.0-5.el6.noarch
> rubygem-deltacloud-client-0.5.0-2.el6.noarch
> Reporter: Ronelle Landy
> Assignee: Michal Fojtik
>
> Below are errors returned from Deltacloud when a user supplies either an invalid provider or rhevm server (note: unhandled exception error):
> Invalid rhevm provider:
> API_PROVIDER="https://10.16.120.230:8443/api;123456" deltacloudd -i rhevm -r hp-dl360g5-02.rhts.eng.bos.redhat.com -p 3008
> curl -X GET --user 'username:password'
> "http://hp-dl360g5-02.rhts.eng.bos.redhat.com:3008/api/instances?format=xml"
> <error status='404' url='/api/instances?format=xml'>
> <message>Resource not found</message>
> </error>
> >> Incorrect server:
> API_PROVIDER="https://10.16.120.235:8443/api;123456" deltacloudd -i rhevm -r hp-dl360g5-02.rhts.eng.bos.redhat.com -p 3008
> curl -X GET --user 'username:password'
> "http://hp-dl360g5-02.rhts.eng.bos.redhat.com:3008/api/instances?format=xml"
> <error status='500' url='/api/instances?format=xml'>
> <kind>backend_error</kind>
> <backend driver='rhevm' provider='https://10.16.120.235:8443/api;123456'>
> <code>500</code>
> </backend>
> <message><![CDATA[Unhandled exception or status code (No route to host -
> connect(2))]]></message>
> <backtrace>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira