]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/osd/osd-config.sh: fix test to isolate cases
authorSage Weil <sage@redhat.com>
Fri, 26 May 2017 03:12:26 +0000 (23:12 -0400)
committerSage Weil <sage@redhat.com>
Fri, 26 May 2017 03:13:37 +0000 (23:13 -0400)
The third test (increasing osd_map_max_advance)
was triggering a warning from the 4th case (which
it didn't before).

Signed-off-by: Sage Weil <sage@redhat.com>
src/test/osd/osd-config.sh

index 2a924042a13749fcff917b70b61e3538131d10c5..6cb5eb2fd30f59304acb1ca1e95403b4c49bf0c9 100755 (executable)
@@ -86,6 +86,8 @@ function TEST_config_track() {
     ceph tell osd.0 injectargs "--osd-map-cache-size $cache" || return 1
     CEPH_ARGS='' ceph --admin-daemon $dir/ceph-osd.0.asok log flush || return 1
     ! grep 'is not > osd_map_max_advance' $dir/osd.0.log || return 1
+    rm $dir/osd.0.log
+    CEPH_ARGS='' ceph --admin-daemon $dir/ceph-osd.0.asok log reopen || return 1
 
     #
     # increase the osd_map_max_advance above the default cache_size
@@ -95,6 +97,8 @@ function TEST_config_track() {
     ceph tell osd.0 injectargs "--osd-map-max-advance $advance" || return 1
     CEPH_ARGS='' ceph --admin-daemon $dir/ceph-osd.0.asok log flush || return 1
     grep 'is not > osd_map_max_advance' $dir/osd.0.log || return 1
+    rm $dir/osd.0.log
+    CEPH_ARGS='' ceph --admin-daemon $dir/ceph-osd.0.asok log reopen || return 1
 
     #
     # increase the osd_pg_epoch_persisted_max_stale above the default cache_size
@@ -104,6 +108,8 @@ function TEST_config_track() {
     ceph tell osd.0 injectargs "--osd-pg-epoch-persisted-max-stale $stale" || return 1
     CEPH_ARGS='' ceph --admin-daemon $dir/ceph-osd.0.asok log flush || return 1
     grep 'is not > osd_pg_epoch_persisted_max_stale' $dir/osd.0.log || return 1
+    rm $dir/osd.0.log
+    CEPH_ARGS='' ceph --admin-daemon $dir/ceph-osd.0.asok log reopen || return 1
 }
 
 main osd-config "$@"