Get sosreport dynflow files and generates user friendly html pages for
Project description
dynflowparser
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
pip install dynflowparser
dynflowparser 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dynflowparser-1.1.8.tar.gz.
File metadata
- Download URL: dynflowparser-1.1.8.tar.gz
- Upload date:
- Size: 128.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1d5a8b75249ac9829cc65ad6689ccd5b52f58763a9ea46208cee5084aca3710
|
|
| MD5 |
1a5522416feedb49c824ca81d5cc930b
|
|
| BLAKE2b-256 |
665d4c4d8d0922f82e066194399280bc39b3aa8916b16879fd694138847d9d2b
|
Provenance
The following attestation bundles were made for dynflowparser-1.1.8.tar.gz:
Publisher:
publish-pypi.yml on pafernanr/dynflowparser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dynflowparser-1.1.8.tar.gz -
Subject digest:
c1d5a8b75249ac9829cc65ad6689ccd5b52f58763a9ea46208cee5084aca3710 - Sigstore transparency entry: 200659666
- Sigstore integration time:
-
Permalink:
pafernanr/dynflowparser@b52d0859f13bfef91733e59a7dcad92c803099b0 -
Branch / Tag:
refs/tags/v1.1.8 - Owner: https://github.com/pafernanr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b52d0859f13bfef91733e59a7dcad92c803099b0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file dynflowparser-1.1.8-py3-none-any.whl.
File metadata
- Download URL: dynflowparser-1.1.8-py3-none-any.whl
- Upload date:
- Size: 137.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7294d1cc0ef042d00a4de5217ca793872b3df2c7eac5e46b8a32db85cc04594d
|
|
| MD5 |
ee3112de35560798e9578ea7ea5facf7
|
|
| BLAKE2b-256 |
c23effa7aceecfcb2ec12df823536618b863fc50f07e0f9ee7c423137f5fe182
|
Provenance
The following attestation bundles were made for dynflowparser-1.1.8-py3-none-any.whl:
Publisher:
publish-pypi.yml on pafernanr/dynflowparser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dynflowparser-1.1.8-py3-none-any.whl -
Subject digest:
7294d1cc0ef042d00a4de5217ca793872b3df2c7eac5e46b8a32db85cc04594d - Sigstore transparency entry: 200659672
- Sigstore integration time:
-
Permalink:
pafernanr/dynflowparser@b52d0859f13bfef91733e59a7dcad92c803099b0 -
Branch / Tag:
refs/tags/v1.1.8 - Owner: https://github.com/pafernanr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b52d0859f13bfef91733e59a7dcad92c803099b0 -
Trigger Event:
release
-
Statement type: