<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 May 2013 16:18, Olivier Sallou <span dir="ltr"><<a 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">
<div text="#000000" bgcolor="#FFFFFF"><div><div class="h5">
<br>
<div>On 05/07/2013 03:35 PM, Daniel Molina
wrote:<br>
</div>
<blockquote 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 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 href="http://x.x.x.x:4567" target="_blank">http://x.x.x.x:4567</a> 581<br>
<br>
response is:<br>
<div><br>
{"xmlns"=>"<a 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>
<div><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 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>Could you try using the id returned by
econe-describe-instances?</div>
<div> vmid = i-00000581</div>
<div>instead of</div>
<div> vmid = 581</div>
<div><br>
</div>
<div>or from de cli</div>
<div> econe-terminate-instances --url <a href="http://x.x.x.x:4567/" target="_blank">http://x.x.x.x:4567</a> i-00000581</div>
</div>
</div>
</div>
</blockquote>
<br></div></div>
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?</div></blockquote><div><br></div><div><br></div><div style>Yes this was a modification we made to the server, but it was already included in 3.8.3. You can change this behaviour in the following method:</div>
<div style><a href="https://github.com/OpenNebula/one/blob/one-3.8/src/cloud/ec2/lib/instance.rb#L165">https://github.com/OpenNebula/one/blob/one-3.8/src/cloud/ec2/lib/instance.rb#L165</a><br></div><div style><br></div><div style>
Cheers</div><div style><br></div><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"><div text="#000000" bgcolor="#FFFFFF">
<div class="im"><br>
<br>
<blockquote 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 href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula
</div>
</div>
</blockquote>
<br>
</div><div class="im"><pre 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 (<a href="http://keyring.debian.org" target="_blank">keyring.debian.org</a>)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
</pre>
</div></div>
<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"><div><br></div>-- <br><div dir="ltr"><div>Join us at <a href="http://opennebulaconf.com/">OpenNebulaConf2013</a> in Berlin, 24-26 September, 2013<br></div><div>--</div>Daniel Molina<br>
Project Engineer<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula</div>
</div></div>