rackerlabs / auter

Automatic updates for RHEL, Debian, and their derivatives, with the ability to run pre/post hooks & reboot afterwards.
Apache License 2.0
65 stars 18 forks source link

Record status of pre and post steps in /var/lib/auter status files #236

Open mark-hyde opened 4 years ago

mark-hyde commented 4 years ago

Hi - a thought for enhancing auter.

Any way you could record the pre and post steps which have been run in the /var/lib/auter/last-{phase}-output-default file?

For instance I have a run which has the following in the last apply file:

Complete!
STATUS :Package updates applied:37

But I know from the logs that a post apply script failed:

"Mar  9 00:26:31 r12345-xxxxxxw auter: ERROR: Post-Apply script /etc/auter/post-apply.d/45-swapoff-auter-temp-swapfile exited with non-zero exit code 255. Aborting auter run."

?

mark-hyde commented 1 year ago

Nick did a load of work on this, but the PR was eventually closed. I've forked that work and will get it ready for another PR