T1771: enable "reboot-on-upgrade-failure" for new VyOS installations #965
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change summary
If any part of the system boot fails, we now set overall_status=1 in the vyos-router startup script. When an error during the image upgrade is detected, the system will automatically revert the default boot image to the previously used version.
The user is informed via console messages:
The user has 5 minutes to log in and run reboot cancel to remain in the faulty image for troubleshooting.
Once the system boots into the previous image, the MOTD will display a persistent warning message - cleared during next reboot.
Upgrade failure can be synthetically injected by booting with Kernel command line option:
vyos-fail-migration
Types of changes
Related Task(s)
Related PR(s)
How to test / Smoketest result
You can boot the new image using:
vyos-fail-migration
Kernel cmdline parameter to trigger this.Checklist: