Project

General

Profile

Bug #40801

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

Added by Tim Serong about 1 year ago. Updated 8 months 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:

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

Duplicates RADOS - Bug #42113: ceph -h usage should indicate CephChoices --name= is sometime required Fix Under Review 10/01/2019

History

#1 Updated by Sebastian Wagner about 1 year ago

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

#2 Updated by Sebastian Wagner 11 months ago

  • Duplicates Bug #42113: ceph -h usage should indicate CephChoices --name= is sometime required added

#3 Updated by Sebastian Wagner 11 months ago

  • Status changed from New to Closed

#4 Updated by Sebastian Wagner 11 months ago

  • Status changed from Closed to Duplicate

#5 Updated by Sage Weil 8 months ago

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

Also available in: Atom PDF