Bug 1976175
| Summary: | [RFE] [dashborad] : CLI : Commands to return in requested format not just in json or plain | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Vasishta <vashastr> |
| Component: | Ceph-Dashboard | Assignee: | Nizamudeen <nia> |
| Status: | CLOSED DEFERRED | QA Contact: | Sayalee <saraut> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 5.0 | CC: | ceph-eng-bugs, mobisht, nia, pegonzal, sangadi, saraut |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | 9.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-08-28 07:57:44 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Closing this bug as it has been open for more than 2 years without any significant updates for the last couple of months. Please reopen if you think this bug is still relevant and needs to be addressed in an upcoming release |
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: