Skip to content

Commit

Permalink
qa/standalone/osd/osd-markdown: disable CLI command dups
Browse files Browse the repository at this point in the history
The markdown test is based on marking down a specific number of times, but
the duplicate commands from the CLI may not get absorbed/batched by the
mon, breaking the test.  Override the default qa/tasks/workunit.py
behavior of sending dups.

Fixes: http://tracker.ceph.com/issues/38359
Signed-off-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Feb 18, 2019
1 parent a941e28 commit c6a7b2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qa/standalone/osd/osd-markdown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ function markdown_N_impl() {
ceph osd tree
ceph osd tree | grep osd.0 |grep up || return 1
# mark the OSD down.
ceph osd down 0
# override any dup setting in the environment to ensure we do this
# exactly once (modulo messenger failures, at least; we can't *actually*
# provide exactly-once semantics for mon commands).
CEPH_CLI_TEST_DUP_COMMAND=0 ceph osd down 0
sleep $sleeptime
done
}
Expand Down

0 comments on commit c6a7b2c

Please sign in to comment.