From de52c8c7ae0338f27e95983e00552f12e2f9fc72 Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Wed, 10 May 2023 09:49:28 +0300 Subject: [PATCH] Export PDSH_SSH_ARGS_APPEND so that pdsh can use ~/.ssh/cluster key Use use 'root' to connect to the compute nodes Signed-off-by: Martin Tzvetanov Grigorov --- docs/recipes/install/openeuler22.03/input.local.tests | 1 + oe-22.03-recipe.sh | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/recipes/install/openeuler22.03/input.local.tests b/docs/recipes/install/openeuler22.03/input.local.tests index 18d2b157f8..a72cf0fcd3 100644 --- a/docs/recipes/install/openeuler22.03/input.local.tests +++ b/docs/recipes/install/openeuler22.03/input.local.tests @@ -15,3 +15,4 @@ num_computes=${#c_ip[@]} bmc_username=root bmc_password=openhpc12#$ export CHROOT=/opt/ohpc/admin/images/openeuler22.03 +provision_wait="${provision_wait:-180}" diff --git a/oe-22.03-recipe.sh b/oe-22.03-recipe.sh index fb92f663dd..8a80087538 100755 --- a/oe-22.03-recipe.sh +++ b/oe-22.03-recipe.sh @@ -484,12 +484,13 @@ systemctl enable munge systemctl enable slurmctld systemctl start munge systemctl start slurmctld -pdsh -w $compute_prefix[1-4] systemctl start munge -pdsh -w $compute_prefix[1-4] systemctl start slurmd +export PDSH_SSH_ARGS_APPEND="-i $HOME/.ssh/cluster" +pdsh -l root -w $compute_prefix[1-3] systemctl start munge +pdsh -l root -w $compute_prefix[1-3] systemctl start slurmd # Optionally, generate nhc config -pdsh -w c1 "/usr/sbin/nhc-genconf -H '*' -c -" | dshbak -c -useradd -m test +pdsh -l root -w c1 "/usr/sbin/nhc-genconf -H '*' -c -" | dshbak -c +getent passwd test > /dev/null || useradd -m test wwsh file resync passwd shadow group sleep 2 -pdsh -w $compute_prefix[1-4] /warewulf/bin/wwgetfiles +pdsh -l root -w $compute_prefix[1-3] /warewulf/bin/wwgetfiles