Registry / observability / oslo-reports

oslo-reports

JSON →
library3.8.0pypypiunverified

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.

pip install oslo.reports
INSTALL
IMPORT
SIG · OSLO-REPORTS
O
oslo-reports
observabilitypythonv3.8.0
Install
4.7s avg
Import
—
Disk
48MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v3.8.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 44.1MB
glibc
py 3.10–3.910 runs
installs and imports cleanly · install 4.7s · import 0.000s · 46MB
48MB installed
● package 48MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GuruMeditationReport
✓ from oslo_reports import GuruMeditationReport
✗ from oslo_reports import GuruMeditationReport

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("----------------------------")
Debug
Known issues
breakingThe library explicitly requires Python 3.10 or newer. Attempting to install or run oslo.reports on older Python versions will result in installation failures or runtime errors.
fix
Upgrade your Python environment to version 3.10 or higher. Use `python --version` to check your current interpreter version.
affects: <3.10
gotchaModule import paths use underscores (`oslo_reports`) while the PyPI package name uses a dash (`oslo-reports`). A common mistake is to try `import oslo.reports`.
fix
Always use `import oslo_reports` or `from oslo_reports.module import ...` in your Python code, even though you install it as `pip install oslo.reports`.
affects: All versions
gotchaGenerating reports with specific output formats (e.g., templated text via Jinja2) or incorporating configuration data requires installing optional dependencies like `jinja2` or having `oslo.config` properly set up.
fix
If experiencing errors related to missing templates or configuration, ensure that relevant optional dependencies are installed (`pip install oslo.reports[jinja2]` if available, or `pip install jinja2 oslo.config` separately) and that `oslo.config` is initialized if configuration is expected.
affects: All versions
Upgrade
Version history
3.8.0latest on PyPI · released May 5, 2026
Audit
Dependencies
oslo.configoptionalUsed for standardized configuration across OpenStack projects, which oslo.reports may leverage for gathering configuration data. Not a strict runtime dependency for basic report generation.
jinja2optionalRequired for using predefined views that utilize the Jinja templating system for report serialization (e.g., text or HTML output). Not required for JSON or XML views.
Agent activity
27 hits · last 30 days
node
22
Amazon
3
OpenAI (training)
2
Resources
oslo-reports — pip install oslo-reports · libregistry