-
Notifications
You must be signed in to change notification settings - Fork 186
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
A cluster name that exceeds 14 characters causes an error during bridge creation #1124
Comments
I'm pretty sure this is just a system limit on the interface name length so not really a dev-scripts bug, perhaps we could add some validation to limit the cluster name to avoid tripping this limit. In the meantime, please use a shorter name ;) |
Yes, I think I agree that this is the system limitation on the bridge name.
But the naming scheme seems to append the cluster name to the bridge name
i.e. "cluster-namebm". So either we can name the bridge independent of the
cluster name or validate so that we don't trip. Shorter cluster-name works
:).
|
Yes that's a good point @abhat another workaround is to rename the network names as they are already configurable, they just default to a prefix of the cluster name: https://github.com/openshift-metal3/dev-scripts/blob/master/common.sh#L56 There's actually mention of this limitation in the comment there, so perhaps we should add some validation to explain the options if the limit is exceeded |
I hit this same issue and was wondering, as this is a limitation from the system, if it wouldn't be just easier to cap the bridge name to 15 within the scripts. |
We can't truncate the network names, as the last two characters are the unique part e.g Perhaps we should add a validation which fails if CLUSTER_NAME is more than 13 characters instead? The validation error can also mention it's possible to override *NETWORK_NAME if someone really needs a long cluster name for some reason. |
As tracked in openshift-metal3#1124, interface creation can fail if the name exceeds 15 characters. Ensure that for long cluster name the dummy interface that is created will not exceed this lenght by using a fixed name.
As tracked in #1124, interface creation can fail if the name exceeds 15 characters. Ensure that for long cluster name the dummy interface that is created will not exceed this lenght by using a fixed name.
Describe the bug
When we use the dev-scripts to create a cluster with a name that is longer than 14 characters it results in an error.
To Reproduce
Set the cluster name in the
config_$user.sh
to anything longer than 14 characters for instance:anbhat-test-bm-cluster
Expected/observed behavior
A cluster install succeeds with the cluster name as specified or a clear error is communicated as to what is the limitation on length of the cluster name.
Additional context
The text was updated successfully, but these errors were encountered: