[functional][opensuse][y] test fails in yast2_lan - race condition, pop up appears after multi tag assertion
|Category:||Bugs in existing tests||Estimated time:||3.00 hours|
|Target version:||SUSE QA tests - Milestone 24|
openQA test in scenario opensuse-15.1:S:A-Staging-DVD-x86_64-cryptlvm@64bit fails in
Test suite description¶
This looks like a race condition. The wrong needle matches even though the popup is there.
Pop-up with 'Networkmanager_controlled' tag does not appear immediately, so
yast2_lan manages to match first and assumes that network configuration is controlled by wicked, which is not the case.
There should be already some wrapper to check symlink for the network service.
We can check if network is controlled by wicked or NM and make our expectations more strict, so that we assert that pop-up is shown in case of NM and test will fail if it's shown, but network is controlled by wicked.
Fails since (at least) Build 214.1 (current job)
Last good: 213.6 (or more recent)
Always latest result in this scenario: latest
#1 Updated by SLindoMansilla 3 months ago
- Subject changed from test fails in yast2_lan to [functional][opensuse] test fails in yast2_lan
As a result of backlog triaging (see https://progress.opensuse.org/projects/openqatests/wiki#ticket-backlog-triaging for more information).
Please, feel free to adjust the category or the "[label]" if you think different.
#11 Updated by JRivrain about 1 month ago
I made it simple, there is an existing function called is_network_manager_default. I t is pretty dumb though, it only checks if we are on Opensuse where we have NM as default. I had first done a check with systemctl that worked, and thought I'd rather put that function in a parent script like y2_common, but then discovered the existing function which is simpler.
test will fail if it's shown, but network is controlled by wicked.
It does fail now in that case: http://amazing.suse.cz/tests/5896#step/yast2_lan/18
#13 Updated by JRivrain about 1 month ago
The PR had to be reverted because it looks like we cannot rely on the function is_network_manager_default: it is irrelevant in various cases such as https://openqa.opensuse.org/tests/898369#step/yast2_lan/11 and https://openqa.opensuse.org/tests/898103#.. In those cases (upgrade and generic desktop on TW) Opensuse defaults to wicked. That function is used by yast2_lan_hostname and yast2_network_settings, so I'm surprised it did not cause problems earlier. I want to investigate a bit on this, and of course create a new PR, so I put the ticket back to "in progress".