| commit | d1f82e98ffe72d8378fbff4d127c6863d96b1f72 | [log] [tgz] |
|---|---|---|
| author | Lorenz Brun <lorenz@monogon.tech> | Thu Feb 08 19:27:46 2024 +0100 |
| committer | Lorenz Brun <lorenz@monogon.tech> | Mon Feb 12 18:10:28 2024 +0000 |
| tree | 5c5e47642c62a059307b7cb72f46edc302b86750 | |
| parent | 38b959fcda1df417ad833acc006fb4a039b4f9ce [diff] |
m/node: use pstore for panic storage The old solution never worked as the ESP was not mounted at that stage. In general storing crash data there is suboptimal as it makes lots of assumptions about the system state. For kernel crashes we already use pstore and there is an interface for storing userspace messages in pstore as well. Set up the panic handler to put its logs in there and extend the pstore cleanup runnable to also dump that part of pstore into the logtree after reboot. In most cases this also requires a kernel patch as most pstore backends to not allow userspace messages, probably to preserve limited space. Since we always clean pstore after reboot, this should be fine. Change-Id: I011109112e7bfd24d1772d5853a1d491c0cfd026 Reviewed-on: https://review.monogon.dev/c/monogon/+/2753 Reviewed-by: Serge Bazanski <serge@monogon.tech> Tested-by: Jenkins CI
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later!
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm (if you want to run tests).Our docs assume that Bazelisk is available as bazel on your PATH.
Refer to SETUP.md for detailed instructions.
Build CLI and node image:
bazel build //metropolis/cli/dbg //:launch --config dbg
Launch an ephemeral test node:
bazel test //:launch --config dbg --test_output=streamed
Run a kubectl command while the test is running:
bazel-bin/metropolis/cli/dbg/dbg_/dbg kubectl describe node
Run full test suite:
bazel test --config dbg //...