[one-users] econe tools
Maciej Kruk
makhanmail at gmail.com
Wed Jan 13 10:34:37 PST 2010
Hi Tino,
Yeah, you're right, that was one of the things I got wrong, but I already
fixed it and it works just fine.
For the people who have the same problem as I had, here is the list of
things I found a bit confusing, or did wrong:
- apart from gems and packages listed in the configuration guide, you should
install (on ubuntu) gem sqlite3-ruby and packages libcurl4-gnutls-dev
libopenssl-ruby1.8
- ec2 configuration guide says the configuration file is
$ONE_LOCATION/etc/oca.conf
while it should be $ONE_LOCATION/etc/econe.conf (/etc/one/econe.conf for
system wide installation)
- PASSWORD field in econe.conf file refers to the OpenNebula oneadmin
account, NOT the Linux oneadmin account
- you should modife
/usr/local/lib/ruby/gems/1.8/gems/amazon-ec2-0.7.9/lib/AWS/EC2.rb file
(change server address)
- you have to run econe-server with no EC2_URL variable set
- to connect to the server you have to set EC2_URL variable to
http://server:port (e.g. http://my.server:4567) or specify it after --url
option
I also tried occi api.
occi-storage and occi-network commands work just fine, but occi-compute
doesn't recognize --instance-type option.
Indeed, when I read occi-compute file, it doesn't mention --instance-type.
root at cloud01:~# occi-compute --url http://my.address.pl:4568 --username one
--password onepass create compute_file
Bad instance type
root at cloud01:~# occi-compute --url http://my.address.pl:4568 --username one
--password onepass --instance-type small create compute_file
/usr/bin/occi-compute: unrecognized option `--instance-type'
What should I do to make it work?
Best regards,
Maciej
2010/1/13 Tino Vazquez <tinova at fdi.ucm.es>
> Hi Maciej,
>
> Authentication in the EC2 Query framework is done using the
> credentials and the FQDN of the econe server. Can you send through
> your econe.conf file? Maybe it gives hints as why the server is not
> authenticating your using even if the credentials are well set.
>
> Best regards,
>
> -Tino
>
> --
> Constantino Vázquez, Grid Technology Engineer/Researcher:
> http://www.dsa-research.org/tinova
> DSA Research Group: http://dsa-research.org
> Globus GridWay Metascheduler: http://www.GridWay.org
> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>
>
>
> On Fri, Jan 8, 2010 at 7:36 PM, Maciej Kruk <makhanmail at gmail.com> wrote:
> > Thanks. I tried uploading the image file, but I get Invalid credentials
> > error:
> >
> > root at cloud01:~# export EC2_URL=http://cloud01.my.domain.pl:4567
> > root at cloud01:~# econe-upload /home/one/ubuntu.img
> > econe-upload: Invalid credentials
> >
> > I tried setting EC2_ACCESS_KEY and EC2_SECRET_KEY to user and password,
> and
> > I tried passing these arguments to econe-upload, but the result is the
> same.
> > I'm using the same credentials I use for onevm create.
> >
> > 2010/1/8 Javier Fontan <jfontan at gmail.com>
> >>
> >> Hello,
> >> The problem with econe-describe-instances seems to be caused because
> there
> >> are no instances defined. You should create some instances before
> listing
> >> them. I agree that the error message is not very descriptive.
> >> Bye
> >>
> >> On Fri, Jan 8, 2010 at 3:31 AM, makhanmail <makhanmail at gmail.com>
> wrote:
> >>>
> >>> Hello!
> >>>
> >>> I have a system wide installation of OpenNebula 1.4 on Ubuntu 9.04 with
> >>> one front-end and one node.
> >>>
> >>> OpenNebula works just fine, econe-server starts without errors, but I
> >>> can't perform any operations on it:
> >>>
> >>>
> >>> root at cloud01:/home/one# econe-server start
> >>> econe-server started
> >>>
> >>> root at cloud01:/home/one# econe-describe-instances
> >>> econe-describe-instances: undefined method `elements' for nil:NilClass
> >>>
> >>>
> >>> I think I configured everything correctly
> >>>
> >>>
> >>> root at cloud01:/home/one# cat /etc/one/econe.conf
> >>> # OpenNebula administrator user
> >>> USER=one
> >>> PASSWORD=mypass
> >>>
> >>> # OpenNebula sever contact information
> >>> ONE_XMLRPC=http://localhost:2633/RPC2
> >>>
> >>> # Host and port where econe server will run
> >>> SERVER=cloud01.my.domain.pl
> >>> 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=/var/lib/one/econe.db
> >>> IMAGE_DIR=/home/one/images/
> >>>
> >>> # VM types allowed and its template file (inside templates directory)
> >>> VM_TYPE=[NAME=m1.small, TEMPLATE=m1.small.erb]
> >>>
> >>> root at cloud01:/home/one# gem list
> >>>
> >>> *** LOCAL GEMS ***
> >>>
> >>> actionmailer (2.3.5)
> >>> actionpack (2.3.5)
> >>> activerecord (2.3.5)
> >>> activeresource (2.3.5)
> >>> activesupport (2.3.5)
> >>> amazon-ec2 (0.7.9)
> >>> curb (0.6.2.1)
> >>> daemons (1.0.10)
> >>> dispatcher (0.0.1)
> >>> eventmachine (0.12.10)
> >>> fastthread (1.0.7)
> >>> mkrf (0.2.3)
> >>> multipart-post (1.0)
> >>> mysql (2.8.1)
> >>> nokogiri (1.4.1)
> >>> passenger (2.2.7)
> >>> rack (1.0.1)
> >>> rails (2.3.5)
> >>> rake (0.8.7)
> >>> rubygems-update (1.3.5)
> >>> sequel (3.8.0)
> >>> sinatra (0.9.4)
> >>> sqlite3-ruby (1.2.5)
> >>> thin (1.2.5)
> >>> xml-simple (1.0.12)
> >>> xmlparser (0.6.81)
> >>>
> >>>
> >>> EC2_URL is set to http://cloud01.my.domain.pl
> >>>
> >>>
> >>> econe log file is empty.
> >>>
> >>> Do you know what may be the issue here?
> >>> _______________________________________________
> >>> 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
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100113/b72dffd8/attachment-0003.htm>
More information about the Users
mailing list