-
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
data/data/openstack: set correct hostnames for machines during bootstrap #1980
data/data/openstack: set correct hostnames for machines during bootstrap #1980
Conversation
/label platform/openstack |
Thanks @Fedosin! This looks good to me, but it needs a proper commit title and message explaining why we're doing this. The commit/PR title needs a
Also, would you mind doing the same for the bootstrap node? It's not a requirement, but I'd prefer if the names matched everywhere in that case. |
All nodes deployed by the Installer should have a prefix with the current cluster ID.
6267047
to
cb550ef
Compare
Indeed - might also want to mention that this is a revert of #1820
Some references maybe? Where exactly do we see this assumption? And in the previous PR you said "The convention for the fully-qualified names is |
we did see this error in our test ..thanks for fixing |
Here's the reference (as well as this being true in practice for as long as I remember): https://kubernetes.io/docs/concepts/cluster-administration/cloud-providers/#node-name-4 I misspoke by the way: the OpenStack cloud provider definitely requires the node name (which comes out of the hostname) matches the server name in Nova but I'm not sure whether that's the case for the other cloud providers. That PR you mention was written by me and I think I'd made a mistake submitting it. The current Nova Server names are correct insofar as they match what AWS and GCP do as well: installer/data/data/aws/master/main.tf Line 111 in 8472747
installer/data/data/gcp/master/main.tf Line 29 in 8472747
So it is indeed the hostname that needs to change. @Fedosin I've tested this patch and it does what we need! Please prefix the commit title with https://kubernetes.io/docs/concepts/cluster-administration/cloud-providers/#node-name-4 I'll be happy to merge it afterwards. |
/test e2e-openstack |
/approve Going to LGTM once the OpenStack test passes. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Fedosin, tomassedovic The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@Fedosin: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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 understand the commands that are listed here. |
/test e2e-aws |
According to https://kubernetes.io/docs/concepts/cluster-administration/cloud-providers/#node-name-4 to enable OpenStack cloud provider hostnames, node names & nova names must match.
This patch sets correct hostnames for masters and the bootstrap machine during the initial deployment.
To set hostnames for workers and masters that are added later we also need: openshift/machine-config-operator#964
Reverts: #1820