aeolusproject/imagefactory — pull request #89 by imcleod (2012-02-24 16:13:31+00:00)
Title: make instance startup checks more robust

In some cases, EC2 API calls will fail if you attempt to query an
instance shortly after it has been created. We originally worked
around this by always waiting 10 seconds before trying to query the
instance. It seems this isn't quite long enough.

This patch works around that issue and also tries very hard to avoid
leaving a running instance behind and warns explicitly if that may
have happened.