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

[SPARK-35002][INFRA][FOLLOW-UP] Add current ip address, long hostname and short hostname to /etc/hosts #32173

Closed

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Apr 14, 2021

What changes were proposed in this pull request?

  • Fixes reverse DNS lookup for current hostname in GitHub Actions

Why are the changes needed?

Reverse DNS lookups are broken for GitHub Actions VMs currently.
The problem has been reported as actions/runner-images#3185

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Not tested.

- Fixes reverse DNS lookup for current hostname
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@github-actions github-actions bot added the INFRA label Apr 14, 2021
@github-actions
Copy link

Test build #749093408 for PR 32173 at commit f5f057c.

# Add the current IP address, long hostname and short hostname record to /etc/hosts file
echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
fi
shell: bash
Copy link
Member

Choose a reason for hiding this comment

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

Please append an empty line.

using: composite
steps:
- run: |
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

@lhotari, is it a permanent issue or temporary? (I assume so?) If it's temporary, I think we already have a minimized decent workaround. I would just leave it as is for now.

@lhotari lhotari closed this Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants