Project

General

Profile

Actions

Bug #40801

closed

ceph orchestrator cli alleges support for json-pretty, xml, xml-pretty formats

Added by Tim Serong almost 5 years ago. Updated over 4 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The _list_devices() and _list_services() methods of the orchestrator CLI both specify "name=format,type=CephChoices,strings=json|plain,req=false" for the format parameter, so it should only accept json or plain as formats. However, if I run `ceph orchestrator service ls --format=some-unsupported-thing`, I get:

ceph: error: argument -f/--format: invalid choice: 'json_pretty' (choose from 'json', 'json-pretty', 'xml', 'xml-pretty', 'plain')

Given those methods only support json and plain, I'd not expect to see json-pretty, xml or xml-pretty as available options.


Related issues 1 (1 open0 closed)

Is duplicate of RADOS - Bug #42113: ceph -h usage should indicate CephChoices --name= is sometime requiredFix Under Review10/01/2019

Actions
Actions #1

Updated by Sebastian Wagner almost 5 years ago

might be an idea to just remove the format parameter specification and just don't document it?

Actions #2

Updated by Sebastian Wagner over 4 years ago

  • Is duplicate of Bug #42113: ceph -h usage should indicate CephChoices --name= is sometime required added
Actions #3

Updated by Sebastian Wagner over 4 years ago

  • Status changed from New to Closed
Actions #4

Updated by Sebastian Wagner over 4 years ago

  • Status changed from Closed to Duplicate
Actions #5

Updated by Sage Weil over 4 years ago

  • Project changed from mgr to Orchestrator
  • Category deleted (orchestrator)
Actions

Also available in: Atom PDF