[one-users] EC2 delete not working

Daniel Molina dmolina at opennebula.org
Thu May 9 08:18:45 PDT 2013


On 7 May 2013 16:18, Olivier Sallou <olivier.sallou at irisa.fr> wrote:

>
> On 05/07/2013 03:35 PM, Daniel Molina wrote:
>
> Hi Olivier
>
>
> On 7 May 2013 14:39, Olivier Sallou <olivier.sallou at irisa.fr> wrote:
>
>> More info. I have tested locally with provided econe-terminate-instances
>> script. Version is 3.8.1
>>
>> oneadmin:/var/log/one$ econe-terminate-instances --url
>> http://x.x.x.x:4567 581
>>
>> response is:
>>
>> {"xmlns"=>"http://ec2.amazonaws.com/doc/2010-08-31/",
>>  "requestId"=>"c214cb99-48d8-4131-8949-0420dc779eaf", "instancesSet"=>nil}
>>
>>
>>
>> On 05/07/2013 02:18 PM, Olivier Sallou wrote:
>> > Hi,
>> > I wonder how to debug a delete issue.
>> > I have a ruby script that sends delete operations on an instance using
>> > Ruby gems AWS:
>> >
>> >   ec2 = AWS::EC2::Base.new(:access_key_id => ec2_access_key,
>> > :secret_access_key => ec2_secret_key,
>> >  :server => 'my econe server ip', :port => 4567, :use_ssl => false)
>> >
>> >
>> >
>> >   begin
>> >     response = ec2.terminate_instances(
>> >               :instance_id => [ vmid ]
>> >               )
>> >   rescue Exception => e
>> >      puts e.message
>> >   end
>> >
>> > but answer is only:
>> >
>> > {"xmlns"=>"http://ec2.amazonaws.com/doc/2010-08-31/",
>> > "requestId"=>"6d9ac132-a433-4b2c-b0e3-7f39ff494288",
>> "instancesSet"=>nil}
>> >
>>
>
>  Could you try using the id returned by econe-describe-instances?
>     vmid = i-00000581
> instead of
>     vmid = 581
>
>  or from de cli
>     econe-terminate-instances --url http://x.x.x.x:4567 i-00000581
>
>
> 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?
>


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:
https://github.com/OpenNebula/one/blob/one-3.8/src/cloud/ec2/lib/instance.rb#L165

Cheers


>
>
>  Cheers
>
>  --
> Daniel Molina
> Project Engineer
> OpenNebula - The Open Source Solution for Data Center Virtualization
> www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
>
>
> --
> 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
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in Berlin, 24-26
September, 2013
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130509/40c971a7/attachment-0002.htm>


More information about the Users mailing list