GrepBoard/Manuals
605 manuals ·

Ceph Tentacle mgr restful module removed: use the Dashboard API

·Tested on Ceph Squid 19.2 · Tentacle 20.2 official docs and source · 2026-10·Test scope ↓·6 steps

Ceph Tentacle 20.2 removed the mgr restful module (port 8003). Check ceph mgr module ls before upgrading and move callers to the Dashboard REST API (/api).

console
$ ceph mgr module ls

Ceph Tentacle (20.2.0) removed the mgr restful module. The REST API on port 8003 is gone after the upgrade, so check whether you use the module while still on Squid, and move its callers to the REST API of the dashboard module (/api/…), which the release notes name as the alternative.

[1] Confirm the change in the source text. Under MGR for v20.2.0, the Tentacle release notes say "mgr/restful, mgr/zabbix: both modules, already deprecated since 2020, have been finally removed." and add "An alternative for the restful module is the dashboard module". At tag v20.2.4, [src/pybind/mgr](https://github.com/ceph/ceph/tree/v20.2.4/src/pybind/mgr) has no restful or zabbix directory, while dashboard is there. For zabbix, the notes only point to other monitoring solutions.

[2] Check whether the Squid cluster uses it. If restful appears among the enabled modules in ceph mgr module ls, it is in scope. List the API users created for it:

console
$ ceph restful list-keys

According to the Squid restful docs, the module accepts HTTPS on port 8003 on all IPv4 and IPv6 addresses by default; mgr/restful/server_addr and mgr/restful/server_port (or mgr/restful/$name/… per manager) change that. See whether they were changed:

console
$ ceph config dump | grep mgr/restful

[3] Find the callers. The restful API uses the UUID created by ceph restful create-key <user> as the password. The docs either embed user and key in the URL, as in https://api:<uuid>@<ceph-mgr>:<port>/server, or pass auth=("<user>", "<password>") in Python. Searching monitoring scripts and automation configs for port 8003, the mgr address, and the user names from [2] catches most of them.

[4] Turn it off on Squid before upgrading, while the change can still be undone, to see what breaks.

console
$ ceph mgr module disable restful$ ceph mgr module enable restful

The second line is the revert. Whatever alerting, dashboards or automation stop while it is off are what you need to migrate. What warning, if any, a cluster shows after upgrading to Tentacle with the module still enabled is not stated in the official docs checked; disabling it first avoids that case.

[5] Set up the Dashboard REST API. Per the Tentacle Dashboard docs, it listens on port 8443 with SSL, or 8080 with SSL disabled.

console
$ ceph mgr module enable dashboard$ ceph dashboard create-self-signed-cert$ ceph dashboard ac-user-create <username> -i <password-file> read-only$ ceph mgr services | jq .dashboard

Browsers warn about a self-signed certificate, and the docs recommend a CA-signed one for production. Built-in roles are administrator, read-only, block-manager, rgw-manager, cluster-manager, pool-manager and cephfs-manager. Give read-only monitoring the read-only role, and give automation that changes things only the role that job needs.

[6] Rewrite the calls. The Ceph RESTful API docs have you post a username and password to /api/auth for a token, then send that token and a version header with every request.

console
$ curl -X POST "https://example.com:8443/api/auth" \  -H "Accept: application/vnd.ceph.api.v1.0+json" \  -H "Content-Type: application/json" \  -d '{"username": "<username>", "password": "<password>"}'$ curl -X GET "https://example.com:8443/api/osd" \  -H "Accept: application/vnd.ceph.api.v1.0+json" \  -H "Authorization: Bearer <token>"

The Accept header selects the endpoint version; the docs say an unsupported major version returns 415.

restful (Squid)Dashboard API (Tentacle)
Port 8003 · user + UUID keyPort 8443 · token from /api/auth → Authorization: Bearer
/osd/api/osd
/mon/api/monitor (monitor details)
/server and othersFind the same resource in the endpoint list in the docs (for example /api/cluster for cluster status, /api/health/minimal for a short health report)
/request POST (mon command passthrough)No endpoint that passes arbitrary commands was found in the docs' endpoint list

Automation that sent arbitrary mon commands through /request may not port directly. Find the matching Dashboard API endpoint for each command it needs, or switch to calling the ceph CLI on an admin node.

For the whole upgrade order, see Ceph Squid 19.2 EOL (est. Oct 31, 2026): check ceph versions.

#ceph#mgr#restful#dashboard#api#tentacle