Project

General

Profile

coordination #35215

Updated by oorlov almost 6 years ago

## Observation 

 openQA test in scenario opensuse-15.0-GNOME-Live-x86_64-gnome-live@uefi-usb-2G fails in 
 [shutdown](https://openqa.opensuse.org/tests/658336/modules/shutdown/steps/14) 
 to shutdown in time. 


 ## Reproducible 

 Fails since (at least) Build [15.1](https://openqa.opensuse.org/tests/658030) 


 ## Expected result 

 Last good: [14.8](https://openqa.opensuse.org/tests/657702) (or more recent) 


 ## Problem 

 * **H1:** ACCEPT: Only usb-based images are affected -> other scenarios seem to be fine in general 
 * **H2:** REJECT: live-images shutdown does not work at all and needs to be reported as bug and worked around -> oorlov conducted two local verification runs, one passed and one fail so it can work 
 * **H3:** shutdown only takes much longer 
 * **H4:** Shutdown test fails because some of the installed services slow down it 
  * **H4.1** It fails due to services, that were installed during the test run 
  * **H4.2** It fails due to pre-installed service in the system itself 

 ## Suggestions 
 <del>* * Reproduce locally</del> locally 
 <del>* * Investigate existing failures and see if we would maybe just need to bump the timeout</del> timeout 
 <del>* * Crosscheck other tickets about shutdown</del> shutdown 
 <del>* * Make sure tests reliably shutdown and reboot by either just bumping timeout or finding out the real cause of being stuck or using another more reliant method to reboot as workaround</del> workaround 
 <del>* * If increasing timeout will not help or will show that shutdown takes too long time, then next step would be 
 removing splash screen and check what is happening in background</del> background 
 * Merge three shutdown files into one (x11/shutdown.pm, shutdown/shutdown.pm, kernel/shutdown_ltp.pm) to avoid duplication and have single place where shutdown logic is located; 
 * Add generic method to raise 'soft fail' if some amount of time is exceeded but action is not finished. If the time exceeded, then soft fail should be reported and test could wait more time for the action to be finished (it is required, because we want to raise 'soft fail' if assert_shutdown() is not completed in time and then wait until shutdown will actually finish); 
 * Add ability to debug system shutdown, *Optional:* Improve post_fail_hook, e.g. it could be press "esc" as done if job is started with "DEBUG_SHUTDOWN" parameter. 

 in first_boot test module 


 ## Further details 

 Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?version=15.0&test=gnome-live&arch=x86_64&flavor=GNOME-Live&machine=uefi-usb-2G&distri=opensuse) 

Back