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

Add a tool to visualize the tasking system #374

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

git-hyagi
Copy link
Collaborator

@git-hyagi git-hyagi commented Jan 9, 2025

@git-hyagi git-hyagi force-pushed the visualization-tasks-tool branch 2 times, most recently from a333775 to 4aa1471 Compare January 9, 2025 20:08
@bmbouter
Copy link
Member

This is looking good. Can you give a docs example of running a full command against staging and prod also please? Obviously the cert and key references won't be right, but the command generally would be. Thanks!

@git-hyagi git-hyagi force-pushed the visualization-tasks-tool branch 2 times, most recently from 6886e1c to b3052c6 Compare January 10, 2025 16:28
@git-hyagi git-hyagi changed the title draft Add a tool to visualize the tasking system Jan 10, 2025
@git-hyagi git-hyagi marked this pull request as ready for review January 10, 2025 16:32
@bmbouter
Copy link
Member

@git-hyagi I went to run this just from the CLI (no container). I run this command python tasks-cli.py -c ~/Documents/Redhat/bmbouter-crc.crt -k ~/Documents/Redhat/bmbouter-crc.key --base_address https://mtls.internal.console.redhat.com and I get this TB:

Traceback (most recent call last):
  File "/home/bmbouter/devel/pulp3/pulp-service/management_tools/tasks-cli.py", line 221, in <module>
    run()
    ~~~^^
  File "/home/bmbouter/devel/pulp3/pulp-service/management_tools/tasks-cli.py", line 100, in run
    write_to_file(data)
    ~~~~~~~~~~~~~^^^^^^
  File "/home/bmbouter/devel/pulp3/pulp-service/management_tools/tasks-cli.py", line 113, in write_to_file
    with open(output_file, "w") as f:
         ~~~~^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tasks-cli/pulp_tasks.out'


* stage
```
HTTPS_PROXY=http://<internal proxy address> python tasks-cli.py -c <cert file> -k <cert key> --base_address https://<stage host>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these have literal addresses for the proxy and stage host?


* prod
```
python tasks-cli.py -c <cert file> -k <cert key> --base_address https://<prod host>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this have the literal hostname to use for prod_host?

@git-hyagi git-hyagi force-pushed the visualization-tasks-tool branch from b3052c6 to 731fc16 Compare January 14, 2025 16:46
@bmbouter
Copy link
Member

The graphs seem to be all zeros. When I run python tasks-cli.py -c ~/Documents/Redhat/bmbouter-crc.crt -k ~/Documents/Redhat/bmbouter-crc.key --base_address https://mtls.internal.console.redhat.com --period 3000 that's a lot of history and surely some tasks ran in that period. The output shows all zeros.

@git-hyagi git-hyagi force-pushed the visualization-tasks-tool branch from 731fc16 to e1a1efb Compare January 14, 2025 18:16
@git-hyagi git-hyagi marked this pull request as draft January 14, 2025 18:16
@git-hyagi git-hyagi force-pushed the visualization-tasks-tool branch from e1a1efb to d5fa174 Compare January 21, 2025 19:42
@git-hyagi git-hyagi force-pushed the visualization-tasks-tool branch from d5fa174 to b0e57f8 Compare January 21, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants