diff --git a/boto/manage/server.py b/boto/manage/server.py index 9a1e280cce..446436fb5d 100644 --- a/boto/manage/server.py +++ b/boto/manage/server.py @@ -321,6 +321,9 @@ def create(cls, config_file=None, logical_volume = None, cfg = None, **params): if elastic_ip != None and instances.__len__() > 0: instance = instances[0] print 'Waiting for instance to start so we can set its elastic IP address...' + # Sometimes we get a message from ec2 that says that the instance does not exist. + # Hopefully the following delay will giv eec2 enough time to get to a stable state: + time.sleep(5) while instance.update() != 'running': time.sleep(1) instance.use_ip(elastic_ip)