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

azure: hardcode fallback for wireserver endpoint #145

Merged
merged 1 commit into from
Jan 14, 2019
Merged

azure: hardcode fallback for wireserver endpoint #145

merged 1 commit into from
Jan 14, 2019

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Jan 14, 2019

If we can't fetch the wireserver address from the DHCP lease option, do
what WALinuxAgent does and use the fallback wireserver endpoint at
168.63.129.16.

@jlebon
Copy link
Member Author

jlebon commented Jan 14, 2019

Prep for #130.

@jlebon
Copy link
Member Author

jlebon commented Jan 14, 2019

I've also verified that this fallback is compatible with our metadata version.

Copy link
Contributor

@lucab lucab left a comment

Choose a reason for hiding this comment

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

Just two minor comments, looks ok otherwise. Thanks!

src/providers/azure/mod.rs Outdated Show resolved Hide resolved
src/providers/azure/mod.rs Outdated Show resolved Hide resolved
If we can't fetch the wireserver address from the DHCP lease option, do
what WALinuxAgent does and use the fallback wireserver endpoint at
168.63.129.16.
@lucab
Copy link
Contributor

lucab commented Jan 14, 2019

@jlebon can you self-merge this here?

@jlebon
Copy link
Member Author

jlebon commented Jan 14, 2019

Doesn't look like it.

@lucab lucab merged commit 8253c15 into coreos:master Jan 14, 2019
@@ -46,6 +46,10 @@ Content-Transfer-Encoding: base64

";

/// This is a known working wireserver endpoint within Azure.
/// See: https://blogs.msdn.microsoft.com/mast/2015/05/18/what-is-the-ip-address-168-63-129-16/
const FALLBACK_WIRESERVER_ADDR: [u8; 4] = [168, 63, 129, 16]; // for grep: 168.63.129.16
Copy link
Contributor

Choose a reason for hiding this comment

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

for grep: 168.63.129.16

💯

Copy link
Contributor

Choose a reason for hiding this comment

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

Four years later, I did indeed end up finding this line with grep. 🎉

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.

None yet

3 participants