feat: get rollback params from rpm-ostree#1
Open
say-paul wants to merge 10 commits into
Open
Conversation
4e0e7a9 to
492fe32
Compare
6653128 to
61c1794
Compare
492fe32 to
7f86868
Compare
c3de62a to
dc2bf5c
Compare
3778fb2 to
f83722a
Compare
c3ead56 to
cea05da
Compare
0b25a38 to
727a327
Compare
Added devcontainer for easier development, CI included with testing assets required during testing. Signed-off-by: Sayan Paul <saypaul@redhat.com>
0069eba to
20a9bbd
Compare
14fe346 to
5996ca0
Compare
Greenboot health checks now on every boot rollback stays the same which will trigger only if an upgrade is present. Actions are logged in journald which also includes scripts stderr. Status is reported as GREEN and RED. Handler handles low level grub variable and systemd manipulation. Main orchestrates of the flow of greenboot. Unit tests added. Signed-off-by: Sayan Paul <saypaul@redhat.com>
Added spec file for packaging greenboot and healthcheck greenboot-healthcheck.service runs the health-check scripts which runs on every boot and is orchestrated before systemd-update-done.services greenboot-rollback.service binds to the systemd-update-done.services to ensure that rollback only runs when a system is updated. Signed-off-by: Sayan Paul <saypaul@redhat.com>
complying some rust best practices updated devcontainer to built rpms Signed-off-by: Sayan Paul <paul.sayan@gmail.com>
Signed-off-by: Sayan Paul <saypaul@redhat.com>
cargo build macro in fedora 39 and rawhide is defaulting to profile name: rpm, so created one which is inherited from release profile. Signed-off-by: Sayan Paul <saypaul@redhat.com>
Signed-off-by: Sayan Paul <saypaul@redhat.com>
5996ca0 to
0064726
Compare
3c43372 to
d96a78b
Compare
greenboot checks doesnt not depend on post update only if boot_counter = -1 then it will check rpm-ostree status and will make an attempt to rollback if the update time has not passed the rollback grace period which is can be configured as part of /etc/greenboot.conf ToAdd: Check if more than 1 deployment exits. Signed-off-by: Sayan Paul <saypaul@redhat.com>
Signed-off-by: Sayan Paul <saypaul@redhat.com>
d96a78b to
e3d9241
Compare
0c974af to
60e4fc1
Compare
40eee34 to
3a09a4b
Compare
6d36266 to
41c5c68
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
greenboot checks doesnt not depend on post update only if boot_counter = -1 then it will check rpm-ostree status and will make an attempt to rollback if the update time has not passed the rollback grace period which is can be configured as part of /etc/greenboot.conf
ToAdd: Check if more than 1 deployment exits.