[
https://issues.apache.org/jira/browse/DTACLOUD-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13562803#comment-13562803
]
Christian Karnath commented on DTACLOUD-423:
--------------------------------------------
/api/realms is working now, but requesting a single item (i.e.
/api/realms/eucalyptus) throws an exception:
E, [2013-01-25T17:00:57.421488 #24806] ERROR -- 500:
[Deltacloud::Exceptions::BackendError] Unhandled exception or status code
(undefined method `to_a' for "eucalyptus":String)
/var/lib/gems/1.9.1/gems/aws-2.6.0/lib/ec2/ec2.rb:1132:in
`describe_availability_zones'
/home/karnath/dev-deltacloud/deltacloud2/server/lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb:129:in
`block in realms'
/home/karnath/dev-deltacloud/deltacloud2/server/lib/deltacloud/drivers/exceptions.rb:220:in
`call'
/home/karnath/dev-deltacloud/deltacloud2/server/lib/deltacloud/drivers/exceptions.rb:220:in
`safely'
/home/karnath/dev-deltacloud/deltacloud2/server/lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb:126:in
`realms'
/home/karnath/dev-deltacloud/deltacloud2/server/lib/deltacloud/drivers/base_driver.rb:219:in
`realm'
/home/karnath/dev-deltacloud/deltacloud2/server/lib/deltacloud/helpers/deltacloud_helper.rb:85:in
`block in show'
/usr/lib/ruby/1.9.1/benchmark.rb:294:in `measure'
/home/karnath/dev-deltacloud/deltacloud2/server/lib/deltacloud/helpers/deltacloud_helper.rb:84:in
`show'
/home/karnath/dev-deltacloud/deltacloud2/server/lib/deltacloud/helpers/rabbit_helper.rb:29:in
`block (2 levels) in standard_show_operation'
/var/lib/gems/1.9.1/gems/sinatra-rabbit-1.1.3/lib/sinatra/rabbit/base.rb:396:in
`instance_eval'
/var/lib/gems/1.9.1/gems/sinatra-rabbit-1.1.3/lib/sinatra/rabbit/base.rb:396:in
`block in control'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:1265:in `call'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:1265:in `block in
compile!'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `[]'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `block (3
levels) in route!'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:851:in `route_eval'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `block (2
levels) in route!'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:872:in `block in
process_route'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:870:in `catch'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:870:in
`process_route'
> Requesting /api/realms against the eucalyptus driver fails
> ----------------------------------------------------------
>
> Key: DTACLOUD-423
> URL: https://issues.apache.org/jira/browse/DTACLOUD-423
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Reporter: Christian Karnath
> Assignee: Marios Andreou
> Attachments:
> 0001-Fix-for-DTACLOUD-423-override-realms-method-for-euca.patch
>
>
> Requesting /api/realms against the eucalyptus driver fails in the current
> development version. With deltacloud 1.0.2 everything is still fine.
> <?xml version='1.0' encoding='utf-8' ?>
> <error status='500' url='/api/realms'>
> <kind>backend_error</kind>
> <backend driver='eucalyptus' provider='ec2=x.x.x.x:8773'>
> <code>500</code>
> </backend>
> <message><![CDATA[Internal Server Error]]></message>
> <request>
> <param name='format'>xml</param>
> </request>
> </error>
> D, [2013-01-16T17:37:29.068507 #26548] DEBUG -- : New Aws::Ec2 using
> per_thread-connection mode
> D, [2013-01-16T17:37:29.069477 #26548] DEBUG -- : Opening new HTTP connection
> to x.x.x.x:8773
> W, [2013-01-16T17:37:29.496355 #26548] WARN -- : ##### Aws::Ec2 returned an
> error: 412 Precondition Failed
> <?xml version="1.0"?><Response><Errors><Error><Code>412 Precondition
> Failed</Code><Message>Default binding failed to build a valid message:
> Missing required object</Message></Error></Errors><RequestID>Default binding
> failed to build a valid message: Missing required
> object</RequestID></Response> #####
> W, [2013-01-16T17:37:29.496487 #26548] WARN -- : ##### Aws::Ec2 request:
> ..... ####
> E, [2013-01-16T17:37:29.503619 #26548] ERROR -- 500:
> [Deltacloud::Exceptions::BackendError] Internal Server Error
> 127.0.0.1 - - [16/Jan/2013 17:37:29] "GET /api/realms?format=xml HTTP/1.1"
> 500 336 0.4448
--
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