I can only connect to internet when un-plug/plug the USB wifi card (live ISO build with KIWI)

etc/NetworkManager/NetworkManager.conf

[main]
plugins=keyfile

[connectivity]
uri=http://conncheck.opensuse.org

Ok, that looks as expected.

I note that before the USB device is re-plugged, the following occurs…

Nov 02 06:08:16 localhost NetworkManager[2646]: <info>  [1572649696.3363] manager: (wlan0): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/3)
Nov 02 06:08:16 localhost NetworkManager[2646]: <info>  [1572649696.3397] ovsdb: Could not connect: No such file or directory

then when you reconnect the device D-Bus reports a different device to NM…

Nov 02 06:10:35 localhost NetworkManager[2730]: <info>   [1572649835.4617] manager: (wlan0): new 802.11 Wi-Fi device  (/org/freedesktop/NetworkManager/Devices/4)
Nov 02 06:10:35 localhost NetworkManager[2730]: <info>   [1572649835.4781] device (wlan0): state change: unmanaged ->  unavailable (reason 'managed', sys-iface-state: 'external')
Nov 02 06:10:36 localhost NetworkManager[2730]: <info>   [1572649836.1841] device (wlan0): set-hw-addr: set MAC address to  B2:67:4A:86:DD:D8 (scanning)
Nov 02 06:10:36 localhost NetworkManager[2730]: <warn>   [1572649836.4468] device (wlan0): connectivity:  "/proc/sys/net/ipv4/conf/all/rp_filter" is set to "1". This might break  connectivity checking for IPv4 on this device
Nov 02 06:10:36 localhost NetworkManager[2730]: <info>   [1572649836.4472] rfkill1: found Wi-Fi radio killswitch (at  /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/ieee80211/phy1/rfkill1)  (driver rt2800usb)
Nov 02 06:10:36 localhost NetworkManager[2730]: <info>   [1572649836.5134] sup-iface[0x557f0855f060,wlan0]: supports 4 scan SSIDs
Nov 02 06:10:36 localhost NetworkManager[2730]: <info>   [1572649836.5146] device (wlan0): supplicant interface state: starting  -> ready

This may need a bug report to progress. FWIW, “NetworkManager /org/freedesktop/NetworkManager/Devices/ ovsdb: Could not connect: No such file or directory” and similar search strings are turning up a lot of recent threads and bug reports, so there may well be a regression here, and it may be only certain corner cases that result in this unexpected behaviour.

If you don’t connect the wifi device until after the boot sequence has completed, does the wireless connectivity then happen as expected? Or is a re-plug still needed?

replug is needed even after boot is complete. Will report a bug on it.

I report the bug here with reference to this thread.
https://bugzilla.opensuse.org/show_bug.cgi?id=1155675

Thanks for the update.

Another thought - You could also try unloading the driver and reloading manually to see if that helps perhaps. If so, then it could be automated as a ‘workaround’ perhaps. A custom unit eg /etc/systemd/system/wlan-driver.service

with something like

#/etc/systemd/system/wlan-driver.service

 [Unit]
 Description=reload wifi driver during boot
 Wants=network.target
 After=network.target

 [Service]
 Type=oneshot
 ExecStart=/bin/bash -c 'modprobe -r rt2800usb && modprobe rt2800usb'

 [Install]
 WantedBy=graphical.target

I found the culprit, it was 70-persistent-net.rules inside /kiwi-descriptions/root/etc/udev/rules.d/ which come with KIWI live image template.

https://github.com/OSInside/kiwi-descriptions/blob/master/suse/x86_64/suse-tumbleweed-JeOS/root/etc/udev/rules.d/70-persistent-net.rules

I delete the 70-persistent-net.rules and it work again.

The content of the 70-persistent-net.rules is this, not sure how it broke my USB wifi dongle.


SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="?*",  ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="?*", NAME="lan0"

Good find - strange that it was named “lan0”