[one-users] EC2 Query Service Configuration ruby error

tozaz at free.fr tozaz at free.fr
Mon Aug 31 11:39:05 PDT 2009


Quoting Javier Fontan <jfontan at fdi.ucm.es>:

> Hello,
>
> I have been looking into it and the problem is caused by amazon-ec2
> gem. It recently changed to 0.5.x and now the API is not compatible
> with 0.4.x, that is, the version used to develop EC2 Query Service. I
> have changed the code in svn trunk to be compatible with the new
> version but I still had no time to test it deeply. If you try the new
> code please provide information on any problem you may find.
>
> Bye

Hello,

Thanks for updating the code.

Now econe tools works with no error, but I can't start the econe-server, It
complains about the CONF_LOCATION.

/usr/lib/one/ruby/econe/eco.rb:30: uninitialized constant CONF_LOCATION
(NameError)
/usr/lib/one/ruby/econe/eco.rb:30: uninitialized constant CONF_LOCATION
(NameError)

Cheers

> On Mon, Aug 31, 2009 at 3:59 PM, <tozaz at free.fr> wrote:
> > Quoting Javier Fontan <jfontan at fdi.ucm.es>:
> >
> >> Hello,
> >>
> >> Seems that the required packages for the cloud interface are not
> >> installed. You have the instructions to install them in "requirements
> >> & Installation" section of this page
> >> http://opennebula.org/doku.php?id=documentation:rel1.4:ec2qcg
> >>
> >> Bye
> >
> > I re-check all the required package, below some informations :
> >
> > root at frontend01:/home/xavier# gem install amazon-ec2
> > Successfully installed amazon-ec2-0.5.5
> > 1 gem installed
> > Installing ri documentation for amazon-ec2-0.5.5...
> > Installing RDoc documentation for amazon-ec2-0.5.5...
> > root at frontend01:/home/xavier# gem install thin
> > Building native extensions.  This could take a while...
> > Successfully installed thin-1.2.2
> > 1 gem installed
> > Installing ri documentation for thin-1.2.2...
> > Installing RDoc documentation for thin-1.2.2...
> > root at frontend01:/home/xavier# gem install sinatra
> > Successfully installed sinatra-0.9.4
> > 1 gem installed
> > Installing ri documentation for sinatra-0.9.4...
> > Installing RDoc documentation for sinatra-0.9.4...
> > root at frontend01:/home/xavier# gem install uuid
> > Successfully installed uuid-2.0.2
> > 1 gem installed
> > Installing ri documentation for uuid-2.0.2...
> > Installing RDoc documentation for uuid-2.0.2...
> > root at frontend01:/home/xavier# gem install sequel
> > Successfully installed sequel-3.3.0
> > 1 gem installed
> > Installing ri documentation for sequel-3.3.0...
> > Installing RDoc documentation for sequel-3.3.0...
> > root at frontend01:/home/xavier# gem install curb
> > Building native extensions.  This could take a while...
> > Successfully installed curb-0.5.1.0
> > 1 gem installed
> > Installing ri documentation for curb-0.5.1.0...
> > Installing RDoc documentation for curb-0.5.1.0...
> > root at frontend01:/home/xavier# dpkg -l |grep sqlite3
> > ii  libdbd-sqlite3-ruby                        0.2.2-1
> >  Ruby/DBI driver for SQLite3
> > ii  libdbd-sqlite3-ruby1.8                     0.2.2-1
> >  Ruby/DBI SQLite driver for Ruby 1.8
> > ii  libsqlite3-0                               3.6.10-1ubuntu0.2
> >  SQLite 3 shared library
> > ii  libsqlite3-dev                             3.6.10-1ubuntu0.2
> >  SQLite 3 development files
> > ii  libsqlite3-ruby                            1.2.4-2
> >  SQLite3 interface for Ruby
> > ii  libsqlite3-ruby1.8                         1.2.4-2
> >  SQLite3 interface for Ruby 1.8
> > ii  sqlite3                                    3.6.10-1ubuntu0.2
> >  A command line interface for SQLite 3
> > root at frontend01:/home/xavier#
> >
> > I don't have the ruby-sqlite3 package under ubuntu9.04 so I installed
> packages
> > above.
> >
> > Could you tell me if it's normally ok ?
> > Still not working, I've got the same error.
> >
> > Regards,
> > Xavier
> >
> >> On Sat, Aug 29, 2009 at 4:29 PM, <tozaz at free.fr> wrote:
> >> > Hi,
> >> >
> >> > I've got setting up a opennebula private cloud with ubuntu 9.04 as both
> >> frontend
> >> > and one node and kvm as virtualization. I can create, stop, restart,
> hold
> >> etc
> >> > ...
> >> >
> >> > I tried to work with EC2 Query Service Configuration
> >> > http://www.opennebula.org/doku.php?id=documentation:rel1.4:ec2qcg
> >> >
> >> > I am facing an issue when I tried to start econe-server and ec2 tools
> >> >
> >> > root at frontend01:/home/xavier# cat /var/log/one/econe.log
> >> > /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require':
> >> no
> >> > such file to load -- EC2 (LoadError)
> >> >        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
> >> >        from /usr/lib/one/ruby/econe/eco.rb:19
> >> > /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require':
> >> no
> >> > such file to load -- EC2 (LoadError)
> >> >        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
> >> >        from /usr/lib/one/ruby/econe/eco.rb:19
> >> >
> >> > root at frontend01:/home/xavier# econe-upload
> >> > /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require':
> >> no
> >> > such file to load -- EC2 (LoadError)
> >> >        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
> >> >        from /usr/lib/one/ruby/econe/EC2QueryClient.rb:11
> >> >        from /usr/bin/econe-upload:56:in `require'
> >> >        from /usr/bin/econe-upload:56
> >> >
> >> > root at frontend01:/home/xavier# cat /usr/bin/econe-server
> >> > #!/bin/bash
> >> >
> >> > eval `grep ^IMAGE_DIR= /etc/one/econe.conf `
> >> > export TMPDIR=$IMAGE_DIR/tmp
> >> > mkdir -p $TMPDIR
> >> >
> >> > nohup ruby /usr/lib/one/ruby/econe/eco.rb >> /var/log/one/econe.log &
> >> >
> >> > root at frontend01:/home/xavier# cat /etc/one/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=localhost
> >> > PORT=4567
> >> >
> >> > # Configuration for the image repository
> >> > DATABASE=/srv/cloud/one/var/econe.db
> >> > IMAGE_DIR=/root/images
> >> >
> >> > # VM types allowed and its template file (inside templates directory)
> >> > VM_TYPE=[NAME=m1.small, TEMPLATE=m1.small.erb]
> >> >
> >> > I've installed all the requirements but still have ruby error.
> >> >
> >> > Hope you can help me one this issue.
> >> >
> >> > Regards,
> >> > Xavier
> >> > _______________________________________________
> >> > 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
> >>
> >
> >
> > _______________________________________________
> > 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