Dear Andrea,

The configuration looks fine to me.

My guess is that the  bug is showing because "econe-describe-images"
doesn't find any image. This is a known issue and it is solved in the
latest OpenNebula version.

Did you upload and register an image with "econe-upload" and "econe-register"?

Best regards,

-Tino

--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org



On Thu, Oct 7, 2010 at 4:29 PM, Andrea Turli <andrea.tu...@eng.it> wrote:
> Hi Tino,
>
> here my config files:
>
> $cat $ONE_LOCATION/etc/econe.conf
>
> # OpenNebula administrator user
> USER=oneadmin
> PASSWORD=mypassword
>
> # OpenNebula sever contact information
> ONE_XMLRPC=http://localhost:2633/RPC2
>
> # Host and port where econe server will run
> SERVER=myserver.domain.it
> PORT=4567
>
> # SSL proxy that serves the API (set if is being used)
> #SSL_SERVER=fqdm.of.the.server
>
> # Configuration for the image repository
> DATABASE=/srv/cloud/one/var/ec2.db
> IMAGE_DIR=/srv/cloud/images
>
> # VM types allowed and its template file (inside templates directory)
> VM_TYPE=[NAME=m1.small, TEMPLATE=m1.small.erb]
>
> and the default template "m1.small.erb"
>
> $ cat /srv/cloud/one/etc/ec2query_templates/m1.small.erb
>
> NAME   = eco-vm
>
> CPU    = 0.2
> MEMORY = 256
>
> OS = [ kernel     = /vmlinuz,
>       initrd     = /initrd.img,
>       root       = sda1,
>       kernel_cmd = "ro xencons=tty console=tty1"]
>
> DISK = [ source   = <%= erb_vm_info[:img_path] %>,
>         clone    = no,
>         target   = sda1,
>         readonly = no]
>
>
> NIC=[NETWORK="Public EC2"]
>
>
> IMAGE_ID = <%= erb_vm_info[:img_id] %>
> INSTANCE_TYPE = <%= erb_vm_info[:instance_type ]%>
>
>
> thank you for any help,
> Andrea
>
>
> On 10/07/2010 02:53 PM, Tino Vazquez wrote:
>>
>> Hi Andrea,
>>
>> Have you got any images defined? Maybe it's failing because of that,
>> with a nasty error that should be more explicit (this can be
>> considered a bug actually).
>>
>> We are in the process of releasing the 2.0 version of OpenNebula,
>> which much better error support.
>>
>> Best,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco | dsa-research.org/tinova
>> Virtualization Technology Engineer / Researcher
>> OpenNebula Toolkit | opennebula.org
>>
>>
>>
>> On Wed, Oct 6, 2010 at 11:24 AM, Andrea Turli<andrea.tu...@eng.it>  wrote:
>>
>>>
>>> Dear all,
>>>
>>> I've a running OpenNebula 1.4 cluster configured with opennebula_express.
>>> I'm trying to follow you guide to configure OpenNebula to expose a public
>>> cloud interface, in particular EC2-Query API Cloud service
>>>
>>> After the configuration step, I'm trying to invoke the econe commands but
>>> I've some exceptions:
>>> unfortunately I'm not a ruby expert.
>>>
>>> Here the exception:
>>>
>>> $ ruby -dw /srv/cloud/one/bin/econe-describe-images -H
>>> /srv/cloud/one/bin/econe-describe-images:95: warning: ambiguous first
>>> argument; put parentheses or even spaces
>>> /srv/cloud/one/bin/econe-describe-images:104: warning: ambiguous first
>>> argument; put parentheses or even spaces
>>> /srv/cloud/one/bin/econe-describe-images:111: warning: ambiguous first
>>> argument; put parentheses or even spaces
>>> Exception `LoadError' at /usr/lib/ruby/1.8/rubygems.rb:1113 - no such
>>> file
>>> to load -- rubygems/defaults/operating_system
>>> Exception `NoMethodError' at /usr/lib/ruby/1.8/rational.rb:78 - undefined
>>> method `gcd' for Rational(1, 2):Rational
>>> Exception `LoadError' at /usr/lib/ruby/1.8/rubygems/config_file.rb:34 -
>>> no
>>> such file to load -- Win32API
>>> Exception `LoadError' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:31
>>> -
>>> no such file to load -- curb
>>> Exception `LoadError' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:31
>>> -
>>> no such file to load -- net/http/post/multipart
>>> Exception `LoadError' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:31
>>> -
>>> no such file to load -- AWS
>>> /var/lib/gems/1.8/gems/amazon-ec2-0.9.15/lib/AWS/EC2/products.rb:11:
>>> warning: method redefined; discarding old confirm_product_instance
>>> Exception `NoMethodError' at
>>> /var/lib/gems/1.8/gems/amazon-ec2-0.9.15/lib/AWS.rb:304 - undefined
>>> method
>>> `elements' for nil:NilClass
>>> econe-describe-images: undefined method `elements' for nil:NilClass
>>>
>>> and this is my gem env:
>>> $ gem env
>>> RubyGems Environment:
>>>   - RUBYGEMS VERSION: 1.3.5
>>>   - RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
>>>   - INSTALLATION DIRECTORY: /var/lib/gems/1.8
>>>   - RUBY EXECUTABLE: /usr/bin/ruby1.8
>>>   - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
>>>   - RUBYGEMS PLATFORMS:
>>>     - ruby
>>>     - x86_64-linux
>>>   - GEM PATHS:
>>>      - /var/lib/gems/1.8
>>>      - /srv/cloud/one/.gem/ruby/1.8
>>>   - GEM CONFIGURATION:
>>>      - :update_sources =>  true
>>>      - :verbose =>  true
>>>      - :benchmark =>  false
>>>      - :backtrace =>  false
>>>      - :bulk_threshold =>  1000
>>>   - REMOTE SOURCES:
>>>      - http://gems.rubyforge.org/
>>>
>>>
>>> I've seen on one-users mailing list a similar post but I can't understand
>>> if
>>> it was solved somehow
>>>
>>> http://lists.opennebula.org/pipermail/users-opennebula.org/2010-April/001968.html
>>>
>>>
>>> Thank you very much for any help,
>>> Andrea
>>>
>>> --
>>> Andrea Turli
>>> Ricercatore
>>> Direzione Ricerca e Innovazione
>>> andrea.tu...@eng.it
>>>
>>> Engineering Ingegneria Informatica spa
>>> Via Riccardo Morandi, 32 00148 Roma (RM)
>>> Tel. +39 06 8307 4710
>>> Fax +39 06 8307 4200
>>> www.eng.it
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users@lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>>
>>
>>
>
>
> --
> Andrea Turli
> Ricercatore
> Direzione Ricerca e Innovazione
> andrea.tu...@eng.it
>
> Engineering Ingegneria Informatica spa
> Via Riccardo Morandi, 32 00148 Roma (RM)
> Tel. +39 06 8307 4710
> Fax +39 06 8307 4200
> www.eng.it
>
>
>
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to