Bug 1183420
Summary: | Adding bond device to bridge with "bridge-slave" type doesn't work. | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Etsuji Nakai <enakai> | |
Component: | NetworkManager | Assignee: | Lubomir Rintel <lrintel> | |
Status: | CLOSED ERRATA | QA Contact: | Desktop QE <desktop-qa-list> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 7.2 | CC: | bgalvani, danw, d.bz-redhat, dcbw, james.hogarth, kzhang, lrintel, mleitner, negativo17, rkhan, thaller, vbenes | |
Target Milestone: | rc | |||
Target Release: | 7.3 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1321288 (view as bug list) | Environment: | ||
Last Closed: | 2016-11-03 19:13:07 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1301628, 1313485, 1321288 |
Description
Etsuji Nakai
2015-01-19 01:50:44 UTC
(In reply to Etsuji Nakai from comment #0) > Description of problem: > > I tried to add bond device bond0 with "nmcli c add type bridge-slave" but > failed. Instead, I needed to configure connection.master and > connection.slave-type properties directly. I'd like to know if this is an > intended behavior or a defect. Yes, nmcli has limitations in creating slave profiles directly. 'bridge-slave', 'bond-slave' and 'team-slave' just offer ethernet type at the moment. We will work on this in the future to improve it. As you figured out, you need to create all the profiles separately as ordinary types, and then make them as slaves later by modifying master and slave-type properties. For example, for creating bond over VLANs, you will create all connections: $ nmcli con add type ethernet con-name myeth1 ifname eth1 $ nmcli con add type ethernet con-name myeth2 ifname eth2 $ nmcli con add type vlan con-name vlan111 dev eth1 id 111 $ nmcli con add type vlan con-name vlan222 dev eth2 id 222 $ nmcli con add type bond con-name jamesbond ifname bond007 mode 802.3ad And then you edit the VLANs to became slaves of the bond: $ nmcli con edit vlan111 nmcli> remove ipv4 nmcli> remove ipv6 nmcli> set connection.slave-type bond nmcli> set connection.master bond007 nmcli> save nmcli> quit and the same for vlan222 It is also possible to create/edit ifcfg files directly as before, because NetworkManager reads them. You just have to let NetworkManager know when you are done with the changes. Call 'nmcli con reload' as root to do that. (See also monitor-connection-files option in man Networkmanager.conf). Also, there is the GUI nm-connection-editor that allows stacking connections while creating them (will offer other types than ethernet for slave types). Ok. I understand that this is a known limitation. Please close this ticket. Hope it will be imporved soon ;) Damn, I spent almost a day in our datacenter trying to understand why my bond0/team0 device could not be added to the bridge, and then I stepped onto this bug. These limitations should find their way inside the official Red Hat manuals, as this configuration is not described as not supported in RHEL 7. We plan to improve the nmcli editing for RHEL 7.2, so I am leaving this open as an RFE. With the version of NetworkManager that will be shipped with RHEL-7.3 the desired configuration is done like this: # nmcli c add type bridge ifname br0 con-name bridge-br0 # nmcli c add type bond ifname bond0 con-name bridge-slave-bond0 master bridge-br0 # nmcli c add type ethernet ifname ens6 con-name bond-slave-ens6 master bond0 # nmcli c add type ethernet ifname ens7 con-name bond-slave-ens7 master bond0 Note the absence of "*-slave" types and presence of "master" option to denote a slave. This is working well according to reproducer from comment 10 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-2581.html |