Actions
action #72175
closed[functional][u] test fails in firewalld - extend post_fail_hooks to capture journal from specific units
Status:
Resolved
Priority:
High
Assignee:
Category:
Refactor/Code Improvements
Target version:
SUSE QA - Milestone 30
Start date:
2020-10-01
Due date:
% Done:
0%
Estimated time:
42.00 h
Difficulty:
Description
Observation¶
Currently if a test fails, and somehow a systemd unit related to a test module was called we don't get the logs for that specific journal/systemd job.
Suggestions:¶
- Modify Utils::Systemd::systemctl to keep an
systemd_services
array, with the services that were started or restarted - Modify opensusebasetest::post_run_hook to clear up the systemd_services array
- Modify opensusebasetest::export_logs_basic to upload the journal file of every service that was added to the systemd_services array
Acceptance criteria¶
- AC: When a test like firewalld fails, openQA uploads automatically the journal log for firewalld.
openQA test in scenario sle-15-SP3-Online-ppc64le-extra_tests_textmode@ppc64le fails in
firewalld
Reproducible¶
Fails since (at least) Build 48.1 (current job)
Actions