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
DigitalOcean: no set hostname #538
Comments
Can you please verify this at NM level? (I'm not exactly sure how, but between logs and DBus API there should be some way to know where it is getting the hostname from).
CL images were running on the non-custom non-DHCP infrastructure. Afterburn already knows how to read the properties on DO, but we are currently not enabling the dracut service there. If indeed the DHCP does not provide the hostname to the node, we can patch the Afterburn service to do that. |
Here is what I see in the leases file that NM saves:
I don't see any information about hostname in there but I can find it in the metadata service via |
@dustymabe Your script above allowed me to install the bootstrap and masters. |
@dustymabe great, thanks! Then something like the following should work:
If so, merging coreos/afterburn#433 and landing it in an FCOS release should take care of this. |
Looks good! |
Is this, uh, awesome hostname expected? |
ha, yes. It derived the name from the custom image name I selected, which was long. Disregard that, just concentrate on the success! |
The fix for this landed in Afterburn 4.4.1. |
The fix for this went into testing stream release |
The fix for this went into stable stream release |
The hostname setting on DigitalOcean was tracked at coreos/fedora-coreos-tracker#538 and is now fixed. Let's drop out that workaround and just leave an example for now.
When I boot one of our DigitalOcean images following the documentation. I end up with a machine that doesn't have a hostname set. I guess with DigitalOcean this information isn't provided via DHCP and only via the metadata service.
This turns out to be a problem when trying to install OKD, where the install fails in bizarre ways if every node in the cluster has a hostname of
localhost
. How did this work in the past for CL? Is this something Ignition or Afterburn should handle?For OKD I was able to workaround with something like this to add a service to the existing ignition config provided by the openshift-installer that would set the hostname based on the metadata:
The text was updated successfully, but these errors were encountered: