[one-users] EC2 delete not working

Olivier Sallou olivier.sallou at irisa.fr
Tue May 7 07:18:35 PDT 2013


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
> <mailto: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
> <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?

>
> Cheers
>
> -- 
> Daniel Molina
> Project Engineer
> OpenNebula - The Open Source Solution for Data Center Virtualization
> www.OpenNebula.org <http://www.OpenNebula.org> |
> dmolina at opennebula.org <mailto: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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130507/6f2d0403/attachment-0002.htm>


More information about the Users mailing list