Hi Tino,<br><br>I found the error. I have two versions of amazon-ec2. I install the last version and run correctly but after appears another error. I see te vm.log and show this:<br><br>Wed Feb 17 11:34:31 2010 [VMM][I]: Generating deployment file: /srv/cloud/one/var/43/deployment.0<br>
Wed Feb 17 11:35:01 2010 [VMM][I]: Command execution fail: 'mkdir -p /srv/cloud/one/var/43/images && cat > /srv/cloud/one/var/43/images/deployment.0 && virs<br>Wed Feb 17 11:35:01 2010 [VMM][I]: STDERR follows.<br>
Wed Feb 17 11:35:01 2010 [VMM][I]: Connecting to uri: qemu:///system<br>Wed Feb 17 11:35:01 2010 [VMM][I]: error: Failed to create domain from /srv/cloud/one/var/43/images/deployment.0<br>Wed Feb 17 11:35:01 2010 [VMM][I]: error: internal error unable to start guest: qemu: could not open disk image /srv/cloud/one/var/43/images/disk.0<br>
Wed Feb 17 11:35:01 2010 [VMM][I]:<br>Wed Feb 17 11:35:01 2010 [VMM][I]: ExitCode: 1<br>Wed Feb 17 11:35:01 2010 [VMM][E]: Error deploying virtual machine<br>I don't understand why don't run because i use onevm create run correctly. This is my template of econe-tools:<br>
<br>NAME = eco-vm<br><br>CPU = 1<br>MEMORY = 2000<br><br>OS = [ boot="hd"]<br><br>DISK = [ source = <%= erb_vm_info[:img_path] %>,<br> clone = yes,<br> target = hda,<br> readonly = no]<br>
<br><br>NIC=[NETWORK="Public2"]<br><br><br>IMAGE_ID = <%= erb_vm_info[:img_id] %><br>INSTANCE_TYPE = <%= erb_vm_info[:instance_type ]%><br><br><br>Thank you very much,<br><br>Regards,<br><br>Sergio<br>
<br><div class="gmail_quote">2010/2/16 sergio garcia escriche <span dir="ltr"><<a href="mailto:sergei.garcia@gmail.com">sergei.garcia@gmail.com</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 Tino,<br><br>I see the econe-log but i don't explain where is the error exactly. Econe-server log show this:<br><br>147.83.105.238 - - [16/Feb/2010 10:38:19] "POST / HTTP/1.1" 200 1078 0.0555<br>147.83.105.238 - - [16/Feb/2010 10:38:29] "POST / HTTP/1.1" 200 930 0.1844<br>
NoMethodError - undefined method `[]' for nil:NilClass:<br> /srv/cloud/one/lib/ruby/cloud/econe/EC2QueryServer.rb:235:in `render_state'<br> (erb):18:in `describe_instances'<br> /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:144:in `call'<br>
/srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:144:in `each_element'<br> /usr/lib/ruby/1.8/rexml/element.rb:892:in `each'<br> /usr/lib/ruby/1.8/rexml/xpath.rb:53:in `each'<br> /usr/lib/ruby/1.8/rexml/element.rb:892:in `each'<br>
/srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:142:in `each_element'<br> /srv/cloud/one/lib/ruby/OpenNebula/Pool.rb:58:in `each'<br> (erb):12:in `describe_instances'<br> /srv/cloud/one/lib/ruby/cloud/econe/EC2QueryServer.rb:201:in `describe_instances'<br>
/srv/cloud/one/lib/ruby/cloud/econe/econe-server.rb:79:in `POST /'<br> /srv/cloud/one/lib/ruby/cloud/econe/econe-server.rb:68NoMethodError: undefined method `[]' for nil:NilClass<br> /srv/cloud/one/lib/ruby/cloud/econe/EC2QueryServer.rb:235:in `render_state'<br>
(erb):18:in `describe_instances'<div class="im"><br>Thank you very much,<br><br>Sergio<br><br></div><div class="gmail_quote">2010/2/16 Tino Vazquez <span dir="ltr"><<a href="mailto:tinova@fdi.ucm.es" target="_blank">tinova@fdi.ucm.es</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Sergio,<br>
<br>
Can you send the $ONE_LOCATION/var/econe-server.log?<br>
<br>
Regards,<br>
<br>
-Tino<br>
<br>
--<br>
Constantino Vázquez, Grid & Virtualization Technology<br>
Engineer/Researcher: <a href="http://www.dsa-research.org/tinova" target="_blank">http://www.dsa-research.org/tinova</a><br>
<div>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>On Thu, Feb 11, 2010 at 9:47 AM, sergio garcia escriche<br>
<div><div></div><div><<a href="mailto:sergei.garcia@gmail.com" target="_blank">sergei.garcia@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> Now i have a problem with econe-run instances . when i put :<br>
><br>
> $ econe-describe-images -H<br>
> Owner ImageId Location<br>
> ------------------------------------------------------------------------------<br>
> oneadmin 1 /srv/cloud/images/1<br>
><br>
> $ econe-run-instances 1<br>
><br>
> Opennebula show me this error:<br>
> econe-run-instances: undefined method `elements' for nil:NilClass<br>
><br>
> Thank you very much and sorry for the inconvenience.<br>
><br>
> Sergio<br>
><br>
> 2010/2/10 Javier Fontan <<a href="mailto:jfontan@gmail.com" target="_blank">jfontan@gmail.com</a>><br>
>><br>
>> You need multipart-post gem installed:<br>
>><br>
>> $ sudo gem install multipart-post<br>
>><br>
>><br>
>> On Wed, Feb 10, 2010 at 3:50 PM, sergio garcia escriche<br>
>> <<a href="mailto:sergei.garcia@gmail.com" target="_blank">sergei.garcia@gmail.com</a>> wrote:<br>
>> > HI,<br>
>> ><br>
>> > Now i have a problem with econe-upload because says this error:<br>
>> ><br>
>> > econe-upload -M win.img<br>
>> > /srv/cloud/one/lib/ruby/cloud/econe/EC2QueryClient.rb:173:in<br>
>> > `upload_image':<br>
>> > uninitialized constant EC2QueryClient::Client::UploadIO (NameError)<br>
>> > from /srv/cloud/one/bin/econe-upload:115<br>
>> ><br>
>> > And this is my configuration of econe.conf<br>
>> ><br>
>> > # OpenNebula administrator user<br>
>> > USER=oneadmin<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://nebula.prueba.edu" target="_blank">nebula.prueba.edu</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=/srv/cloud/one/var/econe.db<br>
>> > IMAGE_DIR=/srv/cloud/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>
>> > I install all the packages but i don't know what happened.<br>
>> ><br>
>> > Thank you very much,<br>
>> ><br>
>> > Sergio<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>
>> --<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>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>