From 1c27ca4ba47cf7eb7750faee9144a89971211f79 Mon Sep 17 00:00:00 2001 From: Patrick LeBlanc Date: Tue, 25 Aug 2020 09:56:27 -0400 Subject: [PATCH] Made the loadbrm script sleep 1 sec after starting SM, if it starts SM. This is to give SM time to init before we try to use it. --- oam/install_scripts/mcs-loadbrm.py.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/oam/install_scripts/mcs-loadbrm.py.in b/oam/install_scripts/mcs-loadbrm.py.in index 4727d18c3..9a2990078 100755 --- a/oam/install_scripts/mcs-loadbrm.py.in +++ b/oam/install_scripts/mcs-loadbrm.py.in @@ -60,6 +60,7 @@ if __name__ == '__main__': print('Failed to start storagemanager. \ {} exits with {}.'.format(cmd, retcode)) sys.exit(1) + time.sleep(1) # allow SM time to init brm = 'data1/systemFiles/dbrm/BRM_saves_current' config_root.find('./Installation/DBRootStorageType').text = "StorageManager" @@ -70,8 +71,6 @@ if __name__ == '__main__': config_root.find('./SystemConfig/DataFilePlugin').text = "libcloudio.so" cs_config.write('/etc/columnstore/Columnstore.xml') - # Delay to allow SM to start up - time.sleep(15) # Single-node on S3 if storage.lower() == 's3' and not bucket.lower() == 'some_bucket' and pmCount == 1: