Actions
Bug #63804
openmgr/restful module /request with body '{"prefix": "pg dump", "format": "json"}' fails with "access denied"
% Done:
0%
Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
When making a `/request` API request to mgr/restful module
curl 'https://zabbix:42c1e129-78f1-471e-bc6a-0b4e945830fe@192.168.64.5:8003/request?wait=20' \
-X POST \
-H "Content-Type: application/json" \
-k \
-d '{"prefix": "pg dump", "format": "json"}'
the request fails with a response
{
"failed": [
{ "command": "pg dump format=json", "outb": "", "outs": "access denied" }
],
"finished": [],
"has_failed": true,
"id": "140228453419272",
"is_finished": true,
"is_waiting": false,
"running": [],
"state": "failed",
"waiting": []
}
Expected result - the request succeeds returning same data as `ceph pg dumg -f json-pretty`
Should I even be using mgr/restful module for 3rd party integrations? I see 3 years old tasks about deprecating mgr/restful module in favor of ceph dashboard REST API (https://tracker.ceph.com/issues/47066). Still, I also see warnings about ceph dashboard REST API being under development and subject to change even in the latest reef documentation.
No data to display
Actions