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

ERROR: could not find IP range for mask ffff0000 during network create #4157

Closed
sflxn opened this issue Mar 7, 2017 · 10 comments
Closed

ERROR: could not find IP range for mask ffff0000 during network create #4157

sflxn opened this issue Mar 7, 2017 · 10 comments
Assignees
Labels
area/docker-compose kind/defect Behavior that is inconsistent with what's intended priority/p0

Comments

@sflxn
Copy link
Contributor

sflxn commented Mar 7, 2017

During docker-compose testing, I got the following error:

ERROR: could not find IP range for mask ffff0000

This was after a battery of compatibility testing.

VCH installation command:

./vic-machine-linux create --target=192.168.218.207 --image-store=datastore1 --name=vic-docker --user=root --password=xxxx --compute-resource="/ha-datacenter/host/esxbox.localdomain/Resources" --bridge-network=vic-network --debug=0 --no-tls --volume-store=datastore1/test:default --force

Reinstalling the VCH fixes this. Container logs attached.
container-logs (1).zip

@hmahmood
Copy link
Contributor

hmahmood commented Mar 7, 2017

Logs indicate that context.NewScope (which creates a bridge network) is getting called 17 times, i.e. the caller is attempting to create more than 16 bridge networks. This is not currently supported.

@sflxn
Copy link
Contributor Author

sflxn commented Mar 7, 2017

I have 5 compose yml files. To reproduce,

  1. Download docker-compose 1.9.0 and 1.11.2
  2. Run docker-compose -f <file 1> up -d
  3. Run docker-compose -f <file 1> down
  4. Repeat 2 and 3 for file 2, 3, 4, and 5
  5. Repeat 2-4 for each version of compose binary
  6. Repeat again until this issue appears. From my test, after performing these tests for each version of the compose binary once, the issue would appear within the next 1-3 compose up instance.

Compose file 1-5 attached.
compose.tar.gz

@sflxn
Copy link
Contributor Author

sflxn commented Mar 7, 2017

I've just verified that once I get in this state, both docker compose and docker network create fails with that error.

@anchal-agrawal
Copy link
Contributor

Need input from @hmahmood to estimate and prioritize this, if this is indeed a bug. If docker-compose down isn't working as expected, we should update the issue title.

@hmahmood
Copy link
Contributor

hmahmood commented Mar 7, 2017

Currently we have the default "width" of the bridge networks as hardcoded in the code to /16. We have an option in vic-machine to specify the bridge network pool (--bridge-network-range, default is 172.16.0.0/12), but the individual networks will still be /16. We can add another option to let the user override that to say, /24, which would allow for more than 16 networks, depending on the pool size for bridge networks.

@mdubya66
Copy link
Contributor

Closed #5694 as a dupe

@mdubya66 mdubya66 added kind/defect Behavior that is inconsistent with what's intended priority/p0 and removed priority/p2 labels Aug 16, 2017
@mdubya66
Copy link
Contributor

Marking high per #5694.

@corrieb
Copy link
Contributor

corrieb commented Aug 23, 2017

If it were the case that we could only have a maximum of 16 networks at any one time, that wouldn't be an unreasonable limitation. What I highlighted in #5694 is far more serious than that. It states that you can only EVER have 16 networks. If you create and delete 16 times, the VCH becomes completely unusable. You cannot create a network at that point. docker-compose does clean up after itself and it exhibits exactly this behavior. So this is an issue about being able to re-use IP ranges that are no longer in use.

@corrieb
Copy link
Contributor

corrieb commented Aug 23, 2017

Unless there is a workaround to this that does not involve uninstalling the VCH, I disagree with the reduction of priority of this issue.

@hmahmood
Copy link
Contributor

I agree with @corrieb about the severity of this; we should fix this for 1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docker-compose kind/defect Behavior that is inconsistent with what's intended priority/p0
Projects
None yet
Development

No branches or pull requests

5 participants