-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
OpenStack: long hostnames may prevent mdns from working properly #2243
Comments
/label platform/openstack |
I would really recommend not prepending the cluster name to the node name. master-0.clustername.domainname is a much better fqdn for a node than clustername-master-0.clustername.domainname |
The standard for setting the hostname is that the hostname should match the node name. The standard for the node name scheme is --<master/worker>-#. |
Should be resolved with #2270
|
/close We've implemented a validation in #2270 that checks for the length of the cluster name. There is still room for improvement, in making the generated service name shorter, allowing for much longer cluster names. This should be treated as a separate issue, though. |
@mandre: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I ran into this issue when using Full details here: https://gitlab.com/gitlab-org/gl-openshift/gitlab-operator/-/merge_requests/47#note_435260548. I see we added some name length validation in #2270, but only for OpenStack. It seems like we need to add name length validation to GCP, and perhaps other platforms as well. The character limit is affected by the root domain and GCP project name, since they are included in the domain. |
Which version of OpenShift were you installing? BZ 1872885 was fixed recently. |
I ran into this issue with 4.5.15. I see 4.6.1 is out now, will try with that version. Thanks for linking to the bug. |
I was able to launch a cluster successfully with a 12 character cluster name using openshift-install 4.6.1. Thanks for the help! |
Latest openshift-install and AWS or GCP - doesn't work whatsoever. This waiting for kubernettes thing comes up and then later - refused to connect. I got my zone nicely hosted on route53 and also google dns (respective zone). I can resolve the api.**** endpoint just fine to the ip's of load balancers... but the damn thing doesn't work I tell you. Followed redhat's guide with my right eye at 1cm distance from the screen.... didn't miss a thing. Quality control for installers team 0/10. |
When deploying on OpenStack, for nodes where the hostname is too long -- when giving a long enough cluster name -- the mdns-publisher pod will fail with the following error:
There is a hard limit on 64 characters. In this example the service name ends up being
preserve-wjosp0820mh Workstation-preserve-wjosp0820mh-q82sf-master-0
after we apply the hostname-based collision avoidance, which is 68 characters.We should add a validation in the installer to ensure the resulting service name isn't longer than 63 chars.
Baremetal has the same issue, however it's much less likely to occur since they don't prepend the cluster name to the hostname.
The text was updated successfully, but these errors were encountered: