-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Sanitize /etc/hosts and hostnames on all our cloud machines #131
Comments
FYI @gdams |
This test example provided speaks about MAC OS. Is this issue limited to MAC OS? or does simular tests that run on other linux OS' also rely on the If we have testing the require the system's hostname to be listed in the |
It is not limited to MAC OS, in all OS it rely on configuration in the /etc/hosts file. Right now our Linux test machines are configured properly, so this issue (adoptium/aqa-tests#132) is applicable/reproducible only in MAC OS. |
FYI I've had comparable issues with the |
perhaps we should remove |
Maybe, although it could be different depending on whether IPv6 and the like have been configured so that might not be ideal. And there's probably some clever reason why |
We definitely need some sort of consistent strategy going forward. The test machines that were causing adoptium/aqa-systemtest#66 didn't have any entries for the system's hostname in Most Ubuntu's seem to set the systems hostname against the loopback IP Either way we could do with some consistency. Would anyone object going forward to having a strategy of making sure the hostname on the machine is a bit more consistent with what's in jenkins? For that mauve test failure the machine calls itself @smlambert With the way this is going perhaps we should change the title of this issue to "Sanitize /etc/hosts and hostnames on all our cloud machines?" although I appreciate that you possibly need a tactical short-term fix until we've thrashed it out. |
Maybe something like this? thought?
|
I've updated the |
@bblondin Wouldn't that wipe an entry such as the following (which I think we get by default on some installs):
and not replace it with the second section because the (Edit: Assuming |
We will hit an issue where we have disconnects between FQDN and the hostname on the machine - we've had to replace |
@sxa555 yes it would 'replace' those entires. Yes: I'd like to know more about this replacing of the peroid in the FQDN In some case (virtual machines) there may not be a FQDN however ansible |
Regarding the Ref the default entries, here's one of the more unusual examples from
Our joyent ubuntu machine
I think your proposed rules would santize them all quite well though if that's the way we want to go (I'm always a touch nervious about having non-default configs for OSs in case we mask errors a customer may see on their systems, but from our perspective it would likely make things work more consistently |
I think the following would be the best of both worlds: Added
|
I'd be tempted to add |
Pull request #136 |
* Update /etc/hosts full details in: #131 (comment) * localhost.localdomain added as per SXA
I reran the tests referenced in openjdk-tests issue 132 just now (on test-macincloud-macos1010-1), but they still fail: ERROR: transport error 202: gethostbyname: unknown host You can find the entire set of test results here: https://ci.adoptopenjdk.net/view/work%20in%20progress/job/test_personal/129/testReport/ |
Looking at the /etc/hosts file on test-macincloud-macos1010-1, it does not appear to have changed from the before the issue was reported. @bblondin - I believe you updated then 2 build machines, the 2 test macs (test-macincloud-macos1010-1 and test-macincloud-macos1010-2) do not appear to be updated. |
@smlambert I updated the wrong macs... (build-macstadium-macos1010-1 and 2) Updated test-macincloud-macos1010-1 and test-macincloud-macos1010-2
|
@smlambert Have you had a chance to rerun the test? |
Yes, and now 89/90 tests that used to fail are passing, thanks. |
Apologies, I closed this issue because the test problem was addressed, but remember that this issue was broadened to address all machines so will reopen. |
Pull request #136 addresses this |
Some jdk_jdi tests are failing due to a machine config issue, and therefore excluded.
Grabbing comment from:
adoptium/aqa-tests#132
It's a machine configuration issue.
Assign a host name to the machine by following below steps:
Choose Apple menu -> System Preferences, then click Sharing).
Click Edit, then enter a local hostname.
Add this machine name entry in /etc/hosts file with machine ip address.
Eg: 127.0.0.1 mymachine
Reboot the machine to reflect the changes.
The text was updated successfully, but these errors were encountered: