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

Adding CLM collection to spacewalk-debug #6890

Merged
merged 3 commits into from
Oct 25, 2023

Conversation

slsnow
Copy link
Contributor

@slsnow slsnow commented Apr 17, 2023

What does this PR change?

  1. Query and store CLM project history for each project:

    • For each project, the script retrieves the project's environments and their current corresponding version histories.
    • More specifically, the project's environment history (message, version, and created date) is saved in a separate text file for each project under the "clm/projects" directory.
  2. Save all CLM related DB tables to "clm/full_tables.txt":

    • The script queries all the tables related to the Content Lifecycle Management (CLM) feature.
    • The output is saved in a single file called "clm/full_tables.txt" in the output.

This should be helpful for users and support engineers, to avoid having to collect this data from the webUI manually. It may be helpful to add something similar to the API and spacecmd.

Fixes #6900

- Outputs individual files for CLM history data by project in the directory "spacewalk-debug/clm/"
- Collects CLM data to "spacewalk-debug/clm"
- Collects the current environment version details, by project, similar to the webUI version history
- Collects all of the CLM tables from the database, and outputs to a file" clm/full_tables.txt"
@slsnow slsnow changed the title Slsnow spacewalk debug clm Adding CLM collection to spacewalk-debug Apr 17, 2023
@Etheryte Etheryte requested a review from cbbayburt July 31, 2023 11:22
Copy link
Contributor

@cbbayburt cbbayburt left a comment

Choose a reason for hiding this comment

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

Hi @slsnow,

I've tried it and it works very well 👍 I'm sure it will be very useful for us!

Hopefully, it won't grow too big for some big SUMA environments.

@cbbayburt
Copy link
Contributor

I'll take care of the merge after the branch is unlocked again.

@cbbayburt cbbayburt self-assigned this Sep 19, 2023
@cbbayburt
Copy link
Contributor

Hi @slsnow, I realized this PR is missing a changelog entry. Could you add an entry to the spacewalk-backend package? This wiki describes how to do it: https://github.com/uyuni-project/uyuni/wiki/Contributing#changelog-rules-for-packages-in-git

@slsnow
Copy link
Contributor Author

slsnow commented Oct 24, 2023

Hey Can, thanks for the instructions. Let me know if I did that right.

@cbbayburt cbbayburt merged commit 76996e9 into uyuni-project:master Oct 25, 2023
6 of 7 checks passed
@cbbayburt
Copy link
Contributor

Thanks very much, @slsnow
This is a very nice addition.

rjpmestre pushed a commit to rjpmestre/uyuni that referenced this pull request Oct 26, 2023
- Outputs individual files for CLM history data by project in the directory "spacewalk-debug/clm/"
- Collects CLM data to "spacewalk-debug/clm"
- Collects the current environment version details, by project, similar to the webUI version history
- Collects all of the CLM tables from the database, and outputs to a file" clm/full_tables.txt"
r-richardson pushed a commit to r-richardson/uyuni that referenced this pull request Oct 26, 2023
- Outputs individual files for CLM history data by project in the directory "spacewalk-debug/clm/"
- Collects CLM data to "spacewalk-debug/clm"
- Collects the current environment version details, by project, similar to the webUI version history
- Collects all of the CLM tables from the database, and outputs to a file" clm/full_tables.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: CLM related output in spacewalk-debug
2 participants