[one-users] EC2 Query Service Configuration ruby error

tozaz at free.fr tozaz at free.fr
Sat Aug 29 07:29:13 PDT 2009


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



More information about the Users mailing list