Project

General

Profile

Bug #40801

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

Added by Tim Serong 4 months ago. Updated 24 days ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
orchestrator
Target version:
-
Start date:
07/17/2019
Due date:
% 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 Need Review 10/01/2019

History

#1 Updated by Sebastian Wagner 4 months ago

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

#2 Updated by Sebastian Wagner 24 days ago

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

#3 Updated by Sebastian Wagner 24 days ago

  • Status changed from New to Closed

#4 Updated by Sebastian Wagner 24 days ago

  • Status changed from Closed to Duplicate

Also available in: Atom PDF