diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 56ccbf562d1fc7f540e79a4b0b4fdbd46eba1148..23f1d70b9db1f7226d13ea6900a01c6bc7d0d954 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -408,6 +408,7 @@ ubuntu1604_test_x86_64:
     - cp -r common/test/js $INSTALL_DIR/tools/test
     - export PPROF_PATH=$INSTALL_DIR/bin/pprof;
     - source $INSTALL_DIR/chaos_env.sh
+    - if [ -n "$USE_MDS_CONFIG" ];then echo "* Using $USE_MDS_CONFIG" ; cp $USE_MDS_CONFIG $INSTALL_DIR/etc/mds.cfg;fi
     - if ! $INSTALL_DIR/bin/TestFramework;then export HEAPCHECK=strict; echo "*retrying with heap check"; $INSTALL_DIR/bin/TestFramework; exit 1;fi
     - if ! $INSTALL_DIR/tools/chaos_test.sh -k -d $INSTALL_DIR/tools/test;then tar cfvz $DISTRIB_NAME-log-bad.tar.gz -C /usr/local/chaos/chaos-distrib log;echo "* retrying test in debug mode";export CHAOS_DEBUG_CMD_TOOL="gdb";if ! $INSTALL_DIR/tools/chaos_test.sh -k -d $INSTALL_DIR/tools/test;then tar cfvz $DISTRIB_NAME-log-debug.tar.gz -C /usr/local/chaos/chaos-distrib log;fi;exit 1;fi
     - $INSTALL_DIR/tools/chaos_services.sh stop
@@ -443,6 +444,7 @@ ubuntu1804_test_x86_64:
     - repo sync
     - cp -r tools $INSTALL_DIR
     - cp -r common/test/js $INSTALL_DIR/tools/test
+    - if [ -n "$USE_MDS_CONFIG" ];then echo "* Using $USE_MDS_CONFIG" ; cp $USE_MDS_CONFIG $INSTALL_DIR/etc/mds.cfg;fi    
     - source $INSTALL_DIR/chaos_env.sh
     - $INSTALL_DIR/bin/TestFramework
     - if ! $INSTALL_DIR/tools/chaos_test.sh -k -d $INSTALL_DIR/tools/test;then tar cfvz $DISTRIB_NAME-log-bad.tar.gz -C /usr/local/chaos/chaos-distrib log;echo "* retrying test in debug mode";export CHAOS_DEBUG_CMD_TOOL="gdb";if ! $INSTALL_DIR/tools/chaos_test.sh -k -d $INSTALL_DIR/tools/test;then tar cfvz $DISTRIB_NAME-log-debug.tar.gz -C /usr/local/chaos/chaos-distrib log;echo "* retrying test in sanitize mode";if ! CHAOS_SERVICE_ENV="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.5" $INSTALL_DIR/tools/chaos_test.sh -k -d $INSTALL_DIR/tools/test;then tar cfvz $DISTRIB_NAME-log-sanitize.tar.gz -C /usr/local/chaos/chaos-distrib log;fi;fi;exit 1;fi
@@ -481,6 +483,7 @@ ubuntu1804_test_profile_x86_64:
     - cp -r common/test/js $INSTALL_DIR/tools/test/
     - export PPROF_PATH=$INSTALL_DIR/bin/pprof;
     - source $INSTALL_DIR/chaos_env.sh
+    - if [ -n "$USE_MDS_CONFIG" ];then echo "* Using $USE_MDS_CONFIG" ; cp $USE_MDS_CONFIG $INSTALL_DIR/etc/mds.cfg;fi    
     - HEAPCHECK=normal; LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtcmalloc.so $INSTALL_DIR/bin/TestFramework;
     - if ! $INSTALL_DIR/tools/chaos_test.sh -k -d $INSTALL_DIR/tools/test;then tar cfvz $DISTRIB_NAME-log-bad.tar.gz -C /usr/local/chaos/chaos-distrib log ;exit 1;fi
     - $INSTALL_DIR/tools/chaos_services.sh stop
@@ -522,6 +525,7 @@ centos7_test_x86_64:
     - cp -r tools $INSTALL_DIR
     - cp -r common/test/js $INSTALL_DIR/tools/test
     - source $INSTALL_DIR/chaos_env.sh
+    - if [ -n "$USE_MDS_CONFIG" ];then echo "* Using $USE_MDS_CONFIG" ; cp $USE_MDS_CONFIG $INSTALL_DIR/etc/mds.cfg;fi    
     - if ! $INSTALL_DIR/bin/TestFramework;then export HEAPCHECK=strict; echo "*retrying with heap check"; $INSTALL_DIR/bin/TestFramework; exit 1;fi
     - if ! $INSTALL_DIR/tools/chaos_test.sh -k -d $INSTALL_DIR/tools/test;then export HEAPCHECK=normal; tar cfvz $DISTRIB_NAME-log-bad.tar.gz -C /usr/local/chaos/chaos-distrib log;echo "* retrying test in debug mode";export CHAOS_DEBUG_CMD_TOOL="gdb";if ! $INSTALL_DIR/tools/chaos_test.sh -k -d $INSTALL_DIR/tools/test;then tar cfvz $DISTRIB_NAME-log-debug.tar.gz -C /usr/local/chaos/chaos-distrib log;fi;exit 1;fi
     - $INSTALL_DIR/tools/chaos_services.sh stop
@@ -559,6 +563,7 @@ ubuntu1404_test_x86_64:
     - cp -r common/test/js $INSTALL_DIR/tools/test
     - source $INSTALL_DIR/chaos_env.sh
     - export PPROF_PATH=$INSTALL_DIR/bin/pprof
+    - if [ -n "$USE_MDS_CONFIG" ];then echo "* Using $USE_MDS_CONFIG" ; cp $USE_MDS_CONFIG $INSTALL_DIR/etc/mds.cfg;fi    
     - if ! $INSTALL_DIR/bin/TestFramework;then export HEAPCHECK=strict; echo "*retrying with heap check"; $INSTALL_DIR/bin/TestFramework; exit 1;fi
     - if ! $INSTALL_DIR/tools/chaos_test.sh -k -d $INSTALL_DIR/tools/test;then export HEAPCHECK=normal;     tar cfvz $DISTRIB_NAME-log-bad.tar.gz -C /usr/local/chaos/chaos-distrib log;echo "* retrying test in debug mode";export CHAOS_DEBUG_CMD_TOOL="gdb";if ! $INSTALL_DIR/tools/chaos_test.sh -k -d $INSTALL_DIR/tools/test;then tar cfvz $DISTRIB_NAME-log-debug.tar.gz -C /usr/local/chaos/chaos-distrib log;fi;exit 1;fi
     - $INSTALL_DIR/tools/chaos_services.sh stop