Bug 1159160

Summary: YaST: cannot configure wireless with wpa-psk and wicked
Product: [openSUSE] openSUSE Tumbleweed Reporter: Thorsten Kukuk <kukuk>
Component: YaST2Assignee: E-mail List <yast2-maintainers>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None CC: aschnell, jreidinger, mfilka
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2log from yast2-network run

Description Thorsten Kukuk 2019-12-13 07:10:08 UTC
Created attachment 826092 [details]
y2log from yast2-network run

I try to configure a wireless network interface with YaST to use with wicked, not network manager. But YaST seems to ignore the password for wpa-psk:

Dez 13 07:06:55 pi3-1 wicked[19879]: ifcfg-wlan0: no WIRELESS_WPA_PSK value specified
Comment 1 Stefan Hundhammer 2019-12-16 09:19:21 UTC
Michal?
Comment 2 Josef Reidinger 2019-12-27 10:51:25 UTC
Thanks for report. I think I spot where is problem.
At https://github.com/yast/yast-network/blob/master/src/lib/y2network/sysconfig/connection_config_writers/wireless.rb#L54 we use auth_mode to write auth specific info and problem is that mode is wpa-psk and not just psk. So we need to fix it and ideally also add test cases for various combination of auth modes and keys. Now we test it, but we have inconsistent auth_mode ( so test for writting use mode "psk", but widget in UI set "wpa-psk" ).
Comment 3 Josef Reidinger 2019-12-27 11:06:50 UTC
I think I know what is root of issue. There are multiple possible values in ifcfg file according to https://github.com/openSUSE/wicked/blob/b6d960fd8c38d46417adf5f82b7ba70214ced4f0/client/suse/compat-suse.c#L3708

so there are wpa-psk and also just psk psk is available and both means the same. I worry we need to implement it also in yast to understand both aliases.
Comment 4 Josef Reidinger 2019-12-27 12:48:36 UTC
fixed by https://github.com/yast/yast-network/pull/1019