deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DTACLOUD-294) OpenNebula driver: GET /api/hardware_profiles, GET /api/images throw 500 errors
Date Tue, 07 Aug 2012 22:42:09 GMT
Ronelle Landy created DTACLOUD-294:
--------------------------------------

             Summary: OpenNebula driver: GET /api/hardware_profiles, GET /api/images throw
500 errors
                 Key: DTACLOUD-294
                 URL: https://issues.apache.org/jira/browse/DTACLOUD-294
             Project: DeltaCloud
          Issue Type: Bug
          Components: Native/Frontend
         Environment: Fedora 17
Ruby 1.9.3
Deltacloud version: f6cc95ebeba21fe8e182452b14639bf4dbbd753c
            Reporter: Ronelle Landy


Started a deltacloud server pointing at OpenNebula:

[root@nec-em6 server]# export OCCI_URL=​http://occi.c12g.com; ./bin/deltacloudd -i opennebula
-r <servername> -p 3003

The did a GET /api/hardware_profiles (possibly some user error here as this is a first attempt
at accessing OpenNebula)

[rlandy@localhost ~]$ curl -X GET --user "un:pw" "nec-em6.rhts.eng.bos.redhat.com:3003/api/hardware_profiles?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<error status='500' url='/api/hardware_profiles?format=xml'>
  <kind>backend_error</kind>
  <backend driver='opennebula' provider='default'>
    <code>500</code>
  </backend>
  <message><![CDATA[bad URI(is not URI?): ​http://occi.c12g.com/instance_type?verbose=yes]]></message>
  <backtrace><![CDATA[/usr/share/ruby/uri/common.rb:176:in `split'
/usr/share/ruby/uri/common.rb:211:in `parse'
/usr/share/ruby/uri/common.rb:747:in `parse'
/home/dcloud/workspace/deltacloud/server/lib/deltacloud/drivers/opennebula/occi_client.rb:279:in
`get'
/home/dcloud/workspace/deltacloud/server/lib/deltacloud/drivers/opennebula/occi_client.rb:72:in
`get_instance_types'
/home/dcloud/workspace/deltacloud/server/lib/deltacloud/drivers/opennebula/opennebula_driver.rb:37:in
`hardware_profiles'
/home/dcloud/workspace/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:61:in
`block in filter_all'
/usr/share/ruby/benchmark.rb:280:in `measure'
/home/dcloud/workspace/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:60:in
`filter_all'
/home/dcloud/workspace/deltacloud/server/lib/deltacloud/helpers/rabbit_helper.rb:22:in `block
(2 levels) in standard_index_operation'
/usr/local/share/gems/gems/sinatra-rabbit-1.0.10/lib/sinatra/rabbit/base.rb:385:in `instance_eval'
/usr/local/share/gems/gems/sinatra-rabbit-1.0.10/lib/sinatra/rabbit/base.rb:385:in `block
in control'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `call'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `block in compile!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (3 levels) in route!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in `route_eval'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (2 levels) in route!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in `block in process_route'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `catch'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `process_route'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:in `block in route!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `each'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `route!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `block in call!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `block in invoke'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:766:in `forward'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:835:in `route_missing'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:796:in `route!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:792:in `route!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:792:in `route!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:792:in `route!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `block in call!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `block in invoke'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in
`call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/nulllogger.rb:9:in `call'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/showexceptions.rb:21:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in
`call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/nulllogger.rb:9:in `call'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
/home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_accept.rb:155:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in
`call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/nulllogger.rb:9:in `call'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/showexceptions.rb:21:in `call'
/usr/local/share/gems/gems/rack-accept-0.4.5/lib/rack/accept/context.rb:22:in `call'
/home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_driver_select.rb:45:in `call'
/home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_matrix_params.rb:104:in `call'
/home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_etag.rb:41:in `call'
/home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_date.rb:31:in `call'
/home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_logger.rb:71:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in
`call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
/usr/local/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/nulllogger.rb:9:in `call'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `block in call'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:1416:in `synchronize'
/usr/local/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in `block in call'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in `each'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in `call'
/home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_driver_select.rb:45:in `call'
/home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_matrix_params.rb:104:in `call'
/usr/local/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:134:in `call'
/usr/local/share/gems/gems/thin-1.4.1/lib/thin/connection.rb:80:in `block in pre_process'
/usr/local/share/gems/gems/thin-1.4.1/lib/thin/connection.rb:78:in `catch'
/usr/local/share/gems/gems/thin-1.4.1/lib/thin/connection.rb:78:in `pre_process'
/usr/local/share/gems/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in `call'
/usr/local/share/gems/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in `block in spawn_threadpool']]></backtrace>
  <request>
    <param name='format'>xml</param>
  </request>
</error>
[rlandy@localhost ~]$ 

Getting images throws a similar error:

curl -X GET --user "un:pw" "nec-em6.rhts.eng.bos.redhat.com:3003/api/images?format=xml"|more
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0<?xml version='1.0'
encoding='utf-8' ?>
<error status='500' url='/api/images?format=xml'>
  <kind>backend_error</kind>
  <backend driver='opennebula' provider='default'>
    <code>500</code>
  </backend>
  <message><![CDATA[bad URI(is not URI?): ​http://occi.c12g.com/storage]]></messa
ge>
  <backtrace><![CDATA[/usr/share/ruby/uri/common.rb:176:in `split'
/usr/share/ruby/uri/common.rb:211:in `parse'
/usr/share/ruby/uri/common.rb:747:in `parse'
/home/dcloud/workspace/deltacloud/server/lib/deltacloud/drivers/opennebula/occi_
client.rb:279:in `get'
/home/dcloud/workspace/deltacloud/server/lib/deltacloud/drivers/opennebula/occi_
client.rb:200:in `get_images'
/home/dcloud/workspace/deltacloud/server/lib/deltacloud/drivers/opennebula/openn
ebula_driver.rb:87:in `images'
/home/dcloud/workspace/deltacloud/server/lib/deltacloud/helpers/deltacloud_helpe
r.rb:61:in `block in filter_all'
/usr/share/ruby/benchmark.rb:280:in `measure'
/home/dcloud/workspace/deltacloud/server/lib/deltacloud/helpers/deltacloud_helpe
r.rb:60:in `filter_all'
/home/dcloud/workspace/deltacloud/server/lib/deltacloud/collections/images.rb:34
100 35499  100 35499    0     0  66089      0 --:--:-- --:--:-- --:--:-- 86162







--
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

       

Mime
View raw message