"scrub" was marked deprecated in
1814d7441bbb53a3d99c7a779a68b8f5e84fd169. this commit
was in turn included by v10.0.0. so it's long enough for its
retirement.
the test is updated accordingly
Signed-off-by: Kefu Chai <kchai@redhat.com>
{
# current DEPRECATED commands are:
# ceph compact
- # ceph scrub
#
# Testing should be accomplished by setting
# 'mon_debug_deprecated_as_obsolete = true' and expecting ENOTSUP for
expect_false ceph compact 2> $TMPFILE
check_response "\(EOPNOTSUPP\|ENOTSUP\): command is obsolete"
- expect_false ceph scrub 2> $TMPFILE
+ expect_false ceph config-key list 2> $TMPFILE
check_response "\(EOPNOTSUPP\|ENOTSUP\): command is obsolete"
ceph tell mon.* injectargs '--no-mon-debug-deprecated-as-obsolete'
FLAG(NOFORWARD)|FLAG(DEPRECATED))
COMMAND_WITH_FLAG("scrub", "scrub the monitor stores",
"mon", "rw",
- FLAG(DEPRECATED))
+ FLAG(OBSOLETE))
COMMAND("fsid", "show cluster FSID/UUID", "mon", "r")
COMMAND("log name=logtext,type=CephString,n=N",
"log supplied text to the monitor log", "mon", "rw")
return;
}
- if (prefix == "scrub" || prefix == "mon scrub") {
+ if (prefix == "mon scrub") {
wait_for_paxos_write();
if (is_leader()) {
int r = scrub_start();