From a47cb1c3646784c7a2a66a9b981c902c86832306 Mon Sep 17 00:00:00 2001 From: liuchang0812 Date: Mon, 3 Jul 2017 16:31:31 +0800 Subject: [PATCH] test: add test of ceph compact command Signed-off-by: liuchang0812 (cherry picked from commit d1f24d053f367511cf12a43350bad246c5f28c9f) Conflicts: qa/workunits/cephtool/test.sh Removed all tests which are not part of this backport --- qa/workunits/cephtool/test.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 192f03841faf9..ab952f6f69ca5 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1852,6 +1852,12 @@ function test_mon_stdin_stdout() ceph config-key get test_key -o - | grep -c foo | grep -q 1 } +function test_osd_compact() +{ + ceph tell osd.1 compact + ceph daemon osd.1 compact +} + # # New tests should be added to the TESTS array below # @@ -1895,6 +1901,7 @@ MON_TESTS+=" mon_stdin_stdout" OSD_TESTS+=" osd_bench" OSD_TESTS+=" osd_negative_filestore_merge_threshold" OSD_TESTS+=" tiering_agent" +OSD_TESTS+=" osd_compact" MDS_TESTS+=" mds_tell" MDS_TESTS+=" mon_mds" -- 2.39.5