Bug 1300755

Summary: ifup network with an interface name with more than 16 characters
Product: Red Hat Enterprise Linux 7 Reporter: steverweber <steverweber>
Component: NetworkManagerAssignee: Thomas Haller <thaller>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: bgalvani, lrintel, rkhan, thaller, vbenes
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-03 19:06:45 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:

Description steverweber 2016-01-21 16:05:47 UTC
Description of problem:

the new long style network device names are to long because vlans with 4 digits cause interface name to be > 15 chars 

you get the error: 

ifup eno33557248.3008
Error: argument "eno33557248.3008" is wrong: "name" too long

ERROR    : [/usr/sbin/ifup] ERROR: could not add vlan 3008 as eno33557248.3008 on dev eno33557248

NetworkManager also cant bring the interface up.

and `ip a` list the interface as "eno33557248.300" missing the 8



Steps to Reproduce:
1. create a network device with a vlan > 999 while using longer name format
2. (optional) disable NetorkManager
3. try and bring the interface online

Actual results:

Error: argument "eno33557248.3008" is wrong: "name" too long


Expected results:

all good

Comment 2 steverweber 2016-01-21 16:33:30 UTC
reported upstream to systemd
https://github.com/systemd/systemd/issues/2407

Comment 3 Thomas Haller 2016-01-21 17:51:09 UTC
As workaround, in NetworkManager you can configure the interface-name in the connection.

$ nmcli connection modify $CONNECTION_ID connection-interface vlan3008


Pushed a fix to upstream master:
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=944065c1154a656846dcf37e1cce35d3fb1792ed
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=778207f23eb2ac022b2ee47968a484fdb94626fe


This only concerns NetworkManager. It is unrelated to using ifup with NetworkManager disabled.

Comment 5 Vladimir Benes 2016-08-30 10:04:54 UTC
NM now cuts name to fit the device name limitation (16) so long_device_name with vlan to 1024 is shortened from long_device_name.1024 to long_device_.1024 and everything works as expected.

Comment 7 errata-xmlrpc 2016-11-03 19:06:45 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://rhn.redhat.com/errata/RHSA-2016-2581.html