From b73978b5e80602663b803e0b75e4eec8e5f7934a Mon Sep 17 00:00:00 2001 From: Douglas Jacobsen Date: Fri, 4 Oct 2024 11:16:09 -0600 Subject: [PATCH] Ensure ssh is used when executing pdsh commands This commit configured the rcmd module for pdsh to be ssh in existing pdsh uses. This gets around an issue where a machine might not have a default rcmd module, and as a result pdsh fails to execute remote commands. --- var/ramble/repos/builtin/modifiers/gcp-metadata/modifier.py | 2 +- var/ramble/repos/builtin/modifiers/tuned-adm/modifier.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/var/ramble/repos/builtin/modifiers/gcp-metadata/modifier.py b/var/ramble/repos/builtin/modifiers/gcp-metadata/modifier.py index a1dca3d0c..cafaad8d4 100644 --- a/var/ramble/repos/builtin/modifiers/gcp-metadata/modifier.py +++ b/var/ramble/repos/builtin/modifiers/gcp-metadata/modifier.py @@ -74,7 +74,7 @@ def gcp_metadata_exec(self, executable_name, executable, app_inst=None): prefix = "" suffix = "" if per_node: - prefix = "pdsh -N -w {hostlist} '" + prefix = "pdsh -R ssh -N -w {hostlist} '" suffix = "'" log_name = end_point.split("/")[-1] pre_cmds.append( diff --git a/var/ramble/repos/builtin/modifiers/tuned-adm/modifier.py b/var/ramble/repos/builtin/modifiers/tuned-adm/modifier.py index f510dc18d..11d1a174c 100644 --- a/var/ramble/repos/builtin/modifiers/tuned-adm/modifier.py +++ b/var/ramble/repos/builtin/modifiers/tuned-adm/modifier.py @@ -44,8 +44,8 @@ class TunedAdm(BasicModifier): def set_tuning_profile(self): return [ - "pdsh -w {hostlist} sudo tuned-adm profile {tuned-profile}", - "pdsh -w {hostlist} sudo tuned-adm active > {experiment_run_dir}/tuning_profile", + "pdsh -R ssh -w {hostlist} sudo tuned-adm profile {tuned-profile}", + "pdsh -R ssh -w {hostlist} sudo tuned-adm active > {experiment_run_dir}/tuning_profile", ] def _prepare_analysis(self, workspace):