Hello Tino,<br><br>Thanks for fast and accurate responses.<br>It works now.<br><br>Regards,<br>Maciej<br><br><br><br><div class="gmail_quote">2010/1/14 Tino Vazquez <span dir="ltr"><<a href="mailto:tinova@fdi.ucm.es" target="_blank">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>
Thanks a lot for your valuable feedback, I've fixed the documentation<br>
to reflect your comments.<br>
<br>
The "--instance-type" for the occi-compute is a bug in the<br>
documentation, the intended way to pass the instance type is through<br>
the OCCI XML representation:<br>
<br>
---<br>
    <COMPUTE><br>
        <ID>123AF</ID><br>
        <NAME>Web Server</NAME><br>
        <INSTANCE_TYPE>small</INSTANCE_TYPE><br>
        <STATE>running</STATE><br>
        <DISKS><br>
....<br>
---<br>
<div><br>
Regards,<br>
<br>
-Tino<br>
<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>
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>On Wed, Jan 13, 2010 at 7:34 PM, Maciej Kruk <<a href="mailto:makhanmail@gmail.com" target="_blank">makhanmail@gmail.com</a>> wrote:<br>
> Hi Tino,<br>
><br>
> Yeah, you're right, that was one of the things I got wrong, but I already<br>
> 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<br>
> things I found a bit confusing, or did wrong:<br>
><br>
> - apart from gems and packages listed in the configuration guide, you should<br>
> install (on ubuntu) gem sqlite3-ruby and packages libcurl4-gnutls-dev<br>
> libopenssl-ruby1.8<br>
><br>
> - ec2 configuration guide says the configuration file is<br>
> $ONE_LOCATION/etc/oca.conf while it should be $ONE_LOCATION/etc/econe.conf<br>
> (/etc/one/econe.conf for system wide installation)<br>
><br>
> - PASSWORD field in econe.conf file refers to the OpenNebula oneadmin<br>
> account, NOT the Linux oneadmin account<br>
><br>
> - you should modife<br>
> /usr/local/lib/ruby/gems/1.8/gems/amazon-ec2-0.7.9/lib/AWS/EC2.rb file<br>
> (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<br>
> http://server:port (e.g. <a href="http://my.server:4567" target="_blank">http://my.server:4567</a>) or specify it after --url<br>
> option<br>
><br>
><br>
> I also tried occi api.<br>
> occi-storage and occi-network commands work just fine, but occi-compute<br>
> 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" target="_blank">http://my.address.pl:4568</a> --username one<br>
> --password onepass create compute_file<br>
> Bad instance type<br>
> root@cloud01:~# occi-compute --url <a href="http://my.address.pl:4568" target="_blank">http://my.address.pl:4568</a> --username one<br>
> --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>
> 2010/1/13 Tino Vazquez <<a href="mailto:tinova@fdi.ucm.es" target="_blank">tinova@fdi.ucm.es</a>><br>
>><br>
>> 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>
>><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>
>> 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>
>> On Fri, Jan 8, 2010 at 7:36 PM, Maciej Kruk <<a href="mailto:makhanmail@gmail.com" target="_blank">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,<br>
>> > and<br>
>> > I tried passing these arguments to econe-upload, but the result is the<br>
>> > 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" target="_blank">jfontan@gmail.com</a>><br>
>> >><br>
>> >> Hello,<br>
>> >> The problem with econe-describe-instances seems to be caused because<br>
>> >> there<br>
>> >> are no instances defined. You should create some instances before<br>
>> >> 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" target="_blank">makhanmail@gmail.com</a>><br>
>> >> wrote:<br>
>> >>><br>
>> >>> Hello!<br>
>> >>><br>
>> >>> I have a system wide installation of OpenNebula 1.4 on Ubuntu 9.04<br>
>> >>> 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" target="_blank">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" target="_blank">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>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org" target="_blank">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>