Quick workaround is to replace i=10 by i=45 and add a sleep 5 just after the while loop.
Better workaround is to try euca_conf every 5 seconds for 1 minute, and add proper messages while doing that.
Best workaround is to rewrite the initscripts completely to get rid of redundancy and race conditions.
Note that the workaround isn't sufficient to make it work with bzr808 because of bug 434593.
Quick workaround is to replace i=10 by i=45 and add a sleep 5 just after the while loop.
Better workaround is to try euca_conf every 5 seconds for 1 minute, and add proper messages while doing that.
Best workaround is to rewrite the initscripts completely to get rid of redundancy and race conditions.
Note that the workaround isn't sufficient to make it work with bzr808 because of bug 434593.