[one-users] EC2 testing

Javier Fontan jfontan at fdi.ucm.es
Wed Sep 9 11:59:44 PDT 2009


Hello,

Sorry for the delay in answers, we are in specially busy weeks right
now. I have to look more deeply into this problem as ec2 libraries we
are using changed quite a bit since we developed that code. As soon as
I find the problem and hopefully patch the code I'll let you know.

Bye

On Wed, Sep 9, 2009 at 8:26 PM, sebastien goasguen<sebgoa at clemson.edu> wrote:
> Hi,
>
> I did not get an answer to this but I found out that the EC2 gem hard
> codes valid EC2 hosts, see from EC2.rb:
>
> if ENV['EC2_URL']
>    EC2_URL = ENV['EC2_URL']
>    VALID_HOSTS = ['https://ec2.amazonaws.com',
> 'https://us-east-1.ec2.amazonaws.com',
> 'https://eu-west-1.ec2.amazonaws.com']
>    raise ArgumentError, "Invalid EC2_URL environment variable :
> #{EC2_URL}" unless VALID_HOSTS.include?(EC2_URL)
>    DEFAULT_HOST = URI.parse(EC2_URL).host
>  else
>    # default US host
>    DEFAULT_HOST = 'ec2.amazonaws.com'
>  end
>
>
> I hard coded my host in the there and I got the econe server to start
> without errors.
>
> But now I get erros trying upload an image:
>
> /home/oneadmin/one/lib/ruby/econe/EC2QueryClient.rb:152:in
> `http_post': server returned nothing (no headers, no data)
> (Curl::Err::GotNothingError)
>        from /home/oneadmin/one/lib/ruby/econe/EC2QueryClient.rb:152:in
> `upload_image'
>        from /home/oneadmin/one/bin/econe-upload:107
>
> Is this working for someone ?
>
> Cheers,
>
> -sebastien
>
>
> On Sun, Sep 6, 2009 at 10:33 PM, sebastien goasguen<runseb at gmail.com> wrote:
>> Hi,
>>
>> I am trying to get the cloud interface running using ec2 query api setup.
>>
>> I checked out the latest openenbual code from svn trunk.
>> I upgrade to ruby 1.8.6 (because 1.8.5 gave me errors).
>>
>> I now can run the econe server, but I get some errors see below:
>>
>> [oneadmin at lxbrl2302 var]$ econe-describe-images -H
>> Owner  ImageId                               Location
>> ------------------------------------------------------------------------------
>> /home/oneadmin/one/bin/econe-describe-images:121: undefined method
>> `each' for nil:NilClass (NoMethodError)
>>
>> [oneadmin at lxbrl2302 var]$ econe-upload /images/cernvm120.img
>> /home/oneadmin/one/lib/ruby/econe/EC2QueryClient.rb:152:in
>> `http_post': server returned nothing (no headers, no data)
>> (Curl::Err::GotNothingError)
>>        from /home/oneadmin/one/lib/ruby/econe/EC2QueryClient.rb:152:in
>> `upload_image'
>>        from /home/oneadmin/one/bin/econe-upload:107
>>
>> [oneadmin at lxbrl2302 var]$ tail -n 20 econe.log
>>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> `gem_original_require'
>>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> `require'
>>        from /usr/lib/ruby/gems/1.8/gems/amazon-ec2-0.5.5/lib/AWS.rb:292
>>        from /usr/lib/ruby/gems/1.8/gems/amazon-ec2-0.5.5/lib/AWS.rb:292:in
>> `each'
>>        from /usr/lib/ruby/gems/1.8/gems/amazon-ec2-0.5.5/lib/AWS.rb:292
>>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
>> `gem_original_require'
>>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
>> `require'
>>        from /home/oneadmin/one/lib/ruby/econe/eco.rb:19
>> /usr/lib/ruby/gems/1.8/gems/amazon-ec2-0.5.5/lib/AWS/EC2.rb:12:
>> Invalid EC2_URL environment variable : http://lxbrl2302.cern.ch:4567
>> (ArgumentError)
>>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> `gem_original_require'
>>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> `require'
>>        from /usr/lib/ruby/gems/1.8/gems/amazon-ec2-0.5.5/lib/AWS.rb:292
>>        from /usr/lib/ruby/gems/1.8/gems/amazon-ec2-0.5.5/lib/AWS.rb:292:in
>> `each'
>>        from /usr/lib/ruby/gems/1.8/gems/amazon-ec2-0.5.5/lib/AWS.rb:292
>>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
>> `gem_original_require'
>>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
>> `require'
>>        from /home/oneadmin/one/lib/ruby/econe/eco.rb:19
>> 128.142.240.27 - - [06/Sep/2009 21:05:27] "POST / HTTP/1.1" 200 138 0.0758
>> 128.142.240.27 - - [06/Sep/2009 22:12:00] "POST / HTTP/1.1" 401 12 0.0571
>> 128.142.240.27 - - [06/Sep/2009 22:14:11] "POST / HTTP/1.1" 200 138 0.0674
>>
>> Any thoughts ? Especially on the EC2 env variable argument error ?
>>
>> -sebastien
>>
>> --
>> ---
>> Sebastien Goasguen
>> School of Computing
>> Clemson University
>> 864-656-6753
>> http://runseb.googlepages.com
>>
>
>
>
> --
> ---
> Sebastien Goasguen
> School of Computing
> Clemson University
> 864-553-4753
> http://runseb.googlepages.com
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org



More information about the Users mailing list