Bug 303153

Summary: NetworkManager shows duplicate networks
Product: [Unmaintained] Network Management Reporter: Thomas Damgaard <thomasdn>
Component: Plasma WidgetAssignee: Sebastian Kügler <sebas>
Status: RESOLVED DUPLICATE    
Severity: normal CC: lamarque, wstephenson
Priority: NOR    
Version: 0.9   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
URL: http://imgur.com/a/JIb1Y
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thomas Damgaard 2012-07-07 14:57:58 UTC
I have four network interfaces on my primary workstation: 
eth0: NAT connection to an untrusted network
eth1: wifi bridge to a trusted network
eth2: ethernet, closed network with limited set of hosts used for test
eth3: ethernet bridge to trusted network

In network manager these networks are listed in the Interfaces column.
However, in the Connections list, there are 3 duplicate entries for each network. Only some of them works.
Those that do not work gives the following error in syslog when I click them:
2012-07-07T16:46:02.465492+02:00 barbera NetworkManager[979]: <warn> connection /org/freedesktop/NetworkManager/Settings/3 failed to activate: (2) The connection's MAC address did not match this device

It appears there is no logic in which networks that works. However, one of the duplicates work for each network, but it is not necessarily the first or the last. It seems random.

Something is broken here, but I am not sure what the root cause is.
Even if the underlying problem is not caused by the Network Manager widget, the following issues must be addressed:
1: There should be a way in the GUI to remove the non-functioning connection entries
2: There should be a way to "reset" all connections and re-autodetect networks present on the machine. This is especially important on systems that have hardware added and removed frequently.
3: The "Interfaces" list does not show the name of the devices. It actually just shows 4 *identical* entries. This is extremely confusing. One fix to this could be to show the underlying network interface name of the connection.




Reproducible: Always

Steps to Reproduce:
1. Have a system with multiple NICs (e.g. a virtual machine) 
2. Set up connection profiles in NetworkManager
3. Click Network Manager plasma widget to list connections


Actual Results:  
Duplicate entries are shown

Expected Results:  
One entry per connection

I have observed this problem in both Kubuntu 12.04 as well as Kubuntu 11.10.

The following are just ideas to what *might* be related to this issue:
 - MAC addresses of NICs has been changed (this can happen if you get a new NIC and switch it with the existing one -- NM should handle this
 - I periodically reinstall my system (typically with each Ubuntu release). When I reinstall, I make a backup of /home. Then I reinstall Ubuntu, create users, copy the backed up /home onto the new system. Then I log in and expect all user settings to be as before. Maybe NM does not handle this correctly  -- the fact that the system has been reinstalled but some settings in .kde might have references to MAC addresses og UUIDs that has changed?
Comment 1 Lamarque V. Souza 2012-07-08 23:44:08 UTC

*** This bug has been marked as a duplicate of bug 301762 ***