Project

General

Profile

action #72175

Updated by SLindoMansilla over 3 years ago

## 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**: 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](https://openqa.suse.de/tests/4760858/modules/firewalld/steps/32) 

 ## Reproducible 

 Fails since (at least) Build [48.1](https://openqa.suse.de/tests/4760858) (current job)

Back