From 5674158163e9c1d50985796931240b237676b74d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 3 Jul 2012 11:32:57 -0700 Subject: [PATCH] ceph: fix cli help test Signed-off-by: Sage Weil --- src/test/cli/ceph/help.t | 91 ++++++++++++++++++++++++++++++++-------- 1 file changed, 73 insertions(+), 18 deletions(-) diff --git a/src/test/cli/ceph/help.t b/src/test/cli/ceph/help.t index 447a2e53f3762..16667a5ad91f0 100644 --- a/src/test/cli/ceph/help.t +++ b/src/test/cli/ceph/help.t @@ -1,23 +1,78 @@ # TODO help should not fail $ ceph --help - usage: ceph [options] [commands] + usage: + ceph [options] [command] + ceph -s cluster status summary + ceph -w running cluster summary and events + If no commands are specified, enter interactive mode. - Commands: - (osd|pg|mds) stat -- get monitor subsystem status - ... - Options: - -i infile - -o outfile - specify input or output file (for certain commands) - -s or --status - print current system status - -w or --watch - watch system status changes in real time (push) - --conf/-c Read configuration from the given configuration file - -d Run in foreground, log to stderr. - -f Run in foreground, log to usual location. - --id/-i set ID portion of my name - --name/-n set name (TYPE.ID) - --version show version and quit + + CLUSTER COMMANDS + ceph health [detail] + ceph quorum_status + ceph -m mon_status + + AUTHENTICATION (AUTH) COMMANDS + ceph auth get-or-create[-key] [capsys1 capval1 [...]] + ceph auth del + ceph auth list + + METADATA SERVER (MDS) COMMANDS + ceph mds stat + ceph mds tell injectargs '-- [-- ...]' + + MONITOR (MON) COMMANDS + ceph mon add [:] + ceph mon delete + ceph mon stat + ceph mon tell injectargs '-- [-- ...]' + + OBJECT STORAGE DEVICE (OSD) COMMANDS + ceph osd dump [--format=json] + ceph osd tree + ceph osd down + ceph osd in + ceph osd out + ceph osd set + ceph osd unset + ceph osd pause + ceph osd unpause + ceph osd tell injectargs '-- [-- ...]' + ceph osd getcrushmap -o + ceph osd getmap -o + ceph osd crush set [ [ ...]] + ceph osd crush move [ ...] + ceph osd crush reweight + ceph osd create [] + ceph osd rm [...] + ceph osd lost [--yes-i-really-mean-it] + ceph osd reweight + ceph osd blacklist add
[:source_port] [time] + ceph osd blacklist rm
[:source_port] + ceph osd pool mksnap + ceph osd pool rmsnap + ceph osd pool create [ []] + ceph osd pool delete + ceph osd pool rename + ceph osd pool set + ceph osd scrub + ceph osd repair + ceph osd tell N bench [bytes per write] [total bytes] + + PLACEMENT GROUP (PG) COMMANDS + ceph pg dump + ceph pg query + ceph pg scrub + ceph pg map + + OPTIONS + -o Write out to + -i Read input from (for some commands) + --conf/-c Read configuration from the given configuration file + -d Run in foreground, log to stderr. + -f Run in foreground, log to usual location. + --id/-i set ID portion of my name + --name/-n set name (TYPE.ID) + --version show version and quit [1] -- 2.39.5