<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">On 05/07/2013 03:35 PM, Daniel Molina
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPvywexJafzHBBuz9OQs_pUd5OOTf0OySS21Tjy-GP3sLYKNvQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Olivier
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On 7 May 2013 14:39, Olivier Sallou <span
              dir="ltr"><<a moz-do-not-send="true"
                href="mailto:olivier.sallou@irisa.fr" target="_blank">olivier.sallou@irisa.fr</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">More
              info. I have tested locally with provided
              econe-terminate-instances<br>
              script. Version is 3.8.1<br>
              <br>
              oneadmin:/var/log/one$ econe-terminate-instances --url<br>
              <a moz-do-not-send="true" href="http://x.x.x.x:4567"
                target="_blank">http://x.x.x.x:4567</a> 581<br>
              <br>
              response is:<br>
              <div class="im"><br>
                {"xmlns"=>"<a moz-do-not-send="true"
                  href="http://ec2.amazonaws.com/doc/2010-08-31/"
                  target="_blank">http://ec2.amazonaws.com/doc/2010-08-31/</a>",<br>
              </div>
              "requestId"=>"c214cb99-48d8-4131-8949-0420dc779eaf",
              "instancesSet"=>nil}<br>
              <div class="">
                <div class="h5"><br>
                  <br>
                  <br>
                  On 05/07/2013 02:18 PM, Olivier Sallou wrote:<br>
                  > Hi,<br>
                  > I wonder how to debug a delete issue.<br>
                  > I have a ruby script that sends delete operations
                  on an instance using<br>
                  > Ruby gems AWS:<br>
                  ><br>
                  >   ec2 = AWS::EC2::Base.new(:access_key_id =>
                  ec2_access_key,<br>
                  > :secret_access_key => ec2_secret_key,<br>
                  >  :server => 'my econe server ip', :port =>
                  4567, :use_ssl => false)<br>
                  ><br>
                  ><br>
                  ><br>
                  >   begin<br>
                  >     response = ec2.terminate_instances(<br>
                  >               :instance_id => [ vmid ]<br>
                  >               )<br>
                  >   rescue Exception => e<br>
                  >      puts e.message<br>
                  >   end<br>
                  ><br>
                  > but answer is only:<br>
                  ><br>
                  > {"xmlns"=>"<a moz-do-not-send="true"
                    href="http://ec2.amazonaws.com/doc/2010-08-31/"
                    target="_blank">http://ec2.amazonaws.com/doc/2010-08-31/</a>",<br>
                  >
                  "requestId"=>"6d9ac132-a433-4b2c-b0e3-7f39ff494288",
                  "instancesSet"=>nil}<br>
                  ><br>
                </div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div style="">Could you try using the id returned by
              econe-describe-instances?</div>
            <div style="">    vmid = i-00000581</div>
            <div style="">instead of</div>
            <div style="">    vmid = 581</div>
            <div style=""><br>
            </div>
            <div style="">or from de cli</div>
            <div style="">    econe-terminate-instances --url <a
                moz-do-not-send="true" href="http://x.x.x.x:4567/"
                target="_blank">http://x.x.x.x:4567</a> i-00000581</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    It works. This was not however the previous way to work (script was
    working fine before). Is it a modification in econe server that
    breaks this?<br>
    <br>
    <blockquote
cite="mid:CAPvywexJafzHBBuz9OQs_pUd5OOTf0OySS21Tjy-GP3sLYKNvQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_extra"><br>
          </div>
          Cheers<br clear="all">
          <div><br>
          </div>
          -- <br>
          Daniel Molina<br>
          Project Engineer<br>
          OpenNebula - The Open Source Solution for Data Center
          Virtualization<br>
          <a moz-do-not-send="true" href="http://www.OpenNebula.org"
            target="_blank">www.OpenNebula.org</a> | <a
            moz-do-not-send="true" href="mailto:dmolina@opennebula.org"
            target="_blank">dmolina@opennebula.org</a> | @OpenNebula
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

</pre>
  </body>
</html>