A toolkit for orchestrating distributed systems at any scale. It includes primitives for node discovery, raft-based consensus, task scheduling and more.
When I create 2 networks with overlapping subnets, the allocator fails as expected. But the error is consumed at swarmkit and hence the network is created in inconsistent state (the driver field is empty). In the example below, the wtnet2's driver is not overlay and the daemon logs shows the subnet overlap error.
DEBU[21843] RequestPool(GlobalDefault, 10.10.1.0/24, , map[], false)
ERRO[21843] Failed allocation for network rgk301uv83vj3p9ac5nqdw4l4 error="failed during network allocation for network rgk301uv83vj3p9ac5nqdw4l4: failed allocating pools and gateway IP for network rgk301uv83vj3p9ac5nqdw4l4: Pool overlaps with other one on this address space" module=node node.id=2ojtm3zuylbi4osers2frp50e
The error must be pushed back to the control-api and the network should be removed from the raft-store and the error is clearly displayed synchronously to the user.
When I create 2 networks with overlapping subnets, the allocator fails as expected. But the error is consumed at swarmkit and hence the network is created in inconsistent state (the driver field is empty). In the example below, the wtnet2's driver is not overlay and the daemon logs shows the subnet overlap error.
The error must be pushed back to the control-api and the network should be removed from the raft-store and the error is clearly displayed synchronously to the user.