Weave Net

Troubleshooting the IP Allocator

The command

weave status

reports on the current status of the weave router and IP allocator:

...
       Service: ipam
        Status: awaiting consensus (quorum: 2, known: 0)
         Range: 10.32.0.0-10.47.255.255
 DefaultSubnet: 10.32.0.0/12
...

The first section covers the router; see the troubleshooting guide for full details.

The ‘Service: ipam’ section displays the consensus state as well as the total allocation range and default subnet. Columns are as follows:

Information regarding the division of the IP allocation range amongst peers and their reachability can be obtained with

$ weave status ipam
00:00:00:00:00:01(one)      349526 IPs (33.3% of total) (2 active)
00:00:00:00:00:02(two)      349525 IPs (33.3% of total)
00:00:00:00:00:03(three)    349525 IPs (33.3% of total) - unreachable!

Columns are as follows:

Seeded by Different Peers

If you see the message: IP allocation was seeded by different peers, this means that some Weave Net peers were initialized into one cluster and some into another cluster; Weave Net cannot operate in this state.

To recover, you need to eliminate the IPAM data from the affected nodes and restart. If you installed via the Kubernetes Addon, this data will be in a file under /var/lib/weave on the node - delete this file and restart the node.

For other installations, run weave reset and restart. Any existing connections to containers will be lost.