Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

"IP Allocator with different subnet detected" error could be more helpful #1128

Closed
rade opened this issue Jul 14, 2015 · 2 comments
Closed
Assignees
Milestone

Comments

@rade
Copy link
Member

rade commented Jul 14, 2015

I just connected a weave 1.0 and weave-master and got the following in the latter's logs:

ERRO: 2015/07/14 09:15:10.658636 ->[192.168.48.11:6783|8e:70:be:57:9b:a5(host1)]: connection shutting down due to error: IP Allocator with different subnet detected

which would be a lot more helpful if it a) told me what the ranges were (both ours and theirs), and b) how to fix it (i.e. supply --ipalloc-range).

The latter might be a bit tricky, since we don't really want ring.go, where that error arises, to have to know about command line options.

@rade rade added the chore label Jul 14, 2015
@rade rade added this to the current milestone Jul 14, 2015
@rade
Copy link
Member Author

rade commented Jul 15, 2015

told me what the ranges were

ideally in the same CIDR notation that one supplies to --ipalloc-range.

@bboreham bboreham self-assigned this Jul 16, 2015
@bboreham
Copy link
Contributor

What do you think to having the error message template passed in to Allocator at creation time?

Seems a bit weird, but it would keep the concerns in the right place.

rade added a commit that referenced this issue Jul 17, 2015
More helpful error message when --ip-alloc-range mismatched

Closes #1128.
@rade rade modified the milestones: current, 1.1.0 Jul 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants