Skip to main content

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

Project description

dynflowparser

Reads the dynflow files from a sosreport and generates user friendly html pages for Tasks, Plans, Actions and Steps

  • 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:

  • python3-dateutil
  • python3-jinja2

Usage

usage: dynflowparser [-h] [-a] [-d {D,I,W,E}] [-f DATEFROM] [-t DATETO] [-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 DATEFROM, --from DATEFROM
                        Parse only Plans that were running from this datetime.
  -t DATETO, --to DATETO
                        Parse only Plans that were running up to this datetime.
  -n, --nosql           Reuse existent sqlite file. (Useful for development).
  -q, --quiet           Quiet. Don't show progress bar.

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)

How to accurately export tasks.

Included dynflowparser-export-tasks can be used to overcome sosreport size limitations and get an accurate tasks export tarball. Just execute it as follows.

Usage: export-tasks.sh DAYS RESULT
  DAYS: Number of days to export.
  RESULT: Filter exported tasks by result: [all cancelled error pending warning].
Example: ./export-tasks.sh 3 all

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-0.1.1.tar.gz (610.3 kB view details)

Uploaded Source

Built Distribution

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

dynflowparser-0.1.1-py3-none-any.whl (127.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dynflowparser-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1b025e3aa40df50ae7b3c2198a084897afb9301f998f6a1d08fac095c8e6b7ee
MD5 f5444cd118ea7ca35a98d2d5d948d2b2
BLAKE2b-256 91d1b8654adf213beaa06a00e04cae42b0298f7133fdd55c46ea7f50c50faf33

See more details on using hashes here.

Provenance

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

Publisher: python-publish.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-0.1.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for dynflowparser-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 866c7ba5b1b66283fcb4893127ec1e729034b5ab2b810fd951cfb8e90c574113
MD5 7540a8e50eedde16405a6d33fc28295d
BLAKE2b-256 0243fe3382bee62fcc06de27581eb4f1b8b5a1acb4686a6b805b368b54cafda4

See more details on using hashes here.

Provenance

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

Publisher: python-publish.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