Bug 342007 - Active connections disappear from the list of connections when the bridged connection is disconnected while the VPN connection is active
Summary: Active connections disappear from the list of connections when the bridged co...
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Networks widget (show other bugs)
Version: master
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-18 18:37 UTC by auxsvr
Modified: 2024-12-23 18:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Debug output from plasma-nm (7.03 KB, text/plain)
2014-12-18 20:31 UTC, auxsvr
Details
Full debug output (11.70 KB, text/plain)
2014-12-18 21:10 UTC, auxsvr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description auxsvr 2014-12-18 18:37:29 UTC
I have two connections on the desktop, a bridge and a VPN. If I connect to VPN (openvpn), then disconnect the bridge (accidentally, because the VPN connection takes the top position), then all active connections disappear from the list of connections and all that remains is the list of available connections comprising only the bridge; the VPN connection vanishes. A way to restore the VPN connection is to connect to the bridge, but the active connections will still be missing. The only way to restore them, to the best of my knowledge, is to restart the plasmoid.

Reproducible: Always

Steps to Reproduce:
1. Connect to VPN.
2. Disconnect the bridge.
3. Connect to the bridge.

Actual Results:  
Active connections disappear from the list of connections. After the 3rd step, only the VPN connection appears in the list of available connections.

Expected Results:  
The active connections list should always be present.
Comment 1 Jan Grulich 2014-12-18 19:56:11 UTC
Could you enable plasma-nm in kdebugdialog and start plasma-desktop from console, do all the steps you mentioned and send me the output? Also output from "nmcli -f all -p device show" after you do all mentioned steps could be useful.
Comment 2 auxsvr 2014-12-18 20:31:52 UTC
Created attachment 90042 [details]
Debug output from plasma-nm

Attached is the debug output per your request. Also, "nmcli -f all -p device show" yields an error, but

~> nmcli -f all -p device 
=======================================================================================
                                   Status of devices
=======================================================================================
DEVICE     TYPE              STATE         DBUS-PATH                                  
---------------------------------------------------------------------------------------
eth_s4_0   802-3-ethernet    connected     /org/freedesktop/NetworkManager/Devices/2  
br0        bridge            connected     /org/freedesktop/NetworkManager/Devices/1  
enp2s0     802-3-ethernet    unavailable   /org/freedesktop/NetworkManager/Devices/0
Comment 3 Jan Grulich 2014-12-18 20:57:42 UTC
Send please complete output, I don't see plasma-nm initialization. You probably need to open the applet after you restart plasma-desktop to initialize it (or this is necessary only in Plasma 5, I'm not sure right now). Try just "nmcli -p device show", in older versions it prints automatically all details. What version of NetworkManager do you have?
Comment 4 auxsvr 2014-12-18 21:10:45 UTC
Created attachment 90045 [details]
Full debug output

Hopefully this is enough, with long output from irrelevant plasmoids deleted. Also,

> nmcli -p device show
Usage: nmcli device { COMMAND | help }

  COMMAND := { status | list | disconnect | wifi }

  status
  list [iface <iface>]
  disconnect iface <iface> [--nowait] [--timeout <timeout>]
  wifi [list [iface <iface>] [bssid <BSSID>]]
  wifi connect <(B)SSID> [password <password>] [wep-key-type key|phrase] [iface <iface>] [bssid <BSSID>] [name <name>]
               [--private] [--nowait] [--timeout <timeout>]

Error: 'dev' command 'show' is not valid.
> rpm -q NetworkManager
NetworkManager-0.9.8.8-10.1.x86_64
Comment 5 auxsvr 2014-12-29 10:47:01 UTC
Just upgraded to openSUSE 13.2 with NetworkManager-0.9.10.0. The plasmoid still has problems with the active connections: when I restart Networkmanager, no active connections appear under certain circumstances. Also, NetworkManager appears to be buggy, because when I disconnect the bridge while the VPN connection is active, often the bridge loses its interfaces and no connection is possible unless I restart NM.
Comment 6 Jan Grulich 2015-12-17 08:20:01 UTC
Is the situation different with Plasma 5?
Comment 7 auxsvr 2015-12-17 08:33:18 UTC
With Plasma 5.5.1 and NetworkManager 1.0.6, it is impossible to reconnect to the bridge after disconnection without restarting NetworkManager, therefore I'm unable to test for this problem.
Comment 8 Jan Grulich 2015-12-17 08:50:41 UTC
Does it work using nmcli? Anyway, we just filtered out "interprise" devices like bridge, bond etc. which are not that common on desktops so those connection types won't be shown in the applet anymore (for Plasma 5.6). You should be still able to configure them in our editor, however preferred way is to use nmcli as I'm not sure they have ever worked perfectly in plasma-nm.
Comment 9 auxsvr 2015-12-17 09:07:45 UTC
This must be a bug in NetworkManager: if I disconnect the bridge, even with nmcli, it loses its interfaces (brctl showstp br0 is empty) and NetworkManager cannot connect to the network. Sometimes even restarting NetworkManager does not fix this and I must delete br0 first, then restart NM.
Comment 10 Jan Grulich 2015-12-17 09:25:24 UTC
Ok, thanks for the information. I'm going to close this bug now as there is nothing we can fix in plasma-nm and support for bridge connections was dropped in the upcoming major version of plasma-nm.
Comment 11 Ben Cooksley 2024-12-23 18:25:51 UTC
Bulk transfer as requested in T17796