incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <>
Subject Re: Initial EC2 driver rewrite (rev 1)
Date Mon, 15 Nov 2010 09:15:57 GMT
On 12/11/10 23:11 -0500, Toby Crawley wrote:
>On 11/12/2010 11:12 AM, wrote:
>>Hi Michal, I just did some really quick and dirty testing for this - I was mostly
interested to see if they solved the regions issue with
>>the new gem... but I didn't get that far.
>>The patches apply fine but when I run I am getting lots of errors...
>>Get /images gives:
>>##### Aws::Ec2 returned an error: 400 Bad Request
>><?xml version="1.0" encoding="UTF-8"?>
parameter ImageType is not
>>From the client, images returns 88 images. If I pass an empty string 
>as the owner_id (to override the default owner_id of 'amazon'), the 
>request times out before completing. I'll try it from the ui.

Yes, this is a Thin bug/feature. You can adjust timeout value in

101: argv_opts << ['--timeout', '360' ]

Value is set in seconds. Also please keep in mind, that in case you want to
fetch *all* amazon images, you will get ~ 5900 images, which is quite long
list ;-)

I want also open new discussion here at this point. I want ask you, what
should we return in /api/images call in EC2 driver.
There are some possibilities:

1) Images owned by current user (+ preserve owner_id param)
2) Images owned by amazon
3) All available images

   -- Michal

>>Get /buckets gives:
>>#<ArgumentError: wrong number of arguments (2 for 1)>
>>" (+ huge stack trace)
>This looks like a bug in the aws gem. They have pulled a few things 
>out of ActiveSupport that they need, but only load them if 
>ActiveSupport is loaded. Unfortunately, the constantize method relies 
>on a version of const_get with an arity of two, which may be defined 
>elsewhere in ActiveSupport (

>The const_get in both ruby 1.8.6 & 1.8.7 as an arity of one - I did 
>not check 1.9. Michal: what version of ruby are you running? Is it 
>possible that ActiveSupport is getting loaded for you for some 
>I've tested the snapshot and storage volume support, and it is 
>working. I've got the actions support for storage volumes mostly done 
>- just a little more testing to do. I'll try to finish that up over 
>the weekend.

Michal Fojtik,
Deltacloud API:

View raw message