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

unattended upgrade returns inconsistent exit code #338

Open
192dot opened this issue Jan 7, 2023 · 0 comments
Open

unattended upgrade returns inconsistent exit code #338

192dot opened this issue Jan 7, 2023 · 0 comments

Comments

@192dot
Copy link

192dot commented Jan 7, 2023

Issue

When unattended upgrade attempts to update a package that requires conffile prompt, and packages without the conffile prompts, it returns 1.
When unattended upgrade attempts to update a package that requires conffile prompt, it will mark the package to blacklist, then it returns 0.
This is causing flapping in monitoring alerts.

Versions Tested

Tag 2.9.1 (the latest) and earlier: contains this issue.
Master: does not contain this issue.

To Recreate the error

  • Downgrade a package which does not prompt for conffile during updates (e.g. nginx)
  • Downgrade a package which prompts for conffile during updates (e.g. cloud-init)
  • Run unattended-upgrade, then echo $? shows it returned 1
  • Run unattended-upgrade again, then echo $? shows it returned 0
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