From c755f375dd15da0a13e0a1a74c3d8a34c1da4d5c Mon Sep 17 00:00:00 2001 From: Jose Rojas Date: Mon, 27 Jul 2020 17:41:24 -0500 Subject: [PATCH] Change for loadbrm s3 --- oam/install_scripts/mcs-loadbrm.py.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/oam/install_scripts/mcs-loadbrm.py.in b/oam/install_scripts/mcs-loadbrm.py.in index 82e0c7fa9..97ee3f63c 100644 --- a/oam/install_scripts/mcs-loadbrm.py.in +++ b/oam/install_scripts/mcs-loadbrm.py.in @@ -45,12 +45,13 @@ if __name__ == '__main__': bucket = 'some_bucket' dbrmroot = config_root.find('./SystemConfig/DBRMRoot').text + pmCount = int(config_root.find('./SystemModuleConfig/ModuleCount3').text) loadbrm = '/usr/bin/load_brm' brm_saves_current = '' - if storage.lower() == 's3' and not bucket.lower() == 'some_bucket': - # load s3 + if storage.lower() == 's3' and not bucket.lower() == 'some_bucket' and pmCount == 1: + # single-node w/ s3 cmd = 'systemctl start mcs-storagemanager' retcode = subprocess.call(cmd, shell=True) if retcode < 0: @@ -74,7 +75,7 @@ if __name__ == '__main__': # will happen when brm file does not exist print('{} does not exist.'.format(brm), file=sys.stderr) else: - pmCount = int(config_root.find('./SystemModuleConfig/ModuleCount3').text) + brm = '{}_current'.format(dbrmroot) if pmCount > 1: