-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Set OpenStack VM hostname to the entry in Nova #7971
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
Conversation
|
@tzumainn this one is quite important to let us deploy origin on the recent openshift-ansible checkouts. Would appreciate a review. |
|
/hold |
|
Hm, so I've just tested a deployment without setting this code and it seems to work without it, too. I was probably running to some other issues beforehand. I'll keep it open for now but let's not merge it just yet. |
|
Yeah this is not necessary at all. Closing. |
|
Okay, so it is actually needed but much later in the game. The deployment succeeds (once #7993 is place), but building an STI fails with: Obviously we'll want to investigate why the |
|
Hm, although this sets the hostname to And we should probably make it optional. |
|
/hold cancel |
|
/retest |
|
Please do not restore the hostnames management. I strongly believe we want this to keep behaving, like AWS provider does, which is unrelated hostnames of VMs just work. |
| @@ -1,4 +1,11 @@ | |||
| --- | |||
| # NOTE(shadower): we need to do this because some of the install tasks seem to | |||
| # ignore openshift_hostname and rely on the actual system's hostname | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to clarify this and open a bug for openshift-ansible. AFAIK, that's not the case for AWS provider installations at the very least.
|
Note that you can opt out of this hostname configuration. Also, AWS does rely on the hostnames being correct. The only difference is that the default values just work on AWS but they don't on OpenStack. We should get there with Designate, but that's still in the future. We could do this instead: add each actual hostname to the DNS record as well (or maybe instead of the Nova names). So that in addition to This comes with its own problems. The node names wouldn't match the desired openshift domain and we would have to document that for any DNS deployment, both records need to be set. Since the actual Nova suffix is not predictable, this would get reasonably complicated. I think the hostname fixup is a nicer change, but I'm not terribly opposed to the DNS fix. I absolutely want to investigate the why there are cases where |
Here is some background for AWS and VMs hostnames #5883 (comment) @sosiouxme PTAL/WDYT? :) |
|
Yes that comment explains what I meant. AWS sets things up for openshift-ansible in the way that OpenStack currently doesn't. Which isn't to say that we shouldn't fix openshift_hostname. |
OpenStack appends a domain suffix (`.novalocal` by default) to the hostnames of the VMs it creates. This clashes with the new control plane install tasks that look at the hostname rather than the `openshift_hostname` variable. This makes the OpenStack playbooks function again with the new control plane/bootstrap installation.
The latter can be an IP address. But `inventory_hostname` is always the same as the name in Nova.
|
Rebased. |
|
/lgtm |
|
/retest |
|
/test gcp-upgrade |
1 similar comment
|
/test gcp-upgrade |
|
/test gcp |
OpenStack appends a domain suffix (
.novalocalby default) to thehostnames of the VMs it creates. This clashes with the new control plane
install tasks that look at the hostname rather than the
openshift_hostnamevariable.This makes the OpenStack playbooks function again with the new control
plane/bootstrap installation.