Bug 1440435

Summary: NetworkManager fails to bridge, bring up slaves for VLAN interfaces
Product: [Fedora] Fedora Reporter: Stewart Adam <s.adam>
Component: NetworkManagerAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: bgalvani, dcbw, fgiudici, lkundrak, psimerda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-10 08:11:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.