Comment 1 for bug 383336

Revision history for this message
Christopher Armstrong (radix) wrote :

By the way, this is similar to bug #308530 in ubuntu-on-ec2, which they're fixing by putting the following snippet into their startup scripts (or at least, this is the currently-proposed solution):

+def checkServer():
+ for x in range(30*60):
+ s = socket.socket()
+ try:
+ address = '169.254.169.254'
+ port = 80
+ s.connect((address,port))
+ s.close()
+ return
+ except socket.error, e:
+ time.sleep(1)
+
+checkServer()