-
Notifications
You must be signed in to change notification settings - Fork 247
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
providers: add initial hetzner cloud support #667
Conversation
Can one of the admins verify this patch? |
@LKaemmerling Would you mind taking a look at this from the Hetzner Cloud team? Feel free to suggest changes. |
This LGTM at first glance except maybe change the key from |
While I personally very much appreciate the Hetzner Cloud offerings, I'm not sure Ignition should add support for arbitrary providers (i.e. those that aren't of systemic relevance, which is a compromise we are trying to mitigate anyways). AFAIK Hetzner is OpenStack-based. Could this be abstracted in any way? |
Thanks for the feedback. I did quite a lot of testing on their cloud and it seems to work very good. @LorbusChris No worries, it's always good to have an open debate about these kind of things. The Hetzner Cloud is unfortunately not OpenStack based. If it would have, it could absolutely be using the current openstack support in Ignition. It's something proprietary based on KVM I believe (i.e. https://twitter.com/hetzner_online/status/958982561644072961). But there metadata service is rather EC2-ish:
Although to support their metadata service, most relevant changes are in coreos-metadata. But I thought it would be nice to have full support. About the |
Ah, if @LorbusChris I don't have any qualms adding misc cloud support to Ignition especially if
This LGTM. @dedene Are you able to test these changes? |
@ajeddeloh I did some initial tests already on the Hetzner Cloud, but I'll do some further testing over the weekend and let you know. |
I did some further testing and seems to work fine. However, see coreos/afterburn#125 (comment): unfortunately the Hetzner Team can't or won't confirm which of the existing user-data endpoints (the EC2-ish http://169.254.169.254/2009-04-04/user-data endpoint or the Hetzner Cloud-specific http://169.254.169.254/hetzner/v1/userdata) will be stable (although I think removing either one of them will lead to many customers having to change their automation scripts) in the near future. So maybe it is best to wait for merging this until we have confirmation which endpoint can be used for the user-data (and the meta-data needed for coreos-metadata). I hope we will get more information soon. |
@dedene did you ever here back on a stable API to use? |
@ajeddeloh coreos/afterburn#125 (comment) confirms that several metadata endpoints are now stable, but the userdata endpoint isn't mentioned. @thcyron Is there now a stable endpoint for instance userdata? |
I would suggest you use the same endpoints our coud-init data source uses. That won’t change because it would break existing setups. |
@dedene This LGTM. If you want to change it to the same endpoint that cloudinit uses and rebase, I can merge it. |
Awesome, I'll look at it asap! |
@dedene we have the metadata endpoints now documented: https://docs.hetzner.cloud/#overview-server-metadata |
@dedene @bgilbert @ajeddeloh can we get this merged? All the missing documentation is present now. This PR has not seen activity since April. |
Needs a rebase, otherwise LGTM |
@dedene any way we could get this ready :)? I can't get in touch with you, so hopefully, this ping helps :) |
Any chance to get this resolved and reviewed? Would be great to get this in. |
I'm also very interested in this. @dedene could you give this a rebase? Also, happy to take this over if you don't want to pursue this any further. |
xref #1262 |
Thanks for opening this PR. This should be fixed with #1707. Feel free to re-open if something is missing. Thanks! |
Along with:
This will greatly enhance working with CoreOS on the Hetzner Cloud.