Project

General

Profile

action #67123

Updated by JERiveraMoya almost 3 years ago

 
 After research in #88966 ## Observation 

 if we can assume check the logs, we see that the setup makes sense, just need more sysadmin actions by command line to create users (which "send_key ret" is out of scope for us) so we could proceed with: 
 - Move test scenario from dev group to prod and label with the bug: https://bugzilla.opensuse.org/show_bug.cgi?id=1177302 
 - Contact samba team (through William Brown possible better) about the services 'smb' and 'nmb' not restarting after applying changes (perhaps try sent to reproduce it manually again, the first try SUT. Very strange as there has been no recent code change in a VM,services were up and running) only that place : https://github.com/os-autoinst/os-autoinst-distri-opensuse/commits/master/lib/yast2_widget_utils.pm. If we change the last time that code was working, we see send_key ret was working ( see here https://openqa.opensuse.org/tests/1266926#step/yast2_samba/33 ) 

 Temporary workaround used from local branch for now: CASEDIR used in openQA. 
   We could verify if there test suite on ooo (CASEDIR="https://github.com/JRivrain/os-autoinst-distri-opensuse.git#samba_tempfix") to be removed after this problem is high load or something else solved. 

 **before:** 
 [2020-05-15T04:14:39.776 CEST] [debug] <<< testapi::check_screen(mustmatch="yast2_ncurses_service_start_after_writing_conf", timeout=1) 
 [2020-05-15T04:14:39.794 CEST] [debug] no match: 4.9s, best candidate: yast2_dns_server-yast2_ncurses_service_start_after_writing_conf-20180827 (0.00) 
 [2020-05-15T04:14:40.778 CEST] [debug] no change: 3.9s 
 [2020-05-15T04:14:41.779 CEST] [debug] no change: 2.9s 
 [2020-05-15T04:14:42.780 CEST] [debug] no change: 1.9s 
 [2020-05-15T04:14:44.254 CEST] [debug] >>> testapi::_handle_found_needle: found yast2_dns_server-yast2_ncurses_service_start_after_writing_conf-20180827, similarity 1.00 @ 471/274 
 [2020-05-15T04:14:44.254 CEST] [debug] tests/console/yast2_proxy.pm:90 called yast2_widget_utils::change_service_configuration -> lib/yast2_widget_utils.pm:55 called yast2_widget_utils::change_service_configuration_step -> lib/yast2_widget_utils.pm:81 called testapi::send_key 
 [2020-05-15T04:14:44.255 CEST] [debug] <<< testapi::send_key(key="ret", do_wait=0, wait_screen_change=0) 

 **now:**  
 yast2_widget_utils::change_service_configuration -> lib/yast2_widget_utils.pm:55 called yast2_widget_utils::change_service_configuration_step -> lib/yast2_widget_utils.pm:79 called testapi::send_key_until_needlematch 
 [2020-05-20T12:29:53.613 CEST] [debug] <<< testapi::check_screen(mustmatch="yast2_ncurses_service_start_after_writing_conf", timeout=1) 
 [2020-05-20T12:29:53.636 CEST] [debug] no match: 4.9s, best candidate: yast2_dns_server-yast2_ncurses_service_start_after_writing_conf-20180827 (0.00) 
 [2020-05-20T12:29:54.615 CEST] [debug] no change: 3.9s 
 [2020-05-20T12:29:55.617 CEST] [debug] no change: 2.9s 
 [2020-05-20T12:29:56.617 CEST] [debug] no change: 1.9s 
 [2020-05-20T12:29:58.103 CEST] [debug] >>> testapi::_handle_found_needle: found yast2_dns_server-yast2_ncurses_service_start_after_writing_conf-20180827, similarity 1.00 @ 175/98 
 [2020-05-20T12:29:58.103 CEST] [debug] tests/console/yast2_samba.pm:393 called yast2_samba::setup_samba -> tests/console/yast2_samba.pm:371 called yast2_samba::setup_samba_startup -> tests/console/yast2_samba.pm:186 called yast2_widget_utils::change_service_configuration -> lib/yast2_widget_utils.pm:56 called yast2_widget_utils::change_service_configuration_step -> lib/yast2_widget_utils.pm:77 called testapi::send_key 
 [2020-05-20T12:29:58.103 CEST] [debug] <<< testapi::send_key(key="alt-a", wait_screen_change=0, do_wait=0) 

 openQA test in the openqa environment. scenario opensuse-Tumbleweed-DVD-x86_64-samba_ncurses@64bit fails in 
 - Optionally [yast2_samba](https://openqa.opensuse.org/tests/1273561/modules/yast2_samba/steps/33) 

 Let's start with TW first, as we could add some smoke test, but the three components which involve linux, ldap and samba account need should get patch there first. 

 ## Test suite description 
 Samba test has to be configured properly excluded from ncurses suite until resolution of bsc#1146736. This test suite is to be seen as one, so to keep us executed in the scope of testing YaST component we could simplify it to see that something is written development groups. 


 ## Reproducible 

 Fails since (at least) Build [20200519](https://openqa.opensuse.org/tests/1273561) (current job) 


 ## Expected result 

 Last good: (unknown) (or more recent) 


 ## Further details 

 Always latest result in ldap configuration, for example check this [branch](https://github.com/jknphy/os-autoinst-distri-opensuse/blob/fix_yast2_ldap_samba/tests/console/yast2_samba.pm#L388-L407) where was modified in the UI 'synchronization of password: "no" to avoid to configure properly those components and still see something written in ldap. scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=opensuse&flavor=DVD&machine=64bit&test=samba_ncurses&version=Tumbleweed) 

Back