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

[Bug report] Docker network Pool overlaps with other one on this address space #925

Closed
xunliu opened this issue Dec 4, 2023 · 1 comment
Assignees

Comments

@xunliu
Copy link
Member

xunliu commented Dec 4, 2023

Describe what's wrong

When we execute ./gradlew test command, sometimes the following errors are reported. #879

Pool overlaps with other one on this address space

We through executing docker network prune command fixed this issue in the CentOS.

Error message and/or stacktrace

2023-11-30 15:06:43 INFO  5:75 - Pulling docker image: datastrato/gravitino-ci-hive:0.1.5. Please be patient; this may take some time but only needs to be done once.
2023-11-30 15:06:44 INFO  5:47 - Starting to pull image
2023-11-30 15:06:44 INFO  5:93 - Pulling image layers:  0 pending,  0 downloaded,  0 extracted, (0 bytes/0 bytes)
2023-11-30 15:06:44 INFO  5:388 - Creating container for image: datastrato/gravitino-ci-hive:0.1.5
2023-11-30 15:06:44 ERROR 5:552 - Could not start container

com.github.dockerjava.api.exception.DockerException: Status 403: {"message":"Pool overlaps with other one on this address space"}

at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:249) ~[testcontainers-1.19.0.jar:1.19.0]
at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.post(DefaultInvocationBuilder.java:124) ~[testcontainers-1.19.0.jar:1.19.0]
at org.testcontainers.shaded.com.github.dockerjava.core.exec.CreateNetworkCmdExec.execute(CreateNetworkCmdExec.java:27) ~[testcontainers-1.19.0.jar:1.19.0]

How to reproduce

No response

Additional context

Here's a discussion of this related issue: https://github.com/maxking/docker-mailman/issues/85a

@xunliu xunliu added this to the Gravitino 0.3.0 milestone Dec 4, 2023
@xunliu xunliu self-assigned this Dec 4, 2023
xunliu added a commit to xunliu/gravitino that referenced this issue Dec 19, 2023
jerryshao pushed a commit that referenced this issue Dec 21, 2023
…ess space (#1211)

### What changes were proposed in this pull request?

1. Added Docker network overlap detection
2. Reduced IP allocation ranges for lower conflict probability, Modified
to `10.20.30.0/28` only allocate IP ranger `10.20.30.1` ~ `10.20.30.14`
3. Docker network only created on MacOS and default Docker server
environment

### Why are the changes needed?

Fix: #879, #925

### Does this PR introduce _any_ user-facing change?

N/A

### How was this patch tested?

CI
github-actions bot pushed a commit that referenced this issue Dec 21, 2023
…ess space (#1211)

### What changes were proposed in this pull request?

1. Added Docker network overlap detection
2. Reduced IP allocation ranges for lower conflict probability, Modified
to `10.20.30.0/28` only allocate IP ranger `10.20.30.1` ~ `10.20.30.14`
3. Docker network only created on MacOS and default Docker server
environment

### Why are the changes needed?

Fix: #879, #925

### Does this PR introduce _any_ user-facing change?

N/A

### How was this patch tested?

CI
jerryshao pushed a commit that referenced this issue Dec 21, 2023
…ess space (#1234)

### What changes were proposed in this pull request?

1. Added Docker network overlap detection
2. Reduced IP allocation ranges for lower conflict probability, Modified
to `10.20.30.0/28` only allocate IP ranger `10.20.30.1` ~ `10.20.30.14`
3. Docker network only created on MacOS and default Docker server
environment

### Why are the changes needed?

Fix: #879, #925

### Does this PR introduce _any_ user-facing change?

N/A

### How was this patch tested?

CI

Co-authored-by: Xun Liu <[email protected]>
@jerryshao
Copy link
Contributor

Fixed.

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

No branches or pull requests

2 participants