[Bug 1166933] New: Wicked network setup of wifi fails with wpa_supplicant version 2.6-lp151.5.3.1-x86_64
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933 Bug ID: 1166933 Summary: Wicked network setup of wifi fails with wpa_supplicant version 2.6-lp151.5.3.1-x86_64 Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.1 Hardware: x86 OS: Linux Status: NEW Severity: Major Priority: P5 - None Component: Network Assignee: screening-team-bugs@suse.de Reporter: gerben.jansen@aol.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- My laptop is configured with a "Wicked" interface on my wifi network (because i login to it from other places, so i need a fixed ip-address) In the past, after i installed a whole bunch of patches, suddenly that didn't work anymore. The interface wasn't running and i was forced to configure it as a "network managed" interface (much to my dislike). Some time later, after more patches being installed, i discovered i could use the "Wicked" option again, but i never understood what made the problem go away. Today i installed exactly one patch "wpa_supplicant-2.6-lp151.5.3.1-x86_64" and the issue came back, i.e. I can only use it as a "network managed" interface, "wicked" fails. Going back to wpa_supplicant-2.6-lp151.4.4.x86_64 makes everything run normally again. Possibly this problem is also described in bug 1099835 , i'm not sure there. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c1
--- Comment #1 from Gerben Jansen
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
Gerben Jansen
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c2
--- Comment #2 from Gerben Jansen
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c3
Andrei Borzenkov
The patch that installed the failing wpa_supplicant version references bug 1165266 (bugzilla)
It must be reverted. This is absolutely wrong. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
Toomas Aas
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c4
Илья Индиго
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c5
--- Comment #5 from Toomas Aas
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c6
--- Comment #6 from Toomas Aas
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c7
--- Comment #7 from Илья Индиго
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c8
--- Comment #8 from Gerben Jansen
Is this so default in Leap? Yes, mine is called wlan1 because i had the same troubles starting up the interface some months ago. After fixing that, mine was called wlan1 (instead of wlan0)
I have 2 files, both create with: wpa-log.sh wpa.ok is its result right after booting with wpa_supplicant-2.6-lp151.4.4.x86_64, wpa.fail with wpa_supplicant-2.6-lp151.5.3.1.x86_64 After installing wpa_supplicant-2.6-lp151.5.3.1.x86_64, i already had lost my wifi network, i rebooted my laptop (which took longer than usual) and ran the wpa-log.sh script. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c9
--- Comment #9 from Gerben Jansen
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c10
--- Comment #10 from Gerben Jansen
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c11
--- Comment #11 from Gerben Jansen
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c12
--- Comment #12 from Andrei Borzenkov
Mar 22 10:02:34 susa dbus-daemon[936]: [system] Failed to activate service 'fi.epitest.hostap.WPASupplicant': timed out (service_start_timeout=25000ms)
Direct consequence of After=network.target on system boot. ...
Mar 22 10:02:39 susa systemd[1]: Started wicked managed network interfaces. Mar 22 10:02:39 susa systemd[1]: Reached target Network. Mar 22 10:02:39 susa systemd[1]: Starting WPA Supplicant daemon... Mar 22 10:02:39 susa systemd[1]: Started WPA Supplicant daemon.
Now it is started but it is too late. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c13
Илья Индиго
Created attachment 833576 [details] wpa.fail
I think I found a general solution. If I understood correctly, wicked only uses the file "wpa_supplicant.service", while systemd-networkd uses "wpa_supplicant @ .service". The solution is obvious. In wpa_supplicant.service Before=network.target After=dbus.service In wpa_supplicant@.service After=dbus.service network.target The problem is that I just couldn't get wicked + wpa_suplicant to work in Tumbleweed. dbus-daemon[629]: [system] Activating via systemd: service name='fi.epitest.hostap.WPASupplicant' unit='wpa_supplicant.service' requested by ':1.13' (uid=0 pid=778 comm="/usr/sbin/wickedd --systemd --foreground ") systemd[1]: Starting WPA Supplicant daemon... systemd[1]: Started WPA Supplicant daemon. systemd[1]: systemd-rfkill.service: Succeeded. nscd: 650 проверяется отслеживаемый файл «/etc/services»: Нет такого файла или каталога dbus-daemon[629]: [system] Failed to activate service 'fi.epitest.hostap.WPASupplicant': timed out (service_start_timeout=25000ms) wickedd[778]: ni_wpa_interface_bind(wlo1): Operation not permitted wickedd[778]: wpa_supplicant doesn't know interface wlo1 wickedd-nanny[782]: device wlo1: call to org.opensuse.Network.Wireless.changeDevice() failed: General failure wickedd-nanny[782]: wlo1: failed to bring up device, still continuing kernel: [ 62.843162] RTL8211B Gigabit Ethernet r8169-300:00: attached PHY driver [RTL8211B Gigabit Ethernet] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE) kernel: [ 62.993007] r8169 0000:03:00.0 enp3s0: Link is Down wicked[783]: enp3s0 setup-in-progress wicked[783]: If it doesn’t help right away, try rebooting and trying to configure wi-fi again. wlo1 device-not-running Although without wicked it starts up and works great! Please check my theory. 1 Install the wpa_supplicant-2.6-lp151.5.3.1.x86_64.rpm package (which faild). 2 edit the file "sudo vim /usr/lib/systemd/system/wpa_supplicant.service" Before=network.target After=dbus.service 3 sudo systemctl daemon-reexec 4 sudo systemctl restart wpa_supplicant network If it doesn’t help right away, try rebooting and trying to configure wi-fi again and tell me about the result. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c14
--- Comment #14 from Andrei Borzenkov
The problem is that I just couldn't get wicked + wpa_suplicant to work in Tumbleweed.
https://bugzilla.opensuse.org/show_bug.cgi?id=1167325 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c15
--- Comment #15 from Илья Индиго
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c16
--- Comment #16 from Илья Индиго
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c17
--- Comment #17 from Gerben Jansen
In wpa_supplicant.service Before=network.target After=dbus.service
In wpa_supplicant@.service After=dbus.service network.target
wpa_supplicant.service already had that string,, added "network.target" to wpa_supplicant@.service Installed version 2.6-lp151.5.3.1-x86_64 and typed "reboot" System hung on shutdown, so i had to hard-power it off. Next on startup the interface was still not working. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c18
--- Comment #18 from Илья Индиго
In wpa_supplicant.service Before=network.target After=dbus.service
In wpa_supplicant@.service After=dbus.service network.target
wpa_supplicant.service already had that string,, added "network.target" to wpa_supplicant@.service
Installed version 2.6-lp151.5.3.1-x86_64 and typed "reboot"
System hung on shutdown, so i had to hard-power it off.
Next on startup the interface was still not working.
Ok, try change both files wpa_supplicant.service and wpa_supplicant@.service to Before=network.target After=dbus.service And reboot. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c19
--- Comment #19 from Andrei Borzenkov
I think so, wicked, with this principle of operation, can not change the Mac-Address of the wireless interface (LLADDR)?
It can. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c20
--- Comment #20 from Илья Индиго
(In reply to Gerben Jansen from comment #17)
In wpa_supplicant.service Before=network.target After=dbus.service
In wpa_supplicant@.service After=dbus.service network.target
wpa_supplicant.service already had that string,, added "network.target" to wpa_supplicant@.service
Installed version 2.6-lp151.5.3.1-x86_64 and typed "reboot" Something is wrong.
In lp151.5.3.1 Both files must be with After = dbus.service network.target In lp151.4.4 both files must be with Before = network.target After = dbus.service Either you were mistaken when you answered, or you did something wrong. (Your package did not install normally and did not overwrite the files) This is the only difference between these versions, I do not understand why it did not work for you. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c21
--- Comment #21 from Andrei Borzenkov
If I understood correctly,
You did not.
wicked only uses the file "wpa_supplicant.service",
No, wicked is using D-Bus service. Wicked neither knows nor cares how this D-Bus service became available.
while systemd-networkd uses "wpa_supplicant @ .service".
systemd-networkd neither knows nor cares about wpa_supplicant at all. It does not communicate with wpa_supplicant, nor does it attempt to start any service related to wpa_supplicant. Its job begins when wireless interface is associated to AP. How that happens is outside of systemd-networkd scope. That said, as delivered currently wpa_supplicant@.service template is simply broken. Only one process can bind to a given D-Bus service, so at any point only one of wpa_supplicant@.service or wpa_supplicant.service may be active which does not allow having multiple interfaces. Once wpa_supplicant.service is started, no other wpa_supplicant@.service instances may become active. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c22
--- Comment #22 from Gerben Jansen
(In reply to Илья Индиго from comment #18)
(In reply to Gerben Jansen from comment #17)
In wpa_supplicant.service Before=network.target After=dbus.service
In wpa_supplicant@.service After=dbus.service network.target
wpa_supplicant.service already had that string,, added "network.target" to wpa_supplicant@.service
Installed version 2.6-lp151.5.3.1-x86_64 and typed "reboot" Something is wrong.
In lp151.5.3.1 Both files must be with After = dbus.service network.target
In lp151.4.4 both files must be with Before = network.target After = dbus.service
Either you were mistaken when you answered, or you did something wrong. (Your package did not install normally and did not overwrite the files)
This is the only difference between these versions, I do not understand why it did not work for you.
Илья Индиго, i now installed version 2.6-lp151.5.3.1-x86_64, checked that both file contained as you said: ==> wpa_supplicant.service <== [Unit] Description=WPA Supplicant daemon After=dbus.service network.target ==> wpa_supplicant@.service <== [Unit] Description=WPA Supplicant daemon (interface %i) After=dbus.service network.target rebooted and the interface didn't start. (i have a wpa.fail2 file for this) I now lock the wpa_supplicant-2.6-lp151.4.4.x86_64 version and let you and Andrei discuss over this .... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c23
--- Comment #23 from Gerben Jansen
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c24
Jim Taylor
(In reply to Gerben Jansen from comment #17)
In wpa_supplicant.service Before=network.target After=dbus.service
In wpa_supplicant@.service After=dbus.service network.target
wpa_supplicant.service already had that string,, added "network.target" to wpa_supplicant@.service
Installed version 2.6-lp151.5.3.1-x86_64 and typed "reboot"
System hung on shutdown, so i had to hard-power it off.
Next on startup the interface was still not working.
Ok, try change both files wpa_supplicant.service and wpa_supplicant@.service to
Before=network.target After=dbus.service
And reboot.
Changing just wpa_supplicant.service to Before=network.target After=debus.service Corrects the problem I reported in bug 1167319 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c25
Илья Индиго
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c26
--- Comment #26 from Gerben Jansen
I wrote the current Leap 15.1 KDE-live to a USB flash drive and checked. You mean that you released the patch without checking it against 15.1 ???
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c27
--- Comment #27 from Илья Индиго
Jim, yes. It works with your settings. I was misunderstanding Илья
Илья
I wrote the current Leap 15.1 KDE-live to a USB flash drive and checked. You mean that you released the patch without checking it against 15.1 ???
1 I did not ask to add it in 15.1. I asked it to add in 15.2. 2 By default, all Leap use Network Manager where wi-fi works great. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c28
Robert Taylor
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c29
--- Comment #29 from Jim Taylor
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c30
--- Comment #30 from Илья Индиго
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c32
Marius Tomaschewski
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c33
Stefan Brüns
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c34
--- Comment #34 from Andrei Borzenkov
This apparently also affects the TumbleWeed netinstall.
Even if this bug is fixed, TW is impossible to install over WiFi due to https://bugzilla.opensuse.org/show_bug.cgi?id=1156920. Wicked simply does not work with current wpa_supplicant. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
Jan Kardell
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933
http://bugzilla.opensuse.org/show_bug.cgi?id=1166933#c38
Sergio Lindo Mansilla
participants (1)
-
bugzilla_noreply@novell.com