Whamcloud - gitweb
LU-8305 tests: add traces for sanity-sec 90/20990/6
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 27 Jun 2016 08:58:09 +0000 (10:58 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 11 Aug 2016 05:51:05 +0000 (05:51 +0000)
Add more traces in sanity-sec.sh to help debug test failures.
Also add traces in mdt_get_root() function.

Test-Parameters: trivial testlist=sanity-sec,sanity-sec,sanity-sec,sanity-sec
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I52291dc1b7c815eb4a845d4cd6a9c926122d107b
Reviewed-on: http://review.whamcloud.com/20990
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
lustre/mdt/mdt_handler.c
lustre/tests/sanity-sec.sh

index f6b0e7a..0b31287 100644 (file)
@@ -380,6 +380,7 @@ static int mdt_get_root(struct tgt_session_info *tsi)
 
        nodemap_fileset = nodemap_get_fileset(exp->exp_target_data.ted_nodemap);
        if (nodemap_fileset && nodemap_fileset[0]) {
+               CDEBUG(D_INFO, "nodemap fileset is %s\n", nodemap_fileset);
                if (fileset) {
                        /* consider fileset from client as a sub-fileset
                         * of the nodemap one */
@@ -397,6 +398,7 @@ static int mdt_get_root(struct tgt_session_info *tsi)
        }
 
        if (fileset) {
+               CDEBUG(D_INFO, "Getting fileset %s\n", fileset);
                rc = mdt_lookup_fileset(info, fileset, &repbody->mbo_fid1);
                if (rc < 0)
                        GOTO(out, rc = err_serious(rc));
index 30bfeb2..bb537da 100755 (executable)
@@ -880,6 +880,8 @@ wait_nm_sync() {
        local mgs_ip=$(host_nids_address $mgs_HOST $NETTYPE | cut -d' ' -f1)
        local i
 
+       echo "On MGS ${mgs_ip}, ${proc_param} = $out1"
+
        # wait up to 10 seconds for other servers to sync with mgs
        for i in $(seq 1 10); do
                for node in $(all_server_nodes); do
@@ -891,6 +893,7 @@ wait_nm_sync() {
 
                    out2=$(do_node $node_ip $LCTL get_param \
                                   nodemap.$proc_param 2>/dev/null)
+                   echo "On $node ${node_ip}, ${proc_param} = $out2"
                    [ "$out1" != "$out2" ] && is_sync=false && break
                done
                $is_sync && break
@@ -1689,7 +1692,7 @@ test_27() {
 
        # test mount point content
        do_node ${clients_arr[0]} test -d $MOUNT/$subdir ||
-               error "fileset not cleared on nodemap c0"
+               (ls $MOUNT ; error "fileset not cleared on nodemap c0")
 
        fileset_test_cleanup
        nodemap_test_cleanup