git://git.onelab.eu
/
bootmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e12a0a
)
everybody deserves a second chance
author
S.Çağlar Onur
<caglar@cs.princeton.edu>
Sun, 29 Aug 2010 05:23:03 +0000
(
01:23
-0400)
committer
S.Çağlar Onur
<caglar@cs.princeton.edu>
Sun, 29 Aug 2010 05:23:03 +0000
(
01:23
-0400)
source/steps/ReadNodeConfiguration.py
patch
|
blob
|
history
diff --git
a/source/steps/ReadNodeConfiguration.py
b/source/steps/ReadNodeConfiguration.py
index
ef1a944
..
bd55e9b
100644
(file)
--- a/
source/steps/ReadNodeConfiguration.py
+++ b/
source/steps/ReadNodeConfiguration.py
@@
-14,6
+14,7
@@
import sys, os, traceback
import string
import socket
import re
+import time
import utils
from Exceptions import *
@@
-563,7
+564,12
@@
def __parse_configuration_file( vars, log, file_contents ):
try:
resolved_node_ip= socket.gethostbyname(hostname)
except socket.gaierror, e:
- hostname_resolve_ok= 0
+ # sleep 5 minutes and try again
+ time.sleep(60*5)
+ try:
+ resolved_node_ip= socket.gethostbyname(hostname)
+ except socket.gaierror, e:
+ hostname_resolve_ok= 0
if INTERFACE_SETTINGS['method'] == "dhcp":