<div>I've seen a few of these intermittent errors right at start up:</div><br><div>PID: 29470 cli.py:158 - ERROR - InvalidInstanceID.NotFound: The instance ID 'i-2eaea843' does not exist</div><div><br></div><div>
I think EC2 needs a few seconds after starting a new instance before it can be queried about the new instance. Adding an initial delay seems to fix this problem:</div><div><br></div><div><div>@@ -1168,6 +1168,7 @@</div><div>
s = Spinner()</div><div> log.log(INFO_NO_NEWLINE, "Waiting for cluster to come up...")</div><div> s.start()</div><div>+ time.sleep(30)</div><div> while not self.is_cluster_up(enforce_size):</div>
<div> time.sleep(30)</div><div> s.stop()</div></div><div><br></div><div>30 seconds is probably overkill but I doubt a new instance can be spun up in less than that.</div><div><br></div><div>igor</div><div>
<br></div>