Skip to content

Repository files navigation

otto

otto is a CLI tool for analyzing and managing Ceph clusters. You can think of Otto as your personal Dr. Octopus for Ceph.

Installation

Download the latest binary:

curl -O  https://s3.clyso.com/otto/latest/otto
chmod +x otto

Binary releases are also available at https://github.com/clyso/otto/releases

Releases are also available per tag:

curl -O  https://s3.clyso.com/otto/<RELEASE_TAG>/otto

For more information on how this gets built see the Development Guide - Binary Compatability

Usage

Analyze cluster health

ceph report > report.json
otto checkup --ceph_report_json=report.json

Example output:

Running tests: .!XX...X.!!.....X..............!X..

Overall score: 28 out of 35 (F)

- WARN in Version/Major Release: Not running the recommended major release quincy v17
- FAIL in Version/Minor Release: Not running the recommended minor bugfix release for pacific
- FAIL in Version/Check for Known Issues in Running Version: CRITICAL: Found 1 high severity bugs(s) in running version 16.2.10
- FAIL in Pools/Recommended Flags: Some pools have missing flags
- WARN in Pools/Pool Autoscale Mode: pg_autoscaler is on which may cause unexpected data movement
- WARN in Pools/RBD Pools: Too many RBD pools
- FAIL in Pools/Pool Space Amplification: Some pools have high space amplification
- WARN in OSD Health/OSD host swap: All OSD hosts have swap enabled
- FAIL in OSD Health/Check number of osdmaps stored: Cluster has too many osdmaps (185437)

Use --verbose or --summary for details and recommendations

Machine-readable output

For cron, CI, or monitoring, emit the full result document as JSON:

otto cluster checkup --ceph_report_json=report.json --format json

--format json writes the complete result to stdout (warnings go to stderr, so stdout stays valid JSON). The document has the shape {"summary": {...}, "sections": [...]}.

Requirements

  • Python 3.11+
  • Access to Ceph cluster commands such as 'ceph status'

Documentation

Support

Open an issue

About

CLI tool to help manage and administer Ceph clusters

Resources

Stars

10 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages