Hello,<div>Any one can help me please!! have you any suggestions to solve this problem.</div><div><br></div><div>Best Regards.<br><br><div class="gmail_quote">2012/1/3 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"><br clear="all"><div>Hi all, </div><div>I am using OCCI with OpenNebula 3.0. I have configured my OCCI server and tested it, with the occi-network command and it works fine. But, when i try to upload an image with the occi-storage command, I got this error :</div>

<div><font color="#ff0000">"failed sending data to the peer"</font></div><div>My configuration is as follows :</div><div>------</div><div>> cat etc/occi-server.conf</div><div><span># OpenNebula sever contact information</span><br>

<span>:one_xmlrpc: </span><a href="http://localhost:2633/RPC2" target="_blank">http://localhost:2633/RPC2</a><br><br><span># Host and port where OCCI server will run</span><br><span>:server: localhost</span><br>
<span>:port: 4567</span><br><br><span># SSL proxy that serves the API (set if is being used)</span><br><span>#:ssl_server: fqdm.of.the.server</span><br><br><span># Configuration for OpenNebula's Virtual Networks</span><br>

<span>:bridge: br0</span><br><br><span># Authentication protocol for the OCCI server:</span><br><span>#   basic, for OpenNebula's user-password scheme</span><br><span>#   x509, for x509 certificates based authentication</span><br>

<span>:auth: basic</span><br><br><span># VM types allowed and its template file (inside templates directory)</span><br><span>:instance_types:</span><br><span>  :custom:</span><br>
<span>    :template: custom.erb</span><br><span>  :small:</span><br><span>    :template: small.erb</span><br><span>  :medium:</span><br><span>    :template: medium.erb</span><br>
<span>  :large:</span><br><span>    :template: large.erb</span>
</div><div><span>------------------</span></div><div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">The command I tested is :</font></div><div><font color="#222222" face="arial, sans-serif">    </font><span>  occi-storage create storage.xml</span></div>

<div><span>and here is the xml file contents :</span></div><div><span>-----</span></div><div><span>> cat storage.xml</span></div><div><span> </span><span><STORAGE></span></div><span>        <NAME>ubuntu_11</NAME></span><br>

<span>        <DESCRIPTION>A VM containing the Ubuntu OS</DESCRIPTION></span><br><span>        <TYPE>OS</TYPE></span><br><span>        <URL>file:///srv/</span><span>opennebula/images/ubuntu</span><span>.img</URL></span><br>

<span></STORAGE></span> <div>--------</div><div><br></div><div>After executing the occi-storage command I got the error described above and the OCCI-server is stopped....</div><div><br></div><div>Any suggestions ??!!!</div>

<div><br></div><div>Thanks in advance for your help!</div><div><br></div><div><br></div><div>Best Regards.</div><span class="HOEnZb"><font color="#888888"><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>
</font></span></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>