Return-Path: Delivered-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Received: (qmail 8804 invoked from network); 15 Nov 2010 09:16:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Nov 2010 09:16:02 -0000 Received: (qmail 13729 invoked by uid 500); 15 Nov 2010 09:16:33 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 13696 invoked by uid 500); 15 Nov 2010 09:16:32 -0000 Mailing-List: contact deltacloud-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltacloud-dev@incubator.apache.org Delivered-To: mailing list deltacloud-dev@incubator.apache.org Received: (qmail 13688 invoked by uid 99); 15 Nov 2010 09:16:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Nov 2010 09:16:31 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=10.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mfojtik@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Nov 2010 09:16:24 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oAF9G2Lf013847 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 15 Nov 2010 04:16:02 -0500 Received: from redhat.com (dhcp-2-138.brq.redhat.com [10.34.2.138]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oAF9FwSq007252 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Nov 2010 04:16:01 -0500 Date: Mon, 15 Nov 2010 10:15:57 +0100 From: Michal Fojtik To: deltacloud-dev@incubator.apache.org, tcrawley@redhat.com Subject: Re: Initial EC2 driver rewrite (rev 1) Message-ID: <20101115091557.GB3244@redhat.com> References: <1289574130-11305-1-git-send-email-mfojtik@redhat.com> <4CDD6765.2000906@redhat.com> <4CDE100E.8040802@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <4CDE100E.8040802@redhat.com> X-Operating-System: Linux patashnik 2.6.35.6-48.fc14.i686.PAE User-Agent: Mutt/1.5.20 (2009-06-14) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Virus-Checked: Checked by ClamAV on apache.org On 12/11/10 23:11 -0500, Toby Crawley wrote: >On 11/12/2010 11:12 AM, marios@redhat.com 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 >> >>UnknownParameterThe parameter ImageType is not >>recognized93f59b50-d36d-4416-a90a-0d0dfd423f8c ##### >>" >> > >>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 bin/deltacloudd: 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: >>" >># >>" (+ 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 (https://github.com/appoxy/aws/blob/master/lib/awsbase/support.rb#L49). >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 >reason? > >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. > >Toby > > > > > > -- -------------------------------------------------------- Michal Fojtik, mfojtik@redhat.com Deltacloud API: http://deltacloud.org --------------------------------------------------------