Skip to content

Updated sosreport plugin changes #172

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

brenns10
Copy link
Member

These are @apalakun's changes (see #155), but with some code style updates, fixes for the spec file, and some simplifications in the code to avoid unnecessary RPM version checks. I have built the RPM and tested sos report --batch with vmcores present on OL9, and the corelens report was included in the output -- slick!

apalakun and others added 5 commits June 13, 2025 15:53
Orabug: Jira-LSE-524
Signed-off-by: Anil Lal <[email protected]>
Signed-off-by: Stephen Brennan <[email protected]>
This file is provided by the same RPM that provides corelens. Thus,
version checks are superfluous, and calling the rpm command directly
seems like the wrong way to get the corelens version anyway.

Signed-off-by: Stephen Brennan <[email protected]>
The "-D" option of install needs the filename to be present. Also, the
%files declaration must not include %{buildroot}. Finally, the Python
bytecode files need to be included, but we need to be careful NOT to
declare the entire directory owned by this package: this would result in
RPM deleting the cache directory when our plugin is uninstalled.

Signed-off-by: Stephen Brennan <[email protected]>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 16, 2025
@brenns10 brenns10 requested review from biger410 and apalakun June 16, 2025 18:39
Copy link
Member

@apalakun apalakun left a comment

Choose a reason for hiding this comment

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

Changes looks and approved

Some Exadata systems seem to name their vmcores <hostname>.vmcore. To
ensure that the sosreport plugin works there, we'll use the first file
we encounter whose name ends with "vmcore".

Signed-off-by: Stephen Brennan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants