Install
openclaw skills install @zw008/ceph-aiopsUse this skill whenever the user needs to operate or diagnose a Ceph cluster via its ceph-mgr Dashboard REST API — decode a HEALTH_WARN/ERR state into cause + action (cluster_health), read the cluster status, inspect OSDs (tree/df/perf), placement groups (summary/stuck/scrub), pools (list/usable capacity), RBD images and snapshots, CephFS/MDS and RGW status, monitors/managers, slow ops and capacity forecast — plus governed writes (set cluster flags, reweight/mark-in/mark-out/purge OSDs, trigger scrubs, set pool quota/pg_num/autoscale/size, create/delete pools, create/delete RBD images and snapshots, throttle recovery/backfill). Always use this skill for "ceph health", "what does this HEALTH_WARN mean", "PG_DEGRADED / OSD_NEARFULL / SLOW_OPS / MON_DOWN", "ceph -s", "which OSD is most full", "drain an OSD", "purge an OSD", "stuck PGs", "overdue scrub", "pool usable capacity", "set pool size / quota", "rebalance is too slow / throttle backfill", "RBD image or snapshot", "MDS behind on trimming", "RGW large omap", "mon quorum", or "days to nearfull" when the context is a Ceph cluster (cephadm, hypervisor-bundled Ceph, or MicroCeph). Do NOT use when the target is not Ceph — a hypervisor, a different storage appliance, a backup product, a Kubernetes cluster, or a network device. Route those to the appropriate other AIops-tools skill (negative routing hint only). Common Ceph ops with a built-in governance harness (audit, policy, token budget, undo, risk-tiers).
openclaw skills install @zw008/ceph-aiopsDisclaimer: Community-maintained open-source project, not affiliated with, endorsed by, or sponsored by the Ceph project or any storage vendor. Product and trademark names belong to their owners. Source at github.com/AIops-tools/Ceph-AIops under the MIT license.
Governed Ceph operations via the ceph-mgr Dashboard REST API — 37 MCP tools, every one wrapped with the bundled @governed_tool harness: a local unified audit log under ~/.ceph-aiops/, token/runaway budget guard, undo-token recording, and descriptive risk tiers. The Dashboard password is stored encrypted (~/.ceph-aiops/secrets.enc, Fernet + scrypt) — never plaintext on disk. The flagship cluster_health turns raw HEALTH_WARN/ERR check codes into plain-language cause + suggested action.
Standalone: the governance harness is bundled in the package (
ceph_aiops.governance) — ceph-aiops has no external skill-family dependency. Works against vanilla ceph-mgr (cephadm / hypervisor-bundled / MicroCeph); no croit, no Kubernetes.
| Group | Tools | Count | Read or Write |
|---|---|---|---|
| Health | cluster_health (flagship RCA), cluster_status | 2 | 2 read |
| OSD | osd_tree, osd_df, osd_perf | 3 | 3 read |
| cluster_flag_set, osd_reweight, osd_mark_in, osd_mark_out, osd_purge | 5 | 5 write | |
| PG | pg_summary, pg_dump_stuck, scrub_status | 3 | 3 read |
| trigger_scrub, trigger_deep_scrub | 2 | 2 write | |
| Pool | pool_ls, pool_df | 2 | 2 read |
| set_pool_quota, set_pool_pg_num, set_pool_autoscale, pool_create, set_pool_size, pool_delete | 6 | 6 write | |
| RBD | rbd_ls | 1 | 1 read |
| rbd_image_create, rbd_snapshot_create, rbd_image_delete, rbd_snapshot_delete | 4 | 4 write | |
| CephFS / RGW | cephfs_status, rgw_status | 2 | 2 read |
| Cluster-ops | mon_status, mgr_status, slow_ops, capacity_forecast | 4 | 4 read |
| throttle_recovery | 1 | 1 write | |
| Undo | undo_list, undo_apply | 2 | 2 undo |
Totals: 37 tools — 17 read, 18 write, 2 undo. The MCP server exposes all 37; the CLI is a convenience subset.
uv tool install ceph-aiops
ceph-aiops init # interactive wizard: mgr host/port/username + encrypted Dashboard password
ceph-aiops doctor
cluster_health / health detail) — cause + action per active check (PG_DEGRADED, OSD_NEARFULL, SLOW_OPS, MON_DOWN, LARGE_OMAP_OBJECTS, …)overview): HEALTH status + active checks + OSD up/in countsosd_tree / osd_df most-full first / osd_perf slowest first), PGs (pg_summary / pg_dump_stuck / scrub_status), pools (pool_ls / pool_df usable capacity)slow_ops), MDS trimming lag (cephfs_status), RGW large-omap (rgw_status), mon quorum (mon_status), and days-to-nearfull (capacity_forecast)Do NOT use when the target is not Ceph (a hypervisor, another storage appliance, a backup product, a container cluster, or a network device). Route those to the appropriate other AIops-tools skill.
| If the user wants… | Use |
|---|---|
| Ceph: HEALTH_WARN RCA, OSD/PG/pool/RBD/CephFS/RGW, rebalance, slow ops | ceph-aiops (this skill) |
| Any non-Ceph target (hypervisor, other storage, backup, cluster, network) | the appropriate other AIops-tools skill |
ceph-aiops doctor → confirm the mgr Dashboard is reachable and the JWT login works before trusting anything elseceph-aiops overview → HEALTH status, the list of active check codes, and OSD up/in counts in one shotceph-aiops health detail (MCP: cluster_health) → each active check translated into what it means, the likely cause, and a suggested actionPG_DEGRADED → pg_dump_stuck; OSD_NEARFULL → ceph-aiops osd df (most-full first); SLOW_OPS → slow_ops; MON_DOWN → mon_status; LARGE_OMAP_OBJECTS → rgw_statusdoctor fails on auth, the Dashboard password is wrong or the store is locked — re-run ceph-aiops secret set <target> (or export CEPH_AIOPS_MASTER_PASSWORD for non-interactive use). If doctor fails on reachability, the mgr dashboard module is likely not enabled; no read is issued against an unauthenticated session.ceph-aiops health detail → confirm the OSD is genuinely the problem (e.g. OSD_SLOW_PING_TIME, repeated SLOW_OPS on one id) rather than a cluster-wide symptomceph-aiops osd df → confirm the id, and that the remaining OSDs have room to absorb its data before you drain anythingceph-aiops osd reweight <id> 0.0 → start a gradual drain; reversible, the prior CRUSH weight is captured as the undo descriptorceph-aiops osd out <id> --dry-run, then re-run without --dry-run → high risk, double confirmation, needs CEPH_AUDIT_APPROVED_BYceph-aiops health status / pg_summary to show all PGs active+clean — do not purge while backfill is runningceph-aiops osd purge <id> --dry-run, then re-run without --dry-run → high, irreversibleceph-aiops undo list then ceph-aiops undo apply <id> restores the prior weight (and osd_mark_in reverses the mark-out). Purge has no undo, which is exactly why it comes last and after active+clean.ceph-aiops health detail → confirm the cluster is actually backfilling/recovering (PG_DEGRADED, PG_BACKFILL_FULL) rather than hitting a different bottleneckslow_ops → check whether client requests are genuinely being blocked, and by which OSDsthrottle_recovery(max_backfills=1, recovery_max_active=1) → med risk, reversible; the prior osd_max_backfills / osd_recovery_max_active are captured as the undo descriptorslow_ops and pg_summary — recovery is slower but client latency should recoverceph-aiops undo apply <id> to restore the exact prior settings)osd_perf (slowest OSDs first) and mon_status; do not keep lowering the throttle, you will only extend the degraded window.ceph-aiops overview → look for POOL_NEARFULL / OSD_NEARFULL among the active checkspool_df → per-pool usage with usable capacity = raw ÷ size (a size=3 pool reports a third of raw — this is where most "but the disks aren't full" confusion comes from)capacity_forecast → days-to-nearfull at the current fill rate, so you know whether this is a this-week problem or a this-quarter oneset_pool_quota (med, undo → prior quota) or set_pool_autoscale (med, undo) to let pg_num track the new sizeset_pool_size --dry-run then the real call — high risk, because lowering size reduces durability and any change forces cluster-wide data movementthrottle_recovery) rather than reverting the size mid-flight; if the size change itself was wrong, ceph-aiops undo apply <id> replays the recorded prior value — but expect a second full rebalance.The skill delivers reads and writes and records them; it does not decide whether a write is permitted. That is your agent's judgement, or the permission of the account you connect it with (a ceph-mgr Dashboard account with a read-only role — writes then fail at the mgr). There is no read-only switch, policy file, or approval gate.
~/.ceph-aiops/audit.db (relocatable via CEPH_AIOPS_HOME): params, result, status, duration, and the risk tier. The CLI writes the same row the MCP path does.CEPH_AUDIT_APPROVED_BY / CEPH_AUDIT_RATIONALE are optional annotations recorded on the audit row (who/why); they are never required and never block.CEPH_RUNAWAY_MAX=0.--dry-run / dry_run=True and double confirmation at the CLI.osd_reweight→restore prior weight, cluster_flag_set→toggle back); irreversible ops (osd_purge, pool_delete, RBD deletes) record only the before-state.references/capabilities.md — full tool → API-path → returns referencereferences/cli-reference.md — CLI command referencereferences/setup-guide.md — onboarding, credentials, and connectivity