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