Skip to main content

Get sosreport dynflow files and generates user friendly html pages for

Project description

dynflowparser

⚠️ DEPRECATED: This project has been deprecated in favor of DynflowBrowser. Please use DynflowBrowser for new projects and consider migrating existing workflows.

Reads the dynflow files from a sosreport and generates user friendly html pages for Tasks, Plans, Actions and Steps. Companion command dynflowparser-export-tasks helps to overcome sosreport file size limitations. (Read Limitations below)

  • Only unsuccessful Tasks are parsed by default. (Use '-a' to parse all).
  • Failed Actions & Steps are automatically expanded on the Plan page for easy error location.
  • Indented Actions & Steps json fields.
  • Useful data on header: Hostname, Timezone, Satellite version, RAM, CPU, Tuning.
  • Dynflow UTC dates are automatically converted to honor sosreport timezone according to "/sos_commands/systemd/timedatectl".
  • Automatically opens output on default browser.
  • Lynx friendly.
Tasks list Task details Lynx

Dependencies

Required python libraries:

  • Jinja2
  • pytz

Installation

There are multiple ways to to install dynflowparser.

  • Using pip.

    pip install dynflowparser
    
  • Using the prebuild packages at Latest Release

Usage

usage: dynflowparser [-h] [-a] [-d {D,I,W,E}] [-f DATE_FROM] [-t DATE_TO] [-l LAST_N_DAYS] [-n] [-q] [sosreport_path] [output_path]

Get sosreport dynflow files and generates user friendly html pages for tasks, plans, actions and steps

positional arguments:
  sosreport_path        Path to sos report folder. Default is current path.
  output_path           Output path. Default is './dynflowparser/'.

optional arguments:
  -h, --help            show this help message and exit
  -a, --all             Parse all. By default only unsuccess plans are parsed.
  -d {D,I,W,E}, --debug {D,I,W,E}
                        Debug level. Default 'W'
  -f DATE_FROM, --from DATE_FROM
                        Parse only Plans that were running from this datetime.
  -t DATE_TO, --to DATE_TO
                        Parse only Plans that were running up to this datetime.
  -l LAST_N_DAYS, --last LAST_N_DAYS
                        Parse only last N days. Overrides `--from` and `--to`.
  -n, --nosql           Reuse existent sqlite file. (Useful for development).
  -q, --quiet           Quiet. Don't show progress bar.

dynflowparser-export-tasks Usage

This command must be executed on the Foreman server.

usage: dynflowparser-export-tasks [-h] [-d DAYS] [-f FILTER] [-r {cancelled,error,pending,success,warning}] [-s {paused,planning,pending,running,scheduled,stopped}]

Create a Foreman task-export compressed file.

options:
  -h, --help            show this help message and exit
  -d DAYS, --days DAYS  Number of days to export. By default last 14 days.
  -f FILTER, --filter FILTER
                        Filter query. E.g: label LIKE '%Manifest%'.
  -r {cancelled,error,pending,success,warning}, --result {cancelled,error,pending,success,warning}
                        Filter by Task Result.
  -s {paused,planning,pending,running,scheduled,stopped}, --state {paused,planning,pending,running,scheduled,stopped}
                        Filter by Task State.

Limitations

  • sosreport by default requests last 14 days.
  • sosreport truncates output files at 100M, hence some records could be missing.
  • Only Dynflow schema version 24 is supported. (v20 is not CSV compliant)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dynflowparser-1.5.2.tar.gz (126.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dynflowparser-1.5.2-py3-none-any.whl (134.6 kB view details)

Uploaded Python 3

File details

Details for the file dynflowparser-1.5.2.tar.gz.

File metadata

  • Download URL: dynflowparser-1.5.2.tar.gz
  • Upload date:
  • Size: 126.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dynflowparser-1.5.2.tar.gz
Algorithm Hash digest
SHA256 7d7efdf921dd0ebbff8d4a2eb2a0c564bbddcf06e139ce05aebd730d9eb3806d
MD5 b3c8df5b36dfc18ce3a9a3e75d5334ce
BLAKE2b-256 af85d0e91b3de882d2f58f1be023b725d89d9ddf11b9417a6a101fd3cb6467da

See more details on using hashes here.

Provenance

The following attestation bundles were made for dynflowparser-1.5.2.tar.gz:

Publisher: publish-pypi.yml on pafernanr/dynflowparser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dynflowparser-1.5.2-py3-none-any.whl.

File metadata

  • Download URL: dynflowparser-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 134.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dynflowparser-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d4f654943c0514655bc03e515423f486370b98d71f1b8e512af84cfbd1f0a32
MD5 e5ba6feb336b3fa4e880dfbf39472636
BLAKE2b-256 3f6673232ea6b706e22cd8dfbe0c18338d79da30b937cd510577b6cef6924421

See more details on using hashes here.

Provenance

The following attestation bundles were made for dynflowparser-1.5.2-py3-none-any.whl:

Publisher: publish-pypi.yml on pafernanr/dynflowparser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page