Bug 1976175 - [RFE] [dashborad] : CLI : Commands to return in requested format not just in json or plain
Summary: [RFE] [dashborad] : CLI : Commands to return in requested format not just in ...
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 5.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: 7.1
Assignee: Pere Diaz Bou
QA Contact: Preethi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-25 12:12 UTC by Vasishta
Modified: 2023-08-17 11:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-404 0 None None None 2021-08-19 05:01:15 UTC
Red Hat Issue Tracker RHCSDASH-475 0 None None None 2021-08-19 05:02:06 UTC

Description Vasishta 2021-06-25 12:12:49 UTC
Description of problem:
Ceph dashboard cli commands returns in same format even though requested for different format using '-f' argument.
It would be nice if we can provide an option to check information in user required format 
Example json-pretty

Version-Release number of selected component (if applicable):
16.2.0-81.el8cp

How reproducible:
Always

Steps to Reproduce:
1. Configure a RHCS cluster
2.
3.

Actual results:
[root@e16-h18-b01-fc640 /]# ceph dashboard ac-user-show admin123 -f json-pretty

{"username": "admin123", "password": "$2b$12$L7NX2D9sBxhY.tgZk0Y0a.7py3jIhVPf6TY/6Fq8JkHMxH.beEjQ.", "roles": ["administrator"], "name": null, "email": null, "lastUpdate": 1624621239, "enabled": true, "pwdExpirationDate": null, "pwdUpdateRequired": false}
[root@e16-h18-b01-fc640 /]# ceph dashboard ac-user-show admin123 -f xml        
{"username": "admin123", "password": "$2b$12$L7NX2D9sBxhY.tgZk0Y0a.7py3jIhVPf6TY/6Fq8JkHMxH.beEjQ.", "roles": ["administrator"], "name": null, "email": null, "lastUpdate": 1624621239, "enabled": true, "pwdExpirationDate": null, "pwdUpdateRequired": false}

Expected results:
Try to retrieve information in json-pretty format from ceph dashboard commands

Additional info:


Note You need to log in before you can comment on or make changes to this bug.