Bug 1312359

Summary: activating vlan on virtual device fails with: failed to determine interface name: error determine name for vlan
Product: Red Hat Enterprise Linux 7 Reporter: Thomas Haller <thaller>
Component: NetworkManagerAssignee: Thomas Haller <thaller>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 7.3CC: aloughla, atragler, bgalvani, fgiudici, lrintel, mleitner, rkhan, sukulkar, thaller, vbenes
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: NetworkManager-1.8.0-0.2.git20170215.1d40c5f4.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 09:17: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:

Description Thomas Haller 2016-02-26 14:21:59 UTC
NetworkManager 1.2-beta has a bug activating VLAN on a virtual parent interface.

This is upstream bug https://bugzilla.gnome.org/show_bug.cgi?id=762731

I open this BZ so we don't forget to test the usecase for rhel-7.3.


I didn't confirm whether the same issue exists on nm-1-0/rhel-7.2. Possibly not, because master could behave quite differently due to the "devices-for-all" branch.




Copied from upstream:
>>>>>>>>>>>>>



create a team-slave, a team, and a vlan on top of the team.


nmcli connection delete t-slave t-team t-vlan

DEV=enp0s25

nmcli connection add type team con-name t-team autoconnect no -- \
  connection.interface-name t-i-team \
  ipv6.method ignore \
  ipv4.method manual \
  ipv4.addresses 192.168.103.5/24 \
  ipv4.gateway 192.168.103.1
nmcli connection add type ethernet con-name t-slave slave-type team \
  ifname $DEV autoconnect no master t-team
nmcli connection add type vlan con-name t-vlan autoconnect no id 42 \
  dev t-i-team -- \
  ipv6.method ignore \
  ipv4.method manual \
  ipv4.addresses 192.168.104.5/24 \
  ipv4.gateway 192.168.104.1





nmcli connection up t-vlan 
# fails with:
# Error: Connection activation failed: failed to determine interface
# name: error determine name for vlan


# but
nmcli connection up t-slave
nmcli connection up t-vlan
# succeeds.

Comment 1 Thomas Haller 2016-11-13 21:53:40 UTC
upstream bug is already fixed.

Quite likely this is already fixed by rhel-7.3 too.

Setting to modified.

Comment 4 errata-xmlrpc 2017-08-01 09:17:07 UTC
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://access.redhat.com/errata/RHSA-2017:2299