From: Rishabh Dave Date: Wed, 20 Sep 2023 08:42:43 +0000 (+0530) Subject: qa/cephfs: fix build failure for mdtest project X-Git-Tag: v19.0.0~440^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6a2e94b3230b036f055227ae5337fe5a7e87e31c;p=ceph.git qa/cephfs: fix build failure for mdtest project To fix the mdtest job failure (which happens because building mdtest project fails) do - 1. Use ior projects intead of mdtest project bcecause latter was merged into former. See: https://github.com/MDTEST-LANL/mdtest/blob/master/README.md 2. Purge mpich package and then install it again. This is a vital step that's needed to build ior project on Ubuntu 22.04. Fixes: https://tracker.ceph.com/issues/61574 Signed-off-by: Rishabh Dave --- diff --git a/qa/suites/fs/multiclient/tasks/mdtest.yaml b/qa/suites/fs/multiclient/tasks/mdtest.yaml index c2bbd2fbe2904..797211ef5e179 100644 --- a/qa/suites/fs/multiclient/tasks/mdtest.yaml +++ b/qa/suites/fs/multiclient/tasks/mdtest.yaml @@ -3,18 +3,31 @@ tasks: - pexec: clients: - cd $TESTDIR - - wget http://download.ceph.com/qa/mdtest-1.9.3.tgz - - mkdir mdtest-1.9.3 - - cd mdtest-1.9.3 - - tar xvfz $TESTDIR/mdtest-1.9.3.tgz - - rm $TESTDIR/mdtest-1.9.3.tgz - - MPI_CC=mpicc make + - sudo apt purge -y mpich + - sudo apt install -y mpich + # use ior project instead of mdtest project because latter has been + # merged into former. See: + # https://github.com/MDTEST-LANL/mdtest/blob/master/README.md + - wget http://download.ceph.com/qa/ior-3.3.0.tar.bz2 + - tar xvfj ior-3.3.0.tar.bz2 + - cd ior-3.3.0 + # this option was set originall when mdtest binary was built using + # mdtest PR and not through ior project. + #- MPI_CC=mpicc make + - ./configure + - make + - make install DESTDIR=$TESTDIR/binary/ + - cd $TESTDIR/ + - sudo apt install -y tree + - tree binary/ + - rm ior-3.3.0.tar.bz2 + - rm -r ior-3.3.0 - ln -s $TESTDIR/mnt.* $TESTDIR/gmnt - ssh_keys: - mpi: - exec: $TESTDIR/mdtest-1.9.3/mdtest -d $TESTDIR/gmnt -I 20 -z 5 -b 2 -R + exec: $TESTDIR/binary/usr/local/bin/mdtest -d $TESTDIR/gmnt -I 20 -z 5 -b 2 -R - pexec: clients: + - rm -f $TESTDIR/gmnt/ior.testfile - rm -f $TESTDIR/gmnt - - rm -rf $TESTDIR/mdtest-1.9.3 - - rm -rf $TESTDIR/._mdtest-1.9.3 + - rm -rf $TESTDIR/binary