Skip to content
Snippets Groups Projects
Commit e3d892d6 authored by Auke Klazema's avatar Auke Klazema
Browse files

Merge branch 'SW-931-fix-cobalt-tests' into 'master'

Resolve SW-931 "Fix cobalt tests"

Closes SW-931

See merge request !221
parents 1b2cf4fd 7816a56d
No related branches found
No related tags found
1 merge request!221Resolve SW-931 "Fix cobalt tests"
...@@ -10,7 +10,8 @@ for i in {201..213} ; do ...@@ -10,7 +10,8 @@ for i in {201..213} ; do
# the following interfaces need to be connected # the following interfaces need to be connected
# 10GB03 and 10GB07 are spares and do not need to connected at this moment # 10GB03 and 10GB07 are spares and do not need to connected at this moment
for INTERFACE in 10GB01 10GB02 10GB04 10GB05 10GB06 ; do for INTERFACE in 10GB01 10GB02 10GB04 10GB05 10GB06 ; do
RESULT=$(ssh $NODE netstat -i | grep $INTERFACE | awk '{ print $2 }') # Avoid grepping VLANs by not accepting interfaces followed by a . (f.e. 10GB06.2201)
RESULT=$(ssh $NODE netstat -i | grep "$INTERFACE[^.]" | awk '{ print $2 }')
if [ $? -eq 0 ] && [ "$RESULT" -eq "9000" ] ; then if [ $? -eq 0 ] && [ "$RESULT" -eq "9000" ] ; then
echo "$NODE : interface $INTERFACE has correct MTU of $RESULT" echo "$NODE : interface $INTERFACE has correct MTU of $RESULT"
else else
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
# Our own hostname must be resolvable # Our own hostname must be resolvable
for i in {201..213} ; do for i in {201..213} ; do
ssh cbm$i systemctl status tuned.service | grep "Active: inactive" || exit 1 # check for tuned.service to be NOT active, as we then also catch the case in which it is not installed in the first place
ssh cbm$i systemctl status tuned.service | grep "Active: active" && exit 1
done done
exit 0 exit 0
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