Bug 1440435 - NetworkManager fails to bridge, bring up slaves for VLAN interfaces
Summary: NetworkManager fails to bridge, bring up slaves for VLAN interfaces
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 26
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-08 22:53 UTC by Stewart Adam
Modified: 2017-04-10 08:11 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-04-10 08:11:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stewart Adam 2017-04-08 22:53:32 UTC
Description of problem:
NetworkManager fails to bring bring online a bridge slave if that slave is a VLAN interface.

Version-Release number of selected component (if applicable):
NetworkManager-1.8.0-0.2.rc2.fc26.x86_64

How reproducible:
Always

Steps to Reproduce:
ETH_IFACE=$(ip route get 8.8.8.8 | head -1 | cut -f5 -d' ')
nmcli c add type vlan con-name vlan-users dev ${ETH_IFACE} id 10
nmcli c add type bridge ifname br0
nmcli c modify bridge-br0 bridge.stp no
nmcli c add type bridge-slave ifname ${ETH_IFACE}.10 master bridge-br0
nmcli c up "bridge-slave-${ETH_IFACE}.10"
nmcli c up bridge-br0

Actual results:
1. 'brctl show' shows that the interface ${ETH_IFACE}.10 is not added to the bridge
2. Manually trying to bring up the slave interface results in 'Error: Connection activation failed: No suitable device found for this connection.'

Expected results:
${ETH_IFACE}.10 is added to the bridge, and the bridge slaves come online.

Additional info:
Manually configuring the bridge & interface works:
  brctl addbr br1
  brctl addif ${ETH_IFACE}.10 br1
  ifconfig ${ETH_IFACE}.10 0.0.0.0
  ifup br1
  dhclient br1

Comment 1 Beniamino Galvani 2017-04-10 08:11:31 UTC
The 'vlan-users' connection is the bridge slave and should be marked as so using the 'master' and 'slave-type' properties. There is no reason to add the 'bridge-slave-${ETH_IFACE}.10' connection.

You should do instead:

 nmcli c add type bridge ifname br0
 nmcli c modify bridge-br0 bridge.stp no

 nmcli c add type vlan con-name vlan-users dev ${ETH_IFACE} id 10 master bridge-br0 slave-type bridge

 nmcli c up bridge-br0
 nmcli c up vlan-users

Closing this, please reopen if needed.


Note You need to log in before you can comment on or make changes to this bug.