git://git.onelab.eu
/
tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b4b7729
)
temporaly adjusting time delay in checking slices due to the NM slowness to come...
author
Tony Mack
<tmack@cs.princeton.edu>
Thu, 31 Jan 2008 10:38:20 +0000
(10:38 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Thu, 31 Jan 2008 10:38:20 +0000
(10:38 +0000)
system/TestSlice.py
patch
|
blob
|
history
diff --git
a/system/TestSlice.py
b/system/TestSlice.py
index
f8eaed8
..
a3338ba
100644
(file)
--- a/
system/TestSlice.py
+++ b/
system/TestSlice.py
@@
-55,13
+55,13
@@
class TestSlice:
###the logic is quit wrong, must be rewritten
def do_check_slices(self):
###the logic is quit wrong, must be rewritten
def do_check_slices(self):
- utils.header("wainting for the node to fully boot")
- time.sleep(
12
0)
+ utils.header("wainting for the node
s
to fully boot")
+ time.sleep(
30
0)
bool=bool1=True
secondes=15
self.delete_known_hosts()
start_time = datetime.datetime.now()
bool=bool1=True
secondes=15
self.delete_known_hosts()
start_time = datetime.datetime.now()
- dead_time=start_time + datetime.timedelta(minutes=
5)##adding 3minutes
+ dead_time=start_time + datetime.timedelta(minutes=
6)
for slice_spec in self.test_plc.plc_spec['slices']:
for hostname in slice_spec['nodenames']:
slicename=slice_spec['slice_fields']['name']
for slice_spec in self.test_plc.plc_spec['slices']:
for hostname in slice_spec['nodenames']:
slicename=slice_spec['slice_fields']['name']
@@
-99,7
+99,7
@@
class TestSlice:
else:
utils.header('%s@%s : last chance - restarting nm on %s'%(slicename,hostname,hostname))
access=utils.system('ssh -i /etc/planetlab/root_ssh_key.rsa root@%s service nm restart'%hostname)
else:
utils.header('%s@%s : last chance - restarting nm on %s'%(slicename,hostname,hostname))
access=utils.system('ssh -i /etc/planetlab/root_ssh_key.rsa root@%s service nm restart'%hostname)
- time.sleep(
12
0)##temoprally adding some delay due to the network slowness
+ time.sleep(
24
0)##temoprally adding some delay due to the network slowness
if (access==0):
utils.header('trying to connect (2) to %s@%s'%(slicename,hostname))
Date=utils.system('ssh -i %s %s@%s date'%(privatekey,slicename,hostname))
if (access==0):
utils.header('trying to connect (2) to %s@%s'%(slicename,hostname))
Date=utils.system('ssh -i %s %s@%s date'%(privatekey,slicename,hostname))