Hi Marwen,<div><br></div><div>1) The problem is the ruby version that you are using, I think that problem is fixed for 1.8.6 >= p110. If you want to keep on using 1.8.5 version you should make these changes:</div><div><br>
</div><div><div>diff --git a/src/cloud/occi/bin/occi-compute b/src/cloud/occi/bin/occi-compute</div><div>index 76018c5..399d691 100755</div><div>--- a/src/cloud/occi/bin/occi-compute</div><div>+++ b/src/cloud/occi/bin/occi-compute</div>
<div>@@ -203,8 +203,6 @@ else</div><div> exit(-1)</div><div> end</div><div> </div><div>- str = ""</div><div>- REXML::Formatters::Pretty.new(4).write(xml,str)</div><div>- puts "\n" + str + "\n " </div>
<div>+ puts xml </div><div> end</div><div> </div><div>diff --git a/src/cloud/occi/bin/occi-network b/src/cloud/occi/bin/occi-network</div><div>index 42b8d6e..6690ac8 100755</div><div>--- a/src/cloud/occi/bin/occi-network</div>
<div>+++ b/src/cloud/occi/bin/occi-network</div><div>@@ -196,7 +196,5 @@ else</div><div> exit(-1)</div><div> end</div><div> </div><div>- str = ""</div><div>- REXML::Formatters::Pretty.new(4).write(xml,str)</div>
<div>- puts "\n" + str + "\n " </div><div>+ puts xml</div><div> end</div><div>diff --git a/src/cloud/occi/bin/occi-storage b/src/cloud/occi/bin/occi-storage</div><div>index 4387b2a..b9250c1 100755</div>
<div>--- a/src/cloud/occi/bin/occi-storage</div><div>+++ b/src/cloud/occi/bin/occi-storage</div><div>@@ -197,7 +197,5 @@ else</div><div> exit(-1)</div><div> end</div><div> </div><div>- str = ""</div>
<div>- REXML::Formatters::Pretty.new(4).write(xml,str)</div><div>- puts "\n" + str + "\n "</div><div>+ puts xml</div><div> end</div><div><br></div>2) The problem is the password. You have to use the Hashed SHA1 password that you can get from the oneuser command instead of the plaintext one. (For the occi commands you have to use the plaintext password)</div>
<div><br></div><div><br></div><div>Regards.</div><div><br><div class="gmail_quote">On 1 August 2010 17:35, marwen marwen <span dir="ltr"><<a href="mailto:marwen.ensi@gmail.com">marwen.ensi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello<br><br>we set up the OCCI interface for OpenNebula but I have two problem:<br><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><pre>
<i>1) when we use (occi-network,occi-compute or occi-storage) I have this error <br></i></pre></span>$occi-network -U oneadmin -P passwd list<br><b>uninitialized constant REXML::Formatters</b><br><br>and when I use onevnet I show this result<br>
<br>$onevnet list <br>ID USER NAME TYPE BRIDGE #LEASES<br> 1 oneadmin LAN_XEN Fixed eth1 0<br> 2 oneadmin LAN Fixed br1 3<br>25 oneadmin testnet Ranged br1 0<br>
how can I resolve this problem (I am using ruby 1.8.5 (2006-08-25) [x86_64-linux])<br>
<br>2) when we use curl I have this problem <br><br>$curl -u oneadmin:passwd <a href="http://localhost:4567/compute" target="_blank">http://localhost:4567/compute</a><br><b>Invalid credentials</b><br><span><span style="background-color:rgb(235, 239, 249)" title=""><br>
$cat $ONE_AUTH<br>oneadmin:</span></span>passwd<br><span><span style="background-color:rgb(235, 239, 249)" title=""><br>Regards</span></span><br><font color="#888888">Marwen<br><br>
</font><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></blockquote></div><br><br clear="all"><br>-- <br>Daniel Molina, Cloud Technology Engineer/Researcher<br>DSA Research Group: web <a href="http://dsa-research.org" target="_blank">http://dsa-research.org</a> and blog <a href="http://blog.dsa-research.org" target="_blank">http://blog.dsa-research.org</a><br>
OpenNebula Open Source Toolkit for Cloud Computing: <a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a><br>
</div>