Project

General

Profile

Bug #40801

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

Added by Tim Serong over 4 years ago. Updated about 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

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 over 4 years ago

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

#2 Updated by Sebastian Wagner over 4 years ago

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

#3 Updated by Sebastian Wagner over 4 years ago

  • Status changed from New to Closed

#4 Updated by Sebastian Wagner over 4 years ago

  • Status changed from Closed to Duplicate

#5 Updated by Sage Weil about 4 years ago

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

Also available in: Atom PDF