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

Ensure slave nodes use same host as CT #8

Merged
merged 1 commit into from
Jul 2, 2018
Merged

Conversation

lukebakken
Copy link
Contributor

https://github.com/erlang/otp/blob/bc22321f10c1ad71fb7e28275a8e6ed26a34d4ab/lib/stdlib/src/slave.erl#L287-L309

The above code checks to see if the slave is running on the same host as the master, and if not, uses rsh to configure the slave. Since rsh is blocked on my machine, I got connection refused.

So, I decided that we should use whatever the Common Test nodes hostname is, which will probably be localhost. By using the same hostname, we should remove the chance that rsh will be used.

https://github.com/erlang/otp/blob/bc22321f10c1ad71fb7e28275a8e6ed26a34d4ab/lib/stdlib/src/slave.erl#L287-L309

The above code checks to see if the slave is running on the same host as the master, and if not, uses `rsh` to configure the slave. Since `rsh` is blocked on my machine, I got connection refused.

So, I decided that we should use whatever the Common Test nodes hostname is, which will probably be `localhost`. By using the same hostname, we should remove the chance that `rsh` will be used.
@kjnilsson kjnilsson merged commit 5d3707c into master Jul 2, 2018
@lukebakken lukebakken deleted the lrb-fix-tests branch July 2, 2018 14:47
@lukebakken
Copy link
Contributor Author

Thanks @kjnilsson

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.

2 participants