Visualizing Pulp3 data schema
- pulpcore-manager
- talking directly to Django
- pulpcore-manager shell
- talking to Django interactively
- programming in python
- pulp-cli
- jq
- Format/query JSON output
- esp useful for RESZT/pulp-cli output
- django-extensions graph_models
- A graphviz-visualizer
Setup (Fedora34)
- dnf install graphviz python3-graphviz python3-pygraphviz
- pip install django-extensions pyparsing pydot
- these aren't available in RPMs (that I know of?)
Recipes
"Show me All Of Pulp3!"
pulpcore-manager graph_models --pydot -a -g -o all_pulp3.png
- ERROR - this is…too much, at least for my machine
pulpcore-manager graph_models -a > all_pulp3.dot
- Hand it to a visualizer
"Show me…Just pulp_rpm?"
- Limit by django-application (ie plugin)
pulpcore-manager graph_models APPNAME --pydot -g -o APPNAME_visualized.png
- APPNAME can be found from Pulp3 status output
pulpcore-manager graph_models rpm --pydot -g -o rpm_visualized.png
- file:///home/ggainey/github/Pulp3/graph_models/rpm_visualized.png
- Use -I to select-by-model.
- Wildcards are supported
- file:///home/ggainey/github/Pulp3/graph_models/package_stuff.png
"Cool, cool - where do I get these model-names?"
- "core", below, is an APPNAME