deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michal Fojtik (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DTACLOUD-500) CIMI: GET /cimi/addresses, using application/xml errors out
Date Wed, 27 Feb 2013 12:31:13 GMT

    [ https://issues.apache.org/jira/browse/DTACLOUD-500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13588266#comment-13588266
] 

Michal Fojtik commented on DTACLOUD-500:
----------------------------------------

Indeed, this is most likely a Rabbit bug when we have two collections named 'AddressesCollection'
registred in Rabbit.
I'll try to do some namespacing magic to fix this overlap.
                
> CIMI: GET /cimi/addresses, using application/xml errors out
> -----------------------------------------------------------
>
>                 Key: DTACLOUD-500
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-500
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: CIMI/Frontend
>         Environment: Deltacloud commit version: d536f252b3bc2dab9bdb38a2f6ce590fdc2fdeee
> Ruby 1.9.3
> Mock driver
>            Reporter: Ronelle Landy
>            Assignee: Michal Fojtik
>
> wrt running deltacloud/tests/cimi/cep_test.rb, lutter wrote on review:
>  .... I had to disable addresses, as that
> blows up on my machine.
> Strangely, GET /cimi/addresses?format=json works, but
> GET /cimi/addresses?format=xml gives me the stacktrace. (included below)
> *************************
> E, [2013-02-25T17:52:37.030401 #10190] ERROR -- 500: [RuntimeError] ERROR: Missing template:
addresses/index.xml.haml
> /homes/lutter/code/deltacloud/git/server/lib/sinatra/rack_accept.rb:37:in `rescue in
render'
> /homes/lutter/code/deltacloud/git/server/lib/sinatra/rack_accept.rb:32:in `render'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-1.3.4/lib/sinatra/base.rb:607:in
`haml'
> /homes/lutter/code/deltacloud/git/server/lib/deltacloud/helpers/deltacloud_helper.rb:75:in
`block (2 levels) in filter_all'
> /homes/lutter/code/deltacloud/git/server/lib/sinatra/rack_accept.rb:103:in `call'
> /homes/lutter/code/deltacloud/git/server/lib/sinatra/rack_accept.rb:103:in `respond_to'
> /homes/lutter/code/deltacloud/git/server/lib/deltacloud/helpers/deltacloud_helper.rb:73:in
`filter_all'
> /homes/lutter/code/deltacloud/git/server/lib/deltacloud/helpers/rabbit_helper.rb:22:in
`block (2 levels) in standard_index_operation'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-rabbit-1.1.4/lib/sinatra/rabbit/base.rb:396:in
`instance_eval'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-rabbit-1.1.4/lib/sinatra/rabbit/base.rb:396:in
`block in control'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-1.3.4/lib/sinatra/base.rb:1293:in
`call'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-1.3.4/lib/sinatra/base.rb:1293:in
`block in compile!'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-1.3.4/lib/sinatra/base.rb:860:in
`[]'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-1.3.4/lib/sinatra/base.rb:860:in
`block (3 levels) in route!'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-1.3.4/lib/sinatra/base.rb:876:in
`route_eval'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-1.3.4/lib/sinatra/base.rb:860:in
`block (2 levels) in route!'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-1.3.4/lib/sinatra/base.rb:897:in
`block in process_route'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-1.3.4/lib/sinatra/base.rb:895:in
`catch'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-1.3.4/lib/sinatra/base.rb:895:in
`process_route'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-1.3.4/lib/sinatra/base.rb:859:in
`block in route!'
> /homes/lutter/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sinatra-1.3.4/lib/sinatra/base.rb:858:in
`each'
> 127.0.0.1 - - [25/Feb/2013 17:52:37] "GET /cimi/addresses?format=xml HTTP/1.1" 500 1313
0.0119
> **************************
> I get a different error using curl: 
>  curl -X GET -H "Accept:Application/xml" --user "un:pw" "http://localhost:3001/cimi/addresses"
> <error status='500' url='/cimi/addresses'>
>   <kind>backend_error</kind>
>   <message><![CDATA[undefined method `size' for #<CIMI::Model::AddressCollection:0x0000000246b2f0>]]></message>
>   <backend driver='mock'>
>     <code>500</code>
>   </backend>
>   <backtrace>[
>   Abbreviated trace
>      pass fulltrace=1 as query param to see everything
>     $app = /home/dcloud/workspace/deltacloud/server/lib
>   ]
>   $app/cimi/collections/addresses.rb:30:in `block (3 levels) in &lt;class:Addresses&gt;'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_driver_select.rb:45:in `call'
>   $app/sinatra/rack_matrix_params.rb:104:in `call'
>   $app/sinatra/rack_etag.rb:41:in `call'
>   $app/sinatra/rack_date.rb:31:in `call'
>   $app/sinatra/rack_logger.rb:87:in `call'
>   $app/sinatra/rack_accept.rb:164:in `call'
>   ...
>   $app/sinatra/rack_matrix_params.rb:104:in `call'
>   ...</backtrace>
> </error>
> Stack trace:
> ***********************
> E, [2013-02-26T08:38:22.916985 #16663] ERROR -- 500: [NoMethodError] undefined method
`size' for #<CIMI::Model::AddressCollection:0x0000000246b2f0>
> /home/dcloud/workspace/deltacloud/server/lib/cimi/collections/addresses.rb:30:in `block
(3 levels) in <class:Addresses>'
> /usr/local/share/gems/gems/sinatra-rabbit-1.1.4/lib/sinatra/rabbit/base.rb:396:in `instance_eval'
> /usr/local/share/gems/gems/sinatra-rabbit-1.1.4/lib/sinatra/rabbit/base.rb:396:in `block
in control'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:1293:in `call'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:1293:in `block in compile!'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:860:in `[]'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:860:in `block (3 levels)
in route!'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:876:in `route_eval'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:860:in `block (2 levels)
in route!'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:897:in `block in process_route'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:895:in `catch'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:895:in `process_route'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:859:in `block in route!'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:858:in `each'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:858:in `route!'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:963:in `block in dispatch!'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:946:in `block in invoke'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:946:in `catch'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:946:in `invoke'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:960:in `dispatch!'
> /usr/local/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:794:in `block in call!'
> ***********************

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message