Oslo Reports Library

3.7.0 · active · verified Thu Apr 16

oslo.reports is an OpenStack library that provides a general-purpose framework for generating detailed error and system reports, often referred to as 'Guru Meditation Reports'. It helps administrators obtain an accurate view of the current live state of a system, including running threads, configuration parameters, and package versions. The current version is 3.7.0, and it follows the OpenStack project's regular release cadence.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to generate a basic Guru Meditation Report. The `GuruMeditationReport` class, when instantiated, automatically collects a wide range of system diagnostics. The `render_report()` method then serializes this data into a human-readable string. By default, it attempts to use a text output format.

from oslo_reports.guru_meditation_report import GuruMeditationReport

# Create a Guru Meditation Report instance.
# By default, it gathers extensive system information.
# Additional generators can be registered for custom data.
gmr = GuruMeditationReport()

# Generate the report as a plain text string.
# Other rendering methods (e.g., to JSON, XML) may be available
# depending on installed optional dependencies and specific views.
report_text = gmr.render_report(output_format='text')

print("--- Guru Meditation Report ---")
print(report_text)
print("----------------------------")

view raw JSON →