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

DEVPROD-13207: set EC2 hostname during host provisioning #8775

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Kimchelly
Copy link
Contributor

@Kimchelly Kimchelly commented Feb 28, 2025

DEVPROD-13207

Description

This is half of the change for DEVPROD-13207 - this change makes so that the EC2 hostname is set in Evergreen before it runs its first task. Re this comment, we can't just get the hostname directly from Evergreen currently, because Evergreen may not have fetched the hostname from EC2 yet. To work around this, EC2 hosts will provide their own hostname from the locally-available EC2 instance metadata on the host. The host will then send that hostname back to Evergreen.

After this is merged, I'll post a follow-up PR to expose the hostname as an OTel attribute for tasks.

Testing

  • Updated unit tests.
  • Tested in staging to verify that an EC2 host that started up provided Evergreen with its hostname.

@Kimchelly Kimchelly requested a review from a team February 28, 2025 17:06
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.

1 participant