Skip to content
Snippets Groups Projects
Commit d1bfee2e authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

COB-49: added infiniband mode test

parent 4cbcace6
No related branches found
No related tags found
1 merge request!6Import cobalt2 into lofar4
...@@ -5555,6 +5555,7 @@ SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-hello-world-between-nodes.tes ...@@ -5555,6 +5555,7 @@ SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-hello-world-between-nodes.tes
SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-hello-world.c -text SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-hello-world.c -text
SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-infiniband-between-nodes.test -text SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-infiniband-between-nodes.test -text
SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-to-all-nodes.test -text SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-to-all-nodes.test -text
SubSystems/Online_Cobalt/validation/cobalt/network/ib_mode.test -text
SubSystems/Online_Cobalt/validation/cobalt/network/resolvconf.test eol=lf SubSystems/Online_Cobalt/validation/cobalt/network/resolvconf.test eol=lf
SubSystems/Online_Cobalt/validation/intercluster/c3/cexec -text SubSystems/Online_Cobalt/validation/intercluster/c3/cexec -text
SubSystems/Online_Cobalt/validation/intercluster/connectivity/cobalt2cep.test eol=lf SubSystems/Online_Cobalt/validation/intercluster/connectivity/cobalt2cep.test eol=lf
......
#!/bin/bash -ve
source $(dirname $0)/../../validation_utils.sh
check_running_on_cobalt2
EXIT_CODE=0
for i in {201..213} ; do
NODE=cbm$i.control.lofar
RESULT=$(ssh $NODE "grep connected /sys/class/net/ib{0,1}/mode | wc -l | grep '^2$'")
if [ $? -eq 0 ] ; then
echo "ib mode on $NODE is 'connected'"
else
echo "ERROR: ib mode on $NODE is incorrect: $RESULT"
EXIT_CODE=1
fi
done
exit $EXIT_CODE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment