Skip to content
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 support for hetzner cloud #125

Closed
wants to merge 4 commits into from

Conversation

dedene
Copy link

@dedene dedene commented Nov 27, 2018

@dedene
Copy link
Author

dedene commented Nov 27, 2018

@LKaemmerling Would you mind taking a look at this from the Hetzner Cloud team? Feel free to suggest changes.

src/providers/hcloud/mod.rs Outdated Show resolved Hide resolved
use serde_json;

#[cfg(not(test))]
const URL: &str = "http://169.254.169.254/2009-04-04";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a public reference where this endpoint JSON response is documented?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LKaemmerling Could you answer this from the Hetzner team? It seems there is indeed no public documentation of this endpoint (i.e. on https://docs.hetzner.cloud/)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This endpoint is not public documented.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the endpoint stable? (will it continue to behave as the current implementation?)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it is not public documented, we can not guarantee that it will behave the same way as the current implementation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thcyron thanks for the feedback! Do you have some spec documentation URL to reference here, or should we just follow whatever the CSI driver is doing?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately our metadata service is not documented. You can use all endpoints except local-ipv4 (since we don’t have private networking yet) as listed in this comment.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove the local-ipv4 or can we keep it for now? For the moment it is not used anywhere but then the metadata service in coreos is already prepared for the moment Hetzner would add private networking (which would be awesome ;))?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can keep it. It’s no secret that we’ll offer private networking sooner or later and I’m pretty sure we’ll support the local-ipv4 endpoint then.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to use the official endpoint http://169.254.169.254/hetzner/v1/metadata instead of the EC2-compat path

@lucab
Copy link
Contributor

lucab commented Nov 28, 2018

I think we can hold this PR for a moment and wait till the metadata endpoint is properly stabilized/documented.

@LKaemmerling is there a public tracker where we can track progress on this? If not, can you maybe involve your colleagues directly here?

@LKaemmerling
Copy link

@lucab I will inform you here if there is any progress.

@dedene
Copy link
Author

dedene commented Feb 3, 2019

@lucab Now we have confirmation from the Hetzner team the metadata endpoint is stable, any chance we can get this PR merged? Or are there further changes needed?

@LKaemmerling
Copy link

FYI: Our metadata documentation is now available: https://docs.hetzner.cloud/#overview-server-metadata

@dedene
Copy link
Author

dedene commented Jul 10, 2019

Awesome! 👍 This slipped of my radar, I'll try to rebase this (and the related PRs) and make this mergeable again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants