Bug 1155675 - ovsdb: Could not connect: No such file or directory
ovsdb: Could not connect: No such file or directory
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Network
Current
x86-64 openSUSE Factory
: P5 - None : Normal (vote)
: ---
Assigned To: E-mail List
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-11-02 00:54 UTC by andy great
Modified: 2019-11-02 20:19 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
journalctl of NetworkManager when stop,start, unplug-replug wifi USB. (15.32 KB, text/plain)
2019-11-02 00:56 UTC, andy great
Details
The live image is build with KIWI, this is the config.xml (7.60 KB, text/xml)
2019-11-02 00:59 UTC, andy great
Details
The live image is build with KIWI, this is the config.sh (3.70 KB, application/x-shellscript)
2019-11-02 01:00 UTC, andy great
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andy great 2019-11-02 00:54:37 UTC
Hello,
I have been trying to build live ISO with OpenSUSE's KIWI.

When the live image first boot, no wifi. I pull out my USB wifi receiver and plugging it back in, see wifi and connect normally.
Even after reboot, internet is gone until I unplug-replug the USB wifi.
I don't know much technical detail how to solve it but I have some info.
The very first "systemctl status NetworkManager.service" is run when the internet connect normally.
I found that restarting NetworkManager.service broke the wifi, which the status of no wifi is shown in second "systemctl status NetworkManager.service"

tux@localhost:~> sudo systemctl status NetworkManager.service
[sudo] password for root: 
● NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
           └─NetworkManager-ovs.conf
   Active: active (running) since Fri 2019-11-01 04:59:40 +07; 8min ago
     Docs: man:NetworkManager(8)
 Main PID: 3443 (NetworkManager)
    Tasks: 5 (limit: 4915)
   Memory: 11.0M
   CGroup: /system.slice/NetworkManager.service
           ├─3443 /usr/sbin/NetworkManager --no-daemon
           └─4933 /sbin/dhclient -d -q -sf /usr/lib/nm-dhcp-helper -pf /var/run/dhclient-wlan0.pid -lf /var/lib/NetworkManager/dhclient-b9f91975-3548-4f1b-b19c-79f4e71c2b55-wlan0.lease -cf /var/lib/NetworkManager/dhclient-wlan0.conf wlan0

Nov 01 05:04:15 localhost.localdomain NetworkManager[3443]: <info>  [1572559455.5974] dhcp4 (wlan0):   nameserver '194.168.8.100'
Nov 01 05:04:15 localhost.localdomain NetworkManager[3443]: <info>  [1572559455.5974] dhcp4 (wlan0): state changed unknown -> bound
Nov 01 05:04:15 localhost.localdomain NetworkManager[3443]: <info>  [1572559455.5992] device (wlan0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Nov 01 05:04:15 localhost.localdomain NetworkManager[3443]: <info>  [1572559455.6009] device (wlan0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Nov 01 05:04:15 localhost.localdomain NetworkManager[3443]: <info>  [1572559455.6015] device (wlan0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Nov 01 05:04:15 localhost.localdomain NetworkManager[3443]: <info>  [1572559455.6024] manager: NetworkManager state is now CONNECTED_LOCAL
Nov 01 05:04:15 localhost.localdomain NetworkManager[3443]: <info>  [1572559455.6374] manager: NetworkManager state is now CONNECTED_SITE
Nov 01 05:04:15 localhost.localdomain NetworkManager[3443]: <info>  [1572559455.6376] policy: set 'VM2080987' (wlan0) as default for IPv4 routing and DNS
Nov 01 05:04:15 localhost.localdomain NetworkManager[3443]: <info>  [1572559455.8407] device (wlan0): Activation: successful, device activated.
Nov 01 05:04:15 localhost.localdomain NetworkManager[3443]: <info>  [1572559455.9148] manager: NetworkManager state is now CONNECTED_GLOBAL
tux@localhost:~> sudo systemctl restart NetworkManager.service
tux@localhost:~> sudo systemctl status NetworkManager.service 
● NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
           └─NetworkManager-ovs.conf
   Active: active (running) since Fri 2019-11-01 05:07:56 +07; 2s ago
     Docs: man:NetworkManager(8)
 Main PID: 5143 (NetworkManager)
    Tasks: 4 (limit: 4915)
   Memory: 4.0M
   CGroup: /system.slice/NetworkManager.service
           └─5143 /usr/sbin/NetworkManager --no-daemon

Nov 01 05:07:57 localhost.localdomain NetworkManager[5143]: <info>  [1572559677.1986] device (lo): carrier: link connected
Nov 01 05:07:57 localhost.localdomain NetworkManager[5143]: <info>  [1572559677.1989] manager: (lo): new Generic device (/org/freedesktop/NetworkManager/Devices/1)
Nov 01 05:07:57 localhost.localdomain NetworkManager[5143]: <info>  [1572559677.1999] manager: (lan0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/2)
Nov 01 05:07:57 localhost.localdomain NetworkManager[5143]: <info>  [1572559677.2010] device (lan0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Nov 01 05:07:57 localhost.localdomain NetworkManager[5143]: <info>  [1572559677.2030] device (wlan0): driver supports Access Point (AP) mode
Nov 01 05:07:57 localhost.localdomain NetworkManager[5143]: <info>  [1572559677.2034] manager: (wlan0): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/3)
Nov 01 05:07:57 localhost.localdomain NetworkManager[5143]: <info>  [1572559677.2063] ovsdb: Could not connect: No such file or directory
Nov 01 05:07:57 localhost.localdomain NetworkManager[5143]: <info>  [1572559677.2082] modem-manager: ModemManager available
Nov 01 05:07:57 localhost.localdomain NetworkManager[5143]: <info>  [1572559677.2088] supplicant: wpa_supplicant running
Nov 01 05:07:57 localhost.localdomain NetworkManager[5143]: <info>  [1572559677.2117] agent-manager: req[0x555fe82c03d0, :1.19/org.kde.plasma.networkmanagement/1000]: agent registered
Comment 1 andy great 2019-11-02 00:56:03 UTC
Created attachment 823066 [details]
journalctl of NetworkManager when stop,start, unplug-replug wifi USB.
Comment 2 andy great 2019-11-02 00:56:42 UTC
lsusb

Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 003: ID 1a2c:0e24 China Resource Semico Co., Ltd 
Bus 005 Device 002: ID 24ae:4104  
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 2001:3c15 D-Link Corp. DWA-140 RangeBooster N Adapter(rev.B3) [Ralink RT5372]
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Comment 4 andy great 2019-11-02 00:59:31 UTC
Created attachment 823067 [details]
The live image is build with KIWI, this is the config.xml
Comment 5 andy great 2019-11-02 01:00:01 UTC
Created attachment 823068 [details]
The live image is build with KIWI, this is the config.sh
Comment 6 andy great 2019-11-02 20:19:08 UTC
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-des...tent-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"