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

[perccli2] Add perccli2 plugin, PERC H965 and newer controllers #3815

Merged

Conversation

TrevorBenson
Copy link
Member


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?

@TrevorBenson TrevorBenson force-pushed the sos-trevorbenson-perccli2-plugin branch from 6cb88ac to 630af1b Compare October 18, 2024 23:07
@TrevorBenson TrevorBenson force-pushed the sos-trevorbenson-perccli2-plugin branch from 630af1b to eb3616f Compare October 18, 2024 23:08
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-3815
  • And now you can install the packages.

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

@arif-ali
Copy link
Member

If the code is duplicate, except for the command, is it worth having some test in the original plugin instead, and change the command based on what is found?

@pmoravec
Copy link
Contributor

If the code is duplicate, except for the command, is it worth having some test in the original plugin instead, and change the command based on what is found?

+1

@TrevorBenson
Copy link
Member Author

If the code is duplicate, except for the command, is it worth having some test in the original plugin instead, and change the command based on what is found?

All looks good #3815 (comment)

@TrevorBenson TrevorBenson force-pushed the sos-trevorbenson-perccli2-plugin branch from 776d6c6 to f42a459 Compare October 23, 2024 19:12
@TrevorBenson
Copy link
Member Author

TrevorBenson commented Oct 23, 2024

If the code is duplicate, except for the command, is it worth having some test in the original plugin instead, and change the command based on what is found?

@pmoravec @arif-ali I originally interpreted this statement as a test for the missing underscore in the filename. Rereading it I suspect it was suggesting:

  1. Defining old and new RPM names in a single plugin's packages.
  2. Checking if a binary exists, or just making a list cmds, and calling add_cmd_output() as needed.

As perccli2 is not backward-compatible with previous PERC controllers, both RPMs are required to show or manage configurations. Having two generations of controllers on the same host may happen for several reasons.

I checked previous examples of how similar situations were handled, when the RPM and new CLI tool names changed to include a version number grub-<version> & grub-mkconfig vs grub2-<version> & grub2-mkconfig etc.. I based my approach on the grub and grub2 plugins. Is that style choice no longer preferred?

@pmoravec
Copy link
Contributor

Thanks for the explanation. There could be a way of having one plugin even under these circumstances, but I feel until there will be frequent changes to the plugins, having two of them is fine for me.

@TrevorBenson
Copy link
Member Author

Thanks for the explanation. There could be a way of having one plugin even under these circumstances, but I feel until there will be frequent changes to the plugins, having two of them is fine for me.

Then I will leave this branch as is instead of merging the logic into perccli.py. Otherwise, if/when it is preferred to merge them let me know and I will make the necessary adjustments.

Copy link
Member

@arif-ali arif-ali left a comment

Choose a reason for hiding this comment

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

Thanks for the explanation, and appreciate your patience and understanding in trying to reduce duplication

@TurboTurtle TurboTurtle merged commit 2aa4fcf into sosreport:main Oct 27, 2024
36 checks passed
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.

4 participants