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

In-place airgap Flatcar upgrade #336

Open
3 of 4 tasks
Frostman opened this issue Jan 21, 2025 · 5 comments
Open
3 of 4 tasks

In-place airgap Flatcar upgrade #336

Frostman opened this issue Jan 21, 2025 · 5 comments
Assignees

Comments

@Frostman
Copy link
Member

Frostman commented Jan 21, 2025

We need to be able to apply Flatcar upgrades automatically when upgrading the Control Node(s). It's mandatory to support it in a fully air-gapped way (we need to ship the updater with the installer/updater).

Flatcar docs on how to apply the upgrade in offline mode: https://www.flatcar.org/docs/latest/setup/releases/update-strategies/#airgapped-updates

  • test that applying the Flatcar upgrade doesn't break anything on the control node (before and after the reboot)
  • copy flatcar upgrade bin to our ghcr.io
  • add flatcar upgrade bin to the installer artifacts
  • automatically apply flatcar upgrade bin (it should be conditional - check current version and do the reboot if required)
@Frostman
Copy link
Member Author

it should become part of the hhfab-recipe control upgrade, probably just in the end of it after the prompt for the users

@cesargithedgehog
Copy link
Contributor

cesargithedgehog commented Jan 27, 2025

Manual tests on the upgrade:

core@control-1 ~ $ sudo flatcar-update --to-version 4186.0.0 --to-payload flatcar_production_update.gz

Before upgrading:
core@control-1 ~ $ uname -a Linux control-1 6.6.60-flatcar #1 SMP PREEMPT_DYNAMIC Tue Nov 12 16:20:46 -00 2024 x86_64 Intel(R) Core(TM) Ultra 7 165U GenuineIntel GNU/Linux

After upgrading:
core@control-1 ~ $ uname -a Linux control-1 6.6.65-flatcar #1 SMP PREEMPT_DYNAMIC Fri Dec 13 11:52:04 -00 2024 x86_64 Intel(R) Core(TM) Ultra 7 165U GenuineIntel GNU/Linux

@cesargithedgehog
Copy link
Contributor

cesargithedgehog commented Jan 28, 2025

Flatcar upgrade bin - ghcr.io:

  • docker pull ghcr.io/githedgehog/fabricator/flatcar-update:v4081.2.0

@cesargithedgehog
Copy link
Contributor

add flatcar upgrade bin to the installer artifacts - #369

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

2 participants