]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/standalone/osd/pg-split-merge: fix import_after_merge_and_gap
authorSage Weil <sage@redhat.com>
Fri, 1 Mar 2019 21:48:24 +0000 (15:48 -0600)
committerSage Weil <sage@redhat.com>
Sun, 3 Mar 2019 16:23:27 +0000 (10:23 -0600)
commit01316aa7bddff8baa3a515df6b38a39ff8a1a0ac
tree7fb0706b13d8d4174e5330c7ccf6a40026939b81
parent6bcd631101b808bd4ce1222c0ff6cadf3738d4ae
qa/standalone/osd/pg-split-merge: fix import_after_merge_and_gap

This test introduces a map gap.  What *should* happen is that when there is
such a gap, we cannot import.  Previously, the test didn't reliably produce
a map gap at all, and didn't check that import failed--it verified that it
passed.

Fix the test so that it reliably produces a gap *and* reports
min_last_epoch_clean to the mon so we can trim.  Then verify we fail to
import, but can with --force.  But remove the pg again, because if we
force an import with a map gap the osd will refuse to start.

Fixes: http://tracker.ceph.com/issues/38525
Signed-off-by: Sage Weil <sage@redhat.com>
qa/standalone/osd/pg-split-merge.sh