"""
arch = Topology.get_node_arch(node)
- logger.console('Install the DMM on {0} ({1})'.format(node['host'], arch))
+ logger.console('Install DMM on {0} ({1})'.format(node['host'], arch))
ssh = SSH()
ssh.connect(node)
(ret_code, _, stderr) = ssh.exec_command(
- 'cd {0}/{1} && ./install_dmm.sh {2} 2>&1 | tee log_install_dmm.txt'
+ 'cd {0}/{1} && ./install_prereq.sh {2} 2>&1 | tee '
+ 'log_install_prereq.txt'
.format(con.REMOTE_FW_DIR, con.DMM_SCRIPTS, arch), timeout=600)
if ret_code != 0:
- logger.error('Install the DMM error: {0}'.format(stderr))
- raise RuntimeError('Install the DMM failed')
+ logger.error('Install DMM error: {0}'.format(stderr))
+ raise RuntimeError('Install prereq failed')
else:
- logger.console('Install the DMM on {0} success!'.format(node['host']))
+ logger.console('Install DMM on {0} success!'.format(node['host']))
def setup_node(args):
"""Run all set-up methods for a node.