geemus/fog — Issue #570: AWS bootstrap() doesn't handle errors 
Author: rb2k
Created: 2011-10-19 16:39:48+00:00
State: open

From time to time, I receive an error with EC2 that says something like: "The instance ID 'i-169c8d76' does not exist"

The instance ID 'i-169c8d76' does not exist
/instance_setup/vendor/bundle/ruby/1.8/gems/excon-0.7.6/lib/excon/connection.rb:194:in `request'
/instance_setup/vendor/bundle/ruby/1.8/gems/fog-1.0.0/lib/fog/core/connection.rb:20:in `request'
/instance_setup/vendor/bundle/ruby/1.8/gems/fog-1.0.0/lib/fog/aws/compute.rb:286:in `request'
/instance_setup/vendor/bundle/ruby/1.8/gems/fog-1.0.0/lib/fog/aws/requests/compute/create_tags.rb:35:in `create_tags'
/instance_setup/vendor/bundle/ruby/1.8/gems/fog-1.0.0/lib/fog/aws/models/compute/tag.rb:27:in `save'
/instance_setup/vendor/bundle/ruby/1.8/gems/fog-1.0.0/lib/fog/core/collection.rb:50:in `create'
/instance_setup/vendor/bundle/ruby/1.8/gems/fog-1.0.0/lib/fog/aws/models/compute/server.rb:174:in `save'
/instance_setup/vendor/bundle/ruby/1.8/gems/fog-1.0.0/lib/fog/aws/models/compute/server.rb:173:in `each'
/instance_setup/vendor/bundle/ruby/1.8/gems/fog-1.0.0/lib/fog/aws/models/compute/server.rb:173:in `save'
/instance_setup/vendor/bundle/ruby/1.8/gems/fog-1.0.0/lib/fog/aws/models/compute/servers.rb:100:in `bootstrap'

It think bootstrap should be able to handle those and retry for a certain amount of time.
These instances WILL be started and leak