Hi, <div>Regarding uploading image with occi-storage, perhaps there is a bug in OpenNebula. In fact, it does not support the upload of large images... I have tested the command "Occi-storage create image.xml" with a text file and an OS image of size 2G, and it is working fine.... But when I try to upload a large image (> 4 G ) , the command fails with the error : </div>
<div><span style="background-color:rgb(255,255,255);color:rgb(255,0,0);font-family:arial,sans-serif;font-size:13px">server returned nothing (no headers, no data).....</span></div><div><span style="background-color:rgb(255,255,255);color:rgb(255,0,0);font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="background-color:rgb(255,255,255);font-family:arial,sans-serif;font-size:13px">Any suggestions?? Can someone help me to solve this problem???</span></div><div><span style="background-color:rgb(255,255,255);font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="background-color:rgb(255,255,255);font-family:arial,sans-serif;font-size:13px">Best Regards.</span></div><div><br><br><div class="gmail_quote">2012/1/5 salma rebai <span dir="ltr"><<a href="mailto:rebai.salma@gmail.com">rebai.salma@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span style="color:rgb(51,51,51);font-family:arial,sans-serif">Hi,</span></div><div><font color="#333333" face="arial, sans-serif">Apparently it is a space problem! I have tested the occi-storage command with a small text file and I succeeded to upload It. </font></div>
<div><font color="#333333" face="arial, sans-serif">I think that occi uses a temporary folder (/tmp) during uploading new images and finally it saves these images in the ($ONE_LOCATION/var/images) folder....</font></div>
<div><font color="#333333" face="arial, sans-serif">But I don't know how to specify this temporary folder.</font></div><div><font color="#333333" face="arial, sans-serif">For the moment I have changed in the ($ONE_LOCATION/bin/occi-server) file the TMPDIR variable to be like that :</font></div>
<div><span>export TMPDIR=/srv/opennebula/</span><span>tmp</span>
</div><div><span><br></span></div><div><font color="#222222" face="arial, sans-serif">After restarting the occi-server , the /srv/opennebula/tmp folder is created, and when I run the "occi-storage create image.xml" command, I noticed some file that are copied in this file:</font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">> ls -l /srv/opennebula/tmp</font></div><div><span>total 28561060</span><br><span>-rw------- 1 opennebula opennebula 3448287232 Jan 5 12:44 RackMultipart20120105-23685-</span><span>1b91zls-0</span><br>
<span>-rw------- 1 opennebula opennebula 12884901888 Jan 5 12:25 RackMultipart20120105-23685-</span><span>1mhvl6-0</span><br><span>-rw------- 1 opennebula opennebula 12884902433 Jan 5 12:43 thin-body20120105-23685-</span><span>1y5klur-0</span>
</div><div><br></div><div><br></div>But after some time the "occi-storage create" command fails with the error <div><span style="background-color:rgb(255,255,255)"><font color="#ff0000"><span style="font-family:arial,sans-serif;font-size:13px">server returned nothing (no headers, no data)</span> </font></span></div>
<div><span style="background-color:rgb(255,255,255)"><font color="#ff0000"><br></font></span></div><div><span style="background-color:rgb(255,255,255)">The contents of my log file is as follows </span></div><div><span style="background-color:rgb(255,255,255)">>cat var/occi-server.log</span></div>
<div><div class="im"><span>------------------------------</span><span>--------</span><br><span> Server configuration </span><br><span>------------------------------</span><span>--------</span><br>
<span>{:template_location=>"/srv/</span><span>opennebula//etc/occi_</span><span>templates",</span><br><span> :bridge=>"br0",</span><br><span> :one_xmlrpc=>"</span><a href="http://localhost:2633/RPC2" target="_blank">http://localhost:2633/RPC2</a><span>",</span><br>
<span> :instance_types=></span><br><span> {:custom=>{:template=>"custom.</span><span>erb"},</span><br><span> :small=>{:template=>"small.</span><span>erb"},</span><br>
<span> :medium=>{:template=>"medium.</span><span>erb"},</span><br><span> :large=>{:template=>"large.</span><span>erb"}},</span><br><span> :server=>"localhost",</span><br>
<span> :auth=>"basic",</span><br><span> :port=>4567}</span><br><span>== Sinatra/1.3.1 has taken the stage on 4567 for development with backup from Thin</span><br></div><span>127.0.0.1 - - [05/Jan/2012 12:10:46] "GET /network HTTP/1.1" 200 119 0.0470</span><br>
<span>127.0.0.1 - - [05/Jan/2012 12:21:42] "GET /network HTTP/1.1" 200 119 0.2190</span><br><span>127.0.0.1 - - [05/Jan/2012 12:21:49] "GET /storage HTTP/1.1" 200 180 0.2270</span><br>
<span>127.0.0.1 - - [05/Jan/2012 12:24:15] "GET /network HTTP/1.1" 200 119 0.1177</span><br><span>127.0.0.1 - - [05/Jan/2012 12:25:17] "POST /storage HTTP/1.1" </span><a href="tel:500%2079%200.0125" value="+15007900125" target="_blank">500 79 0.0125</a><br>
<span>127.0.0.1 - - [05/Jan/2012 12:45:16] "GET /storage HTTP/1.1" 200 180 0.1723</span><br><span>127.0.0.1 - - [05/Jan/2012 12:45:20] "GET /storage HTTP/1.1" 200 180 0.1987</span><br>
<span>127.0.0.1 - - [05/Jan/2012 12:47:38] "GET /network HTTP/1.1" 200 119 0.1170</span><br><span>127.0.0.1 - - [05/Jan/2012 12:47:46] "POST /storage HTTP/1.1" </span><a href="tel:500%2079%200.1150" value="+15007901150" target="_blank">500 79 0.1150</a><br>
<span>127.0.0.1 - - [05/Jan/2012 12:50:20] "GET /storage HTTP/1.1" 200 180 0.0077</span><br><span>127.0.0.1 - - [05/Jan/2012 12:50:24] "GET /storage HTTP/1.1" 200 180 0.0082</span><br>
<span>127.0.0.1 - - [05/Jan/2012 12:57:57] "POST /storage HTTP/1.1" 201 238 0.0380</span><br><span>127.0.0.1 - - [05/Jan/2012 13:03:14] "GET /storage HTTP/1.1" 200 242 0.0076</span><br>
<span>127.0.0.1 - - [05/Jan/2012 13:03:20] "GET /storage HTTP/1.1" 200 242 0.0072</span>
</div><div><span><br></span></div><div><span>The "occi-storage list" doesn't show any new storage....</span></div><div><font color="#222222" face="arial, sans-serif">Have you any suggestions? Can you help me to solve the problem??</font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">Thanks!</font></div><div class="HOEnZb"><div class="h5"><div><div class="gmail_quote">2012/1/4 salma rebai <span dir="ltr"><<a href="mailto:rebai.salma@gmail.com" target="_blank">rebai.salma@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div>Thanks for your response.</div><div>The folder of my OpenNebula installation (/srv/opennebula) is a large shared space..... SO i don't know if this really a disk space problem.</div>
<div>When i used the command line "oneimage create " to upload a new image, I don't find any problems, and images are stored in the (/src/opennebula/var/images) folder.....</div>
<div>But, I don't know when new images uploaded with occi-storage take place... Is there a specific folder used by occi-storage??</div><div><br></div><div>Thanks for your Help!</div><div>Best Regards.<div><div>
<br><br><div class="gmail_quote">
2012/1/4 Hector Sanjuan <span dir="ltr"><<a href="mailto:hsanjuan@opennebula.org" target="_blank">hsanjuan@opennebula.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, it looks to me like you're short of space to upload your image:<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
/usr/local/lib/ruby/gems/1.8/<u></u>gems/thin-1.2.11/lib/thin/<u></u>request.rb:77:in `parse': No space left on device - /tmp/thin-body20120104-29992-<u></u>1v1tn4a-0 (Errno::ENOSPC)<br>
</blockquote>
<br></div><div><div>
-- <br>
Hector Sanjuan<br>
OpenNebula Developer<br>
______________________________<u></u>_________________<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/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><div>-- <br>Salma REBAI<br>Ingénieur Informatique<br>
Mastère Réseaux et Systèmes Multimédia<br>Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie<br>Institut Télécom SudParis<br><a href="mailto:rebai.salma@gmail.com" target="_blank">rebai.salma@gmail.com</a><br>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Salma REBAI<br>Ingénieur Informatique<br>
Mastère Réseaux et Systèmes Multimédia<br>Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie<br>Institut Télécom SudParis<br><a href="mailto:rebai.salma@gmail.com" target="_blank">rebai.salma@gmail.com</a><br>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Salma REBAI<br>Ingénieur Informatique<br>
Mastère Réseaux et Systèmes Multimédia<br>Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie<br>Institut Télécom SudParis<br><a href="mailto:rebai.salma@gmail.com" target="_blank">rebai.salma@gmail.com</a><br>
</div>