From 7c36388c8f6ff3f859771bc64f93be7a154ff69d Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 19 Jul 2021 12:23:45 -0400 Subject: [PATCH] Add post-networking delay and adjust daemon delay --- node-daemon/pvcnoded/Daemon.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/node-daemon/pvcnoded/Daemon.py b/node-daemon/pvcnoded/Daemon.py index 4f3fadf3..a371c15f 100644 --- a/node-daemon/pvcnoded/Daemon.py +++ b/node-daemon/pvcnoded/Daemon.py @@ -488,6 +488,9 @@ if enable_networking: else: common.run_os_command('ip route add default via {} dev {}'.format(upstream_gateway, 'brupstream')) + logger.out('Waiting 3s for networking to come up', state='s') + time.sleep(3) + ############################################################################### # PHASE 2c - Prepare sysctl for pvcnoded ############################################################################### @@ -559,8 +562,8 @@ if enable_storage: logger.out('Starting Ceph manager daemon', state='i') common.run_os_command('systemctl start ceph-mgr@{}'.format(myhostname)) -logger.out('Waiting 5s for daemons to start', state='s') -time.sleep(5) +logger.out('Waiting 3s for daemons to start', state='s') +time.sleep(3) ############################################################################### # PHASE 4 - Attempt to connect to the coordinators and start zookeeper client