Whamcloud - gitweb
LU-11645 tests: fix sanity-sec test 31 22/33622/2
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 8 Nov 2018 07:55:01 +0000 (16:55 +0900)
committerOleg Drokin <green@whamcloud.com>
Tue, 27 Nov 2018 04:57:38 +0000 (04:57 +0000)
In sanity-sec test 31, command to add new LNet network ${NETTYPE}999
may fail if servers have interface names different from the one used
on the client.
So fix the command so that it is run directly on each node.

Test-Parameters: trivial envdefinitions=ONLY=31 testlist=sanity-sec
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Ibf9101524d94188b3beae3debe45e2ba151999ca
Reviewed-on: https://review.whamcloud.com/33622
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sonia Sharma <sharmaso@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-sec.sh

index c5d9663..8410b84 100755 (executable)
@@ -2232,8 +2232,8 @@ test_31() {
        # add network ${NETTYPE}999 on all nodes
        do_nodes $(comma_list $(all_nodes)) \
                 "$LNETCTL lnet configure && $LNETCTL net add --if \
-                 $($LNETCTL net show --net $net | awk 'BEGIN{inf=0} \
-                 {if (inf==1) print $2; fi; inf=0} /interfaces/{inf=1}') \
+                 \$($LNETCTL net show --net $net | awk 'BEGIN{inf=0} \
+                 {if (inf==1) print \$2; fi; inf=0} /interfaces/{inf=1}') \
                  --net ${NETTYPE}999" ||
                error "unable to configure NID ${NETTYPE}999"