-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Reverse name lookup for hostname returns wrong IP #4901
Comments
Hello @pioneer2k . Thanks for the issue reporting. We'll take care about this issue investigation and reply with findings. |
Hello @pioneer2k. Thank you for your report. How often does it reproduce ? Could please provide link to the repository and logs from previous builds? We've tried to reproduce the issue from our side, but it works as expected. Besides, could you please provide logs from this snippet:
|
@dmitry-shibanov we had no problems today until now. But yesterday we had this issue multiple times all over the day. Our repositories are private. I don't know if you can read it. I added your snipped to some of our pipelines. I come back to you when we get the error again. |
@dmitry-shibanov now I have a workflow run which shows the problem and has your code snippet available: Output: The following lines are desirable for IPv6 capable hosts::1 localhost ip6-localhost ip6-loopback |
@pioneer2k , Could you please attach a screenshot for the logs above - https://github.com/OttoPaymentHub/piranha_customer_context/runs/4880556158?check_suite_focus=true? |
@al-cheb is that enough or do you need more? |
Here's a test run showing the results of calling the My test ran 10 jobs, 9 of which had matching configurations, one of which, test (1), differed.
|
@pioneer2k @oliver-sanders the root cause of the issue was fixed, but it will take some time to propagate the changes to all the environments. |
@pioneer2k , Could you please check if the issue still persists? |
@al-cheb I have checked our pipeline runs of this week (about 20) and none of them had the error. Seems like your fix is working. |
Description
We are experiencing the issue that was mentioned before in issue 3185 (#3185) for over a month now. In the beginning we had the error only in some workflow runs. But this week, we had several errors in many workflow runs all over the day.
Our feeling is, that it is depending on the time of the day. The are times of the day where all our pipelines are breaking and there are times where all of them are working.
We now have implemented the workaround mentioned in issue 3185 and that is helping....
Virtual environments affected
Image version and build link
Virtual Environment
Environment: ubuntu-20.04
Version: 20220111.1
Virtual Environment Provisioner
1.0.0.0-main-20211214-1
Is it regression?
No response
Expected behavior
the command "hostname -i" should return the IP of the current hostname like the command "ip addr show eth0" does
Actual behavior
the command "hostname -i" returns a different IP address that does not belong to the current host.
Repro steps
add both command to a GitHub Actions workflow:$2}' | cut -d/ -f1)\t$ (hostname -f) $(hostname -s)"
hostname -i
echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print
Both should show the same IP address, but sometimes they don't
The text was updated successfully, but these errors were encountered: