Skip to content

feat: get rollback params from rpm-ostree#1

Open
say-paul wants to merge 10 commits into
greenboot-rs-continuedfrom
update-rollback-policy-poc
Open

feat: get rollback params from rpm-ostree#1
say-paul wants to merge 10 commits into
greenboot-rs-continuedfrom
update-rollback-policy-poc

Conversation

@say-paul

@say-paul say-paul commented Jun 2, 2023

Copy link
Copy Markdown
Owner

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.

@say-paul say-paul force-pushed the update-rollback-policy-poc branch from 4e0e7a9 to 492fe32 Compare June 2, 2023 13:34
@say-paul say-paul force-pushed the greenboot-rs-continued branch from 6653128 to 61c1794 Compare June 27, 2023 05:35
@say-paul say-paul force-pushed the update-rollback-policy-poc branch from 492fe32 to 7f86868 Compare June 30, 2023 11:03
@say-paul say-paul force-pushed the greenboot-rs-continued branch 2 times, most recently from c3de62a to dc2bf5c Compare July 11, 2023 10:40
@say-paul say-paul force-pushed the greenboot-rs-continued branch from 3778fb2 to f83722a Compare August 7, 2023 13:31
@say-paul say-paul force-pushed the greenboot-rs-continued branch 2 times, most recently from c3ead56 to cea05da Compare September 21, 2023 12:38
@say-paul say-paul force-pushed the greenboot-rs-continued branch 3 times, most recently from 0b25a38 to 727a327 Compare September 29, 2023 14:12
Added devcontainer  for easier development,
CI included with testing assets required during testing.

Signed-off-by: Sayan Paul <saypaul@redhat.com>
@say-paul say-paul force-pushed the greenboot-rs-continued branch 5 times, most recently from 0069eba to 20a9bbd Compare October 9, 2023 13:01
@say-paul say-paul force-pushed the greenboot-rs-continued branch from 14fe346 to 5996ca0 Compare October 16, 2023 14:19
say-paul and others added 7 commits October 17, 2023 10:15
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>
greenboot default healthcheck provides a set of health-checks.
refer commit:
4c5c297
0d9563b
1d54f0b
84bbd67
e37257b
2c0ac48
efa50df
7fff7fe

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>
@say-paul say-paul force-pushed the greenboot-rs-continued branch from 5996ca0 to 0064726 Compare October 17, 2023 10:18
@say-paul say-paul force-pushed the update-rollback-policy-poc branch 2 times, most recently from 3c43372 to d96a78b Compare October 18, 2023 09:57
@say-paul say-paul changed the title feat: Ability to rollback even if anytime feat: get rollback params from rpm-ostree Oct 18, 2023
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>
@say-paul say-paul force-pushed the update-rollback-policy-poc branch from d96a78b to e3d9241 Compare October 18, 2023 15:05
@say-paul say-paul force-pushed the greenboot-rs-continued branch from 0c974af to 60e4fc1 Compare November 1, 2023 10:22
@say-paul say-paul force-pushed the greenboot-rs-continued branch 2 times, most recently from 40eee34 to 3a09a4b Compare April 16, 2024 06:31
@say-paul say-paul force-pushed the greenboot-rs-continued branch from 6d36266 to 41c5c68 Compare March 19, 2025 13:42
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

Successfully merging this pull request may close these issues.

1 participant