Skip to content

Conversation

@say-paul
Copy link
Member

@say-paul say-paul commented Mar 29, 2023

This will implement the the existing greenboot health check functionality:
Below are the functionality that will be implemented as part of this PR:

  • greenboot params set up- health-check, rollback
  • Healthcheck process - required.d,wanted.d,red.d,green.d
  • Working with grub params - boot_counter,boot_success
  • MOTD
  • jouranld log
  • unit files

@github-advanced-security
Copy link

You have successfully added a new devskim configuration .github/workflows/analysis.yml:analysis_devskim. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab.

@say-paul
Copy link
Member Author

I getting:
./greenboot health-check Config { max_reboot: 10, watchdog_check_enabled: false, watchdog_grace_period: 24 } INFO greenboot > running required check /usr/lib/greenboot/check/required.d/00_required_scripts_start.sh INFO greenboot > running wanted check /usr/lib/greenboot/check/wanted.d/00_wanted_scripts_start.sh INFO greenboot > greenbbot health-check passed. INFO greenboot > running green check /usr/lib/greenboot/green.d/00_required_scripts_start.sh thread 'main' panicked at 'unable to set grub variable: No such file or directory (os error 2)', src/main.rs:216:39

The grub variable boot_success is not set.

@say-paul say-paul force-pushed the greenboot-rs-continued branch from 025530b to eacb3d5 Compare March 29, 2023 14:16
@say-paul say-paul changed the title Simplified greenboot WIP:Simplified greenboot Mar 29, 2023
@say-paul say-paul force-pushed the greenboot-rs-continued branch 3 times, most recently from 5dba90c to 665c669 Compare March 30, 2023 06:23
@say-paul say-paul changed the title WIP:Simplified greenboot Simplified greenboot Apr 3, 2023
@say-paul say-paul force-pushed the greenboot-rs-continued branch 4 times, most recently from c836f58 to b4b06c6 Compare April 4, 2023 05:28
@say-paul say-paul changed the title Simplified greenboot Simplified greenboot health-check Apr 4, 2023
@say-paul
Copy link
Member Author

say-paul commented Apr 4, 2023

I getting: ./greenboot health-check Config { max_reboot: 10, watchdog_check_enabled: false, watchdog_grace_period: 24 } INFO greenboot > running required check /usr/lib/greenboot/check/required.d/00_required_scripts_start.sh INFO greenboot > running wanted check /usr/lib/greenboot/check/wanted.d/00_wanted_scripts_start.sh INFO greenboot > greenbbot health-check passed. INFO greenboot > running green check /usr/lib/greenboot/green.d/00_required_scripts_start.sh thread 'main' panicked at 'unable to set grub variable: No such file or directory (os error 2)', src/main.rs:216:39

The grub variable boot_success is not set.

its working now

@miabbott
Copy link
Member

miabbott commented Apr 4, 2023

Would it be possible to break up the one monolithic commit into multiple commits?

It would ease the PR review process and make backing out changes easier.

greenboot-healtcheck: healthcheck which runs on every boot.
greenboot-rollback: rollback(if healtcheck fails) which is tagged
with systemd-update-done.service that runs, only after a system is updated.

Signed-off-by: Sayan Paul <paul.sayan@gmail.com>
 Makefile params:  build,install,check,rpm
 spec - bump from v0.15 series which is bash version of greenboot to
 v0.16.0

Signed-off-by: Sayan Paul <paul.sayan@gmail.com>
CI runs formatting spellcheck and unit tests.
packit build rpm for fedora and centos

    Signed-off-by: Sayan Paul <paul.sayan@gmail.com>

Signed-off-by: Sayan Paul <paul.sayan@gmail.com>
devcontainer has all the necessary libaries installed to run test
and build greenboot.

Signedff-by: Sayan Paul <paul.sayan@gmail.com>
@say-paul say-paul force-pushed the greenboot-rs-continued branch from 40eee34 to 3a09a4b Compare April 16, 2024 06:31
@say-paul say-paul requested review from 7flying and nullr0ute April 16, 2024 06:43
@say-paul
Copy link
Member Author

I have major reservations about how get_boot_counter is handled, plus other minor things

I have modified this too.

Signed-off-by: Sayan Paul <paul.sayan@gmail.com>
@say-paul say-paul requested a review from 7flying April 18, 2024 10:10
@say-paul say-paul dismissed 7flying’s stale review April 18, 2024 10:13

updated in commit: 00a2da7

saving 2 Bytes of ram!!

Signed-off-by: Sayan Paul <paul.sayan@gmail.com>
@say-paul say-paul mentioned this pull request Apr 18, 2024
@say-paul say-paul dismissed nullr0ute’s stale review April 18, 2024 11:34

moving the log related comments to issue #149

@say-paul say-paul force-pushed the greenboot-rs-continued branch from 03160cb to 6d36266 Compare March 19, 2025 12:32
Signed-off-by: Sayan Paul <paul.sayan@gmail.com>
@say-paul say-paul force-pushed the greenboot-rs-continued branch from 6d36266 to 41c5c68 Compare March 19, 2025 13:42
@say-paul
Copy link
Member Author

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.