Skip to content

Commit

Permalink
Export PDSH_SSH_ARGS_APPEND so that pdsh can use ~/.ssh/cluster key
Browse files Browse the repository at this point in the history
Use use 'root' to connect to the compute nodes

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed May 12, 2023
1 parent 56803ce commit de52c8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/recipes/install/openeuler22.03/input.local.tests
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
11 changes: 6 additions & 5 deletions oe-22.03-recipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit de52c8c

Please sign in to comment.