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

[collect] Add a cluster profile for Ansible Automation Platform #3895

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

Conversation

jcastill
Copy link
Member

@jcastill jcastill commented Jan 2, 2025

Add a new cluster profile for Ansible Automation Platform clusters.
By default, all nodes in the cluster will be returned for collection.
The list of nodes can be obtained via one of the following options:

  • Using the option 'inventory', the user can provide an inventory file with the list of instances.
  • Using the option 'api-url', the user can point to an API where sos can request the list of instances via an HTTP request.

If none of these options are provided, the list of nodes will be
obtained by calling 'awx-manage list_instances'.
The last two options will provide an incomplete list of instances
while the first one, the inventory file, will provide a full list.

Related: RHEL-67822


Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines

  • Is the commit message split over multiple lines and hard-wrapped at 72 characters?
  • Is the subject and message clear and concise?
  • Does the subject start with [plugin_name] if submitting a plugin patch or a [section_name] if part of the core sosreport code?
  • Does the commit contain a Signed-off-by: First Lastname [email protected]?
  • Are any related Issues or existing PRs properly referenced via a Closes (Issue) or Resolved (PR) line?
  • Are all passwords or private data gathered by this PR obfuscated?

Add a new cluster profile for Ansible Automation Platform clusters.
    By default, all nodes in the cluster will be returned for collection.
    The list of nodes can be obtained via one of the following options:
    - Using the option 'inventory', the user can provide an inventory file
      with the list of instances.

    - Using the option 'api-url', the user can point to an API where sos
      can request the list of instances via an HTTP request.

    If none of these options are provided, the list of nodes will be
    obtained by calling 'awx-manage list_instances'.
    The last two options will provide an incomplete list of instances
    while the first one, the inventory file, will provide a full list.

Related:  RHEL-67822

Signed-off-by: Jose Castillo <[email protected]>
@jcastill
Copy link
Member Author

jcastill commented Jan 2, 2025

This is a very early implementation of the collect profile for AAP. I'm still working with engineering and many things can change, like the list of sos plugins to activate, options list/names, order of ways to obtain list of nodes or even eliminating some of the ways to do so. Because of that, this PR is not ready for review yet.

@jcastill jcastill added Status/RedHat Eng RedHat Engineering has been requested to review Kind/RedHat RedHat related item labels Jan 2, 2025
Copy link

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/sosreport-sos-3895
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

@pmoravec
Copy link
Contributor

pmoravec commented Jan 6, 2025

A very quick review (no need of a deeper one till it is in such draft mode) shows all good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Kind/RedHat RedHat related item Status/RedHat Eng RedHat Engineering has been requested to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants