<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:486476329;
        mso-list-type:hybrid;
        mso-list-template-ids:-399743502 -1105568788 135659523 135659525 135659521 135659523 135659525 135659521 135659523 135659525;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:20.25pt;
        text-indent:-18.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=PT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I am trying to use the OCCI interface, I am able to launch VMs through the “occi-compute” command, but I am having some issues when trying to use for example the GET request:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I create a VM by using the occi-compute which returns me the ID 129. Then:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>telnet localhost 4567<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US>GET /compute/129 HTTP/1.1<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Trying ::1...</span><span lang=EN-US><br>Trying 127.0.0.1...<br>Connected to localhost.<br>Escape character is '^]'.<br>GET /compute/129 HTTP/1.1<br><br>HTTP/1.1 500 Internal Server Error<br>Content-Type: text/html<br>Content-Length: 122449<br>Connection: keep-alive<br>Server: thin 1.2.8 codename Black Keys<br><br><!DOCTYPE html><br><html><br><head><br>  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><br>  <title>NoMethodError at /compute/129</title><br><br>  <script type="text/javascript"><br>  //<!--<br>  function toggle(id) {<br>    var pre  = document.getElementById("pre-" + id);<br>    var post = document.getElementById("post-" + id);<br>    var context = document.getElementById("context-" + id);<br><br>    if (pre.style.display == 'block') {<br>      pre.style.display = 'none';<br>      post.style.display = 'none';<br>      context.style.background = "none";<br>    } else {<br>      pre.style.display = 'block';<br>      post.style.display = 'block';<br>      context.style.background = "#fffed9";<br>    }<br>  }<br><br>  function toggleBacktrace(){<br><br>................................................... (continues)……<br><br>           <td>rack.version</td><br>           <td class="code"><div>[1, 0]</div></td><br>         </tr><br>         <br>         <tr><br>           <td>sinatra.error</td><br>           <td class="code"><div>#&lt;NoMethodError: private method `split&#39; called for nil:NilClass&gt;</div></td><br>         </tr><br>         <br>      </table><br>      <div class="clear"></div><br>    </div> <!-- /RACK ENV --><br><br>    <p id="explanation">You're seeing this error because you have<br>enabled the <code>show_exceptions</code> setting.</p><br>  </div> <!-- /WRAP --><br>  </body><br></html><br><br><br><o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=EN-US>On the other hand, if I try:</span></b><span lang=EN-US><br><br><br><b>GET /compute/ HTTP/1.1</b><br><br>HTTP/1.1 404 Not Found<br>X-Cascade: pass<br>Content-Type: text/html;charset=utf-8<br>Content-Length: 417<br>Connection: keep-alive<br>Server: thin 1.2.8 codename Black Keys<br><br><!DOCTYPE html><br><html><br><head><br>  <style type="text/css"><br>  body { text-align:center;font-family:helvetica,arial;font-size:22px;<br>    color:#888;margin:20px}<br>  #c {margin:0 auto;width:500px;text-align:left}<br>  </style><br></head><br><body><br>  <h2>Sinatra doesn't know this ditty.</h2><br>  <img src='/__sinatra__/404.png'><br>  <div id="c"><br>    Try this:<br>    <pre>get '/compute/' do<br>  "Hello World"<br>end</pre><br>  </div><br></body><br></html><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I am not fully aware how the interface works so I might be making a silly mistake…any help?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks in advanced,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Joćo<o:p></o:p></span></p></div></body></html>