-
Notifications
You must be signed in to change notification settings - Fork 622
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
Fixing docker test after changes in PR8431 #8474
Conversation
@marcelo-gonzalez could you or someone else from the node team review this please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an alternative could be:
diff --git a/pytest/tests/sanity/docker.py b/pytest/tests/sanity/docker.py
index a1513b2e3..c81e10af9 100644
--- a/pytest/tests/sanity/docker.py
+++ b/pytest/tests/sanity/docker.py
@@ -91,7 +91,10 @@ def docker_run(shell_cmd: typing.Optional[str] = None,
Returns:
Command’s stripped standard output if `detach` is true, None otherwise.
"""
- cmd = ['docker', 'run', '--read-only', f'-v{volume[0]}:{volume[1]}']
+ cmd = [
+ 'docker', 'run', '--read-only', f'-v{volume[0]}:{volume[1]}',
+ '--sysctl', 'net.ipv6.conf.all.disable_ipv6=0'
+ ]
# Either run detached or attach standard output and standard error so they
# are visible.
because what's happening is that 8431 changed the localnet
command to bind to an IPV6 addr instead of IPV4. and for some reason disable_ipv6 is set to 1 by default when you pass --network=none
@jakmeier would you mind adding a review too if it looks good to you? |
9223b68
to
7d3af8d
Compare
When network is set to host instead of non, this will fail: |
7d3af8d
to
b562141
Compare
I see... Yeah I guess that might depend on the host setup or something, since it works fine on my computer |
Tested on nayduck worker with: