From 32e1a807d5d20616f8048e0dc8c790abda2dd4b5 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 31 Jan 2008 10:38:20 +0000 Subject: [PATCH] temporaly adjusting time delay in checking slices due to the NM slowness to come up and eventual network slowness --- system/TestSlice.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/TestSlice.py b/system/TestSlice.py index f8eaed8..a3338ba 100644 --- 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): - utils.header("wainting for the node to fully boot") - time.sleep(120) + utils.header("wainting for the nodes to fully boot") + time.sleep(300) 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'] @@ -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) - time.sleep(120)##temoprally adding some delay due to the network slowness + time.sleep(240)##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)) -- 2.43.0