* The output of 'ceph status --format=json' or 'ceph -s --format=json'
has changed to return status information in a more structured and
usable format.
+
+* The 'ceph pg dump_stuck [threshold]' command used to require a
+ --threshold or -t prefix to the threshold argument, but now does
+ not.
parser.add_argument('-f', '--format', choices=['json', 'json-pretty',
'xml', 'xml-pretty', 'plain'], dest='output_format')
- # for pg dump_stuck
- parser.add_argument('--threshold', type=int, help='number of seconds for a pg to be considered stuck for pg dump_stuck')
# returns a Namespace with the parsed args, and a list of all extras
parsed_args, extras = parser.parse_known_args(args)
compat = True
if parsed_args.output_format:
childargs.extend(['--format', parsed_args.output_format])
- if parsed_args.threshold:
- childargs.extend(['--threshold', parsed_args.threshold])
ret, outbuf, outs = send_command(cluster_handle, target, childargs,
inbuf)
elif ret:
COMMAND("pg dump_stuck " \
"name=stuckops,type=CephChoices,strings=inactive|unclean|stale,n=N,req=false " \
"name=threshold,type=CephInt,req=false",
- "show information about stuck pgs [--threshold=seconds to consider stuck]",\
+ "show information about stuck pgs",\
"pg", "r", "cli,rest")
COMMAND("pg map name=pgid,type=CephPgid", "show mapping of pg to osds", \
"pg", "r", "cli,rest")
if parsed_args.output_format:
valid_dict['format'] = parsed_args.output_format
- if parsed_args.threshold:
- valid_dict['threshold'] = parsed_args.threshold
-
return valid_dict
def send_command(cluster, target=('mon', ''), cmd=[], inbuf='', timeout=0,