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

Make it easier to detect RPM %post failures #1430

Closed
mfeit-internet2 opened this issue May 3, 2024 · 3 comments
Closed

Make it easier to detect RPM %post failures #1430

mfeit-internet2 opened this issue May 3, 2024 · 3 comments

Comments

@mfeit-internet2
Copy link
Member

Because RPM doesn't stop when a %post scriptlet fails, there's no easy way to retroactively know if installation of any packages had a failure without scouring the logs.

Write something to wrap the innards of the scriptlets:

# Note that the single quotes prevent substitutions
log-post-failure << 'LOG-FAILURE-EOF'
...Script...
LOG-FAILURE-EOF

Have it write the output of failed installations to a known location, maybe a syslog file.

@mfeit-internet2
Copy link
Member Author

mfeit-internet2 commented Jun 6, 2024

Remaining to-do in the RPM specs for all packages after this one in the build:

  • Add Requires: rpm-post-wrapper
  • Wrap the %post scriptlet if there is one

Also consider making this available to the rest of the project.

@mfeit-internet2
Copy link
Member Author

This all works; merge it into 5.1.1 after 5.1.0 is out the door.

@mfeit-internet2
Copy link
Member Author

Release Notes:

Installation errors on RPM-based systems that previously happened quietly do to a limitation in RPM are now logged to syslog.

@github-project-automation github-project-automation bot moved this from Ready to Done in perfSONAR Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

1 participant