Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kutschkem opened this issue Apr 15, 2019 · 3 comments

Comments

@kutschkem
Copy link

kutschkem commented Apr 15, 2019

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
Copy link

lcnja commented Jul 1, 2019

[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

@kutschkem
Copy link
Author

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
Copy link
Author

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 kutschkem changed the title Bridge names can't have more than one underscore Bridge names longer than 15 characters result in error message that is difficult to understand Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants