[one-users] EC2 delete not working

Daniel Molina dmolina at opennebula.org
Tue May 7 06:35:34 PDT 2013


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

Cheers

-- 
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/20130507/b9e23b66/attachment-0002.htm>


More information about the Users mailing list