netns icon indicating copy to clipboard operation
netns copied to clipboard

Bridge names longer than 15 characters result in error message that is difficult to understand

Open kutschkem opened this issue 5 years ago • 3 comments

Creating a bridge with names "brmaths_overlay", "br_mathsoverlay" works, but not "br_maths_overlay". Trying to create this bridge shows an error

bridge creation for br_maths_overlay failed: numerical result out of range

kutschkem avatar Apr 15 '19 12:04 kutschkem

[root@base01 ~]# ip link add br_maths_overlay type bridge Error: argument "br_maths_overlay" is wrong: "name" too long

IFNAMSIZ

Creating a bridge with names "brmaths_overlay", "br_mathsoverlay" works, but not "br_maths_overlay". Trying to create this bridge shows an error

bridge creation for br_maths_overlay failed: numerical result out of range

lcnja avatar Jul 01 '19 16:07 lcnja

Thanks, the name being too long was indeed the issue. I haven't checked whether that can be told from the output of netns, but I assume the output of ip link is not shown. Would it be possible to show this in case of errors? "numerical result out of range" is not a message I would associate with "name too long".

kutschkem avatar Dec 04 '19 15:12 kutschkem

The reason I have not closed this issue is to maybe get a better error message for this case (name too long). I have not used netns for some time now, is this still the status? "numerical result out of range" if the bridge name is too long?

kutschkem avatar Jun 03 '20 07:06 kutschkem