diff --git a/doc/man/8/ceph.rst b/doc/man/8/ceph.rst index 81c5447e70f..679963548b6 100644 --- a/doc/man/8/ceph.rst +++ b/doc/man/8/ceph.rst @@ -982,7 +982,7 @@ Subcommand ``reweight-by-pg`` reweight OSDs by PG distribution Usage:: ceph osd reweight-by-pg {<int[100-]>} {<poolname> [<poolname...]} - {--no-increasing} {--yes-i-really-mean-it} + {--no-increasing} Subcommand ``reweight-by-utilization`` reweight OSDs by utilization [overload-percentage-for-consideration, default 120]. @@ -990,7 +990,7 @@ Subcommand ``reweight-by-utilization`` reweight OSDs by utilization Usage:: ceph osd reweight-by-utilization {<int[100-]>} - {--no-increasing} {--yes-i-really-mean-it} + {--no-increasing} Subcommand ``rm`` removes osd(s) <id> [<id>...] in the cluster. diff --git a/src/test/pybind/test_ceph_argparse.py b/src/test/pybind/test_ceph_argparse.py index a652d8742d4..edf29f3e0fa 100755 --- a/src/test/pybind/test_ceph_argparse.py +++ b/src/test/pybind/test_ceph_argparse.py @@ -1111,11 +1111,8 @@ class TestOSD(TestArgparse): def test_reweight_by_utilization(self): self.assert_valid_command(['osd', 'reweight-by-utilization']) self.assert_valid_command(['osd', 'reweight-by-utilization', '100']) + self.assert_valid_command(['osd', 'reweight-by-utilization', '100', '.1']) self.assert_valid_command(['osd', 'reweight-by-utilization', '--no-increasing']) - self.assert_valid_command(['osd', 'reweight-by-utilization', '--yes-i-really-mean-it']) - assert_equal({}, validate_command(sigdict, ['osd', - 'reweight-by-utilization', - '50'])) assert_equal({}, validate_command(sigdict, ['osd', 'reweight-by-utilization', '100',