Skip to content

test(guestos_no_failed_systemd_units): log journal of failed units#10038

Merged
basvandijk merged 2 commits intomasterfrom
guestos-failed-units-journalctl
Apr 29, 2026
Merged

test(guestos_no_failed_systemd_units): log journal of failed units#10038
basvandijk merged 2 commits intomasterfrom
guestos-failed-units-journalctl

Conversation

@basvandijk
Copy link
Copy Markdown
Collaborator

@basvandijk basvandijk commented Apr 27, 2026

When systemctl list-units --failed returns non-empty output, parse each failed unit name and fetch its journalctl logs over SSH before the assert! fails the test, to aid debugging of flaky failures.

In particular we would like to debug the failing reload_nftables.service that failed this test twice on April 27th, 2026 at 12:36:36 pm and on April 23rd, 2026 at 6:28:42 pm.

Note we can't rely on the logs being shipped to ElasticSearch since the test completes either too quickly for the logs to be shipped or something in the nodes fails such that shipping can't be done successfully.

When systemctl list-units --failed returns non-empty output, parse each failed unit name and fetch its journalctl logs over SSH before the assert! fails the test, to aid debugging of flaky failures.
@basvandijk basvandijk requested a review from a team as a code owner April 27, 2026 18:07
@github-actions github-actions Bot added the test label Apr 27, 2026
@basvandijk basvandijk changed the title test: log journalctl output for failed systemd units in guestos test test(guestos_no_failed_systemd_units): log journal of failed systemd units Apr 27, 2026
@basvandijk basvandijk changed the title test(guestos_no_failed_systemd_units): log journal of failed systemd units test(guestos_no_failed_systemd_units): log journal of failed units Apr 27, 2026
Comment thread rs/tests/node/guestos_no_failed_systemd_units.rs Outdated
@basvandijk basvandijk added this pull request to the merge queue Apr 29, 2026
Merged via the queue into master with commit 30e5f94 Apr 29, 2026
37 checks passed
@basvandijk basvandijk deleted the guestos-failed-units-journalctl branch April 29, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants