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

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

Open
mark-hyde opened this issue Mar 16, 2020 · 1 comment
Open

Comments

@mark-hyde
Copy link
Contributor

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."

?

rhodesn added a commit that referenced this issue Oct 21, 2020
log file

This commit adds a status line to last-{prep,apply}-* files containing
return codes from the pre/post scripts.

It also includes a tidy up of variable names and handling writing to the
log file.
@mark-hyde
Copy link
Contributor Author

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

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

No branches or pull requests

1 participant