Murali Reddy
4f9f0dfc3e
Replace weave-local-pods ipset with physdev iptables rule
...
by-pass ingress network policy chains and accept the packet if
destination is not one of the local pods
return the packets so the egress network policy chains are skipped
in case packet's source is not one of the local pods
Fixes #3344
2018-10-02 11:02:36 +05:30
Bryan Boreham
a73330f752
Merge branch '2.4'
2018-09-26 10:20:04 +01:00
Bryan Boreham
427e7a6868
Merge pull request #3408 from weaveworks/issues/3405-tracker-nil-deref
...
ipam: Do not deref nil in GET /ipinfo/tracker if tracker doesn't exist
2018-09-25 12:29:03 +01:00
Martynas Pumputis
79f77f94f4
ipam: Do not deref nil in GET /ipinfo/tracker if tracker doesn't exist
...
In some cases, we do not create any IPAM tracker, which leads
to a panic when GET'ing /ipinfo/tracker.
2018-09-21 13:29:03 +03:00
Bryan Boreham
fc759e2df9
Merge branch '2.4'
2018-09-13 16:59:03 +00:00
Bryan Boreham
1fcd521f67
Add release v2.4.1
v2.4.1
2018-09-13 15:25:47 +00:00
Martynas Pumputis
66bd443183
Merge remote-tracking branch 'origin/2.4'
2018-09-12 18:25:30 +03:00
Martynas Pumputis
fa74e9f290
Merge pull request #3400 from weaveworks/issues/3384-peerlist-race
...
Fix two race conditions in Kubernetes IPAM reclaim
Fix #3384
2018-09-12 18:13:56 +03:00
Bryan Boreham
008eeb03ad
Improve comments and error checking
2018-09-12 14:11:09 +00:00
Bryan Boreham
41c48dc678
Update test to call reclaimPeer()
2018-09-12 14:11:09 +00:00
Bryan Boreham
09be35dee0
Fetch stored peer list every time round the retry loop
...
This ensures we take account of other peers' updates and closes a race
condition whereby another peer's changes can be overwritten.
2018-09-12 14:11:09 +00:00
Bryan Boreham
c3ad641d94
Refactor: extract reclaimPeer() function
2018-09-12 14:11:09 +00:00
Bryan Boreham
bacb3952a3
Fetch Kubernetes node list every time round reclaim loop
...
If we retain the Kubernetes list for a long time we might see a peer
appear in the Weave list and conclude it has been deleted. We must
always fetch the Kubernetes list after fetching the Weave list, during
deletion.
2018-09-12 14:10:59 +00:00
Bryan Boreham
70257a6c19
Add test for kube-utils peer list
...
- In parallel on several goroutines, randomly add and remove peers.
- Maintain the test's own idea of current state.
- Check that the test's state and kube-utils' state are consistent.
2018-09-12 12:37:16 +00:00
Bryan Boreham
bfe9f00e55
Fake kubernetes API which implements optimistic locking
...
Mostly copied from kubernetes/client-go files
2018-09-12 12:37:16 +00:00
Bryan Boreham
591be2d08f
Refactor: Introduce an interface so weave client can be mocked
2018-09-12 12:37:16 +00:00
Bryan Boreham
c3ce052cc5
Refactor: use Kubernetes.Interface instead of *Clientset
...
So we can call with a mock for testing
2018-09-12 12:35:34 +00:00
Bryan Boreham
7dcd4bdf47
Refactor: extract peerlist fns to new file
2018-09-12 12:35:34 +00:00
Bryan Boreham
2d8373249a
Vendor mock Kubernetes APIs for testing
2018-09-12 12:35:33 +00:00
Bryan Boreham
4979ce1f5f
Update to dep v5
...
This adds more metadata to Gopkg.lock, and seems to have deleted a few
more files.
2018-09-12 12:35:33 +00:00
Martynas Pumputis
79d812a9c2
Merge remote-tracking branch 'origin/2.4'
2018-09-12 13:58:08 +03:00
Martynas Pumputis
78e00f9a3a
Merge pull request #3397 from weaveworks/issues/3394-delete-old-me
...
Reclaim IPs when node name is re-used
2018-09-12 13:57:12 +03:00
Bryan Boreham
2ff0bbe150
Reclaim IPs when node name is re-used
...
Change the map used to reclaim peers so it is indexed by PeerName
which should be unique over time, rather than NodeName which can be
re-used. Create an auxilliary set of NodeNames to help.
This way, if we can see that a different peer was previously running
with the same node name, it can be included for reclaim.
2018-09-10 15:10:51 +00:00
Martynas Pumputis
a182bd4514
Merge pull request #3388 from myENA/feature/skip-nat-via-weave-expose
...
add --without-masquerade option to `weave expose`
2018-09-10 15:45:52 +03:00
Bryan Boreham
231d0c633e
Merge branch '2.4'
2018-09-06 14:24:40 +00:00
Bryan Boreham
a6e1165e71
Merge pull request #3369 from dholbach/fix-3338
...
docs: update ECS references
2018-09-06 14:24:15 +00:00
Bryan Boreham
0e26b4621d
Merge pull request #3369 from dholbach/fix-3338
...
docs: update ECS references
2018-09-06 15:21:26 +01:00
Bryan Boreham
fc211b15e9
Merge pull request #3393 from weaveworks/issues/3392-get-peers-with-no-ip
...
Do not exclude k8s node without any IP addr in reclaim
2018-09-06 15:20:33 +01:00
Martynas Pumputis
acc24f1237
Do not exclude k8s node without any IP addr in reclaim
...
Otherwise, such node will be rmpeer'd which can lead to the IPAM
inconsistencies "Received update for IP range I own at <..>".
2018-09-06 14:49:20 +03:00
Bryan Boreham
612e265123
Merge pull request #3391 from weaveworks/debug-log
...
add documentation to enable debug logging
2018-09-06 12:45:58 +01:00
Murali Reddy
9cf50588b5
remove weave-npc logging details
2018-09-06 11:45:02 +00:00
Murali Reddy
6c2de466c0
add documnetatin to enable debug logging
2018-09-06 11:44:53 +00:00
Bryan Boreham
6f26c732f1
Merge pull request #3356 from weaveworks/portmap
...
support for portmap as additional plugin with wave-net
2018-09-05 11:06:58 +01:00
Murali Reddy
ddfec13f17
add portmap requirement in kube-addon.md
2018-09-05 12:06:13 +05:30
Murali Reddy
b8b47787be
integration test for HostPort support
2018-09-05 08:35:27 +05:30
Martynas Pumputis
4d1f968eb6
Merge pull request #3381 from weaveworks/issue-3133
...
Monitor and throw error message in the logs if Weave bridge interface is down
Fix #3133
2018-09-03 15:43:34 +03:00
Murali Reddy
16a8988e41
addressing review comments
2018-09-03 15:25:57 +05:30
Aaron Hurt
c9f1d30f49
updates to address comments by @bboreham
2018-08-31 14:26:00 -05:00
Aaron Hurt
4b9c533b94
add the ability to skip creation of MASQUERADE rules via iptables when executing weave expose command
2018-08-31 11:46:31 -05:00
Murali Reddy
90907a7647
Fix to use 10-weave.conflist instead of 10-weave.conf as CNI config file.
...
Also adds support for portmap as additional plugin along with weave-net
Fixes #3016
2018-08-31 16:11:24 +05:30
Bryan Boreham
ad4e4238a5
Merge pull request #3360 from dholbach/licenses-fix
...
license: document vendored code which is under LGPL3 and MPL-2.0
2018-08-23 10:44:26 +01:00
Murali Reddy
40980aeb90
Monitor and throw error message in the logs if Weave bridge interface
...
is found to be in DOWN state
Fixes #3133 Do something more useful when the weave bridge is DOWN
On Weave restart there is already logic in place to create the bridge interface
and bring it up, this fix only monotors the weave bridge interface and logs error if
it is in DOWN state
2018-08-23 10:02:21 +05:30
Martynas Pumputis
f68579654b
Merge pull request #3375 from weaveworks/issue-3302
...
Fix weave-npc crash when named ports specified in the named ports
2018-08-17 14:20:41 +02:00
Martynas Pumputis
9899780f35
Merge branch '2.4'
2018-08-17 12:24:23 +02:00
Martynas Pumputis
dd5994c7cf
Merge pull request #3379 from weaveworks/issue-3226
...
add missing --token argument in help for `weave launch`
Fix #3226
2018-08-17 11:15:53 +02:00
Murali Reddy
e6ba59f029
add missing --token argument in help for weave launch
...
Fixes #3226
2018-08-17 14:40:05 +05:30
Murali Reddy
e0359a32f2
Merge pull request #3367 from weaveworks/issues/3168-ingress-ipblock
...
Add ipBlock support for Ingress netpol
2018-08-16 13:24:47 +05:30
Murali Reddy
a19d025677
addressing review comment
2018-08-14 20:16:04 +05:30
Daniel Holbach
528baedd99
make markdownlint happier
2018-08-14 12:32:57 +02:00
Daniel Holbach
e1579ecc1e
update license bits after #3358 was fixed, don't include licenses we already ship in the code
2018-08-14 12:30:04 +02:00