Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling Large Inventory Files #3

Open
Ernestas-S opened this issue Oct 14, 2023 · 1 comment
Open

Handling Large Inventory Files #3

Ernestas-S opened this issue Oct 14, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Ernestas-S
Copy link

Investigate capacity for Large Inventory Files

While testing the application with a substantial number of devices, it was encountered an issue where the generated graph size exceeded the capacity for labels and rendering. This prompts the question: What is the maximum size of an inventory file that the app can effectively handle?

Command to execute script used:
py -3.9 diagram\main.py -i .\inventory\inventory.json -o png -n test_diagram -f test_diagram

Error generated after running the command before, was that a bunch of lines with different node code, one example is:
Warning: node '85152ec6b7ad492fb1fbc7d7a2cf5d76', graph 'test_diagram\r\n2023 GNU GPL v3.0 - mbrav https://github.com/mbrav/ansible-inventory-diagram' size too small for label\r\nunexpected case in locate_endpoint\r\nunexpected case in locate_endpoint\r\ndot: graph is too large for cairo-renderer bitmaps. Scaling by 0.642163 to fit\r\n"]

@mbrav
Copy link
Owner

mbrav commented Oct 14, 2023

Can you provide the the inventory file you are using? Note, that the inventory file must be in json format and generated using Ansible's ansible-inventory command. It is also possible that there is a limitation in the Diagrams library.

@mbrav mbrav added the bug Something isn't working label Oct 14, 2023
@mbrav mbrav self-assigned this Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants