Bryan Boreham
178cf85183
Add release v1.9.4
v1.9.4
2017-03-21 14:30:35 +00:00
Bryan Boreham
272161b00b
Add k8s-1.6 daemonset to release script
2017-03-21 14:23:13 +00:00
Bryan Boreham
56155d0819
Extra checks on return value from IPAM plugin
2017-03-21 11:39:36 +00:00
Bryan Boreham
c711826996
Blank out container ID when exec-ing a CNI ipam plugin to get bridge address
2017-03-21 11:39:36 +00:00
Bryan Boreham
eef6965590
Clean out weave CNI plugin before tests
2017-03-21 11:39:36 +00:00
Bryan Boreham
4926cb6f9a
Add test to check that bridge IP is not the same as container IP
2017-03-21 11:39:36 +00:00
Bryan Boreham
d9ca54e777
Don't use Printf without a format
2017-03-21 11:38:35 +00:00
Bryan Boreham
1f6a6349a9
Remove useless 'break'
2017-03-21 11:38:35 +00:00
Bryan Boreham
8f27f8f442
Clean up some tests that were not checking results
2017-03-21 11:38:35 +00:00
Bryan Boreham
681109ba71
use net.IP.Equal to compare, not bytes.Equal
2017-03-21 11:38:35 +00:00
Bryan Boreham
99c691745a
Check error return on udp dial()
2017-03-21 11:38:35 +00:00
Bryan Boreham
1af5699948
cancelOp was cancelling the first op in the queue
2017-03-21 11:38:35 +00:00
Bryan Boreham
ef7571f1ef
Can't catch SIGKILL
2017-03-21 11:38:35 +00:00
Bryan Boreham
c0726923f5
Merge pull request #2851 from weaveworks/k8s-1.6-beta
...
Upgrade to latest build-tools to be able to test against 1.6+ and/or "unstable" versions of K8S
2017-03-20 12:07:38 +00:00
Marc CARRE
4d9eadde5b
Upgrade to latest version of build-tools.
...
Integrate latest changes required for testing against Kubernetes 1.6.0-beta.*.
See also: github.com/weaveworks/build-tools/pull/81
2017-03-17 12:05:27 +00:00
Bryan Boreham
9da5cee8d9
Rename Kubernetes daemonset to "1.6"
...
To emphasise this is the version that adopters of Kubernetes 1.6 need
to use.
2017-03-17 11:45:06 +00:00
Bryan Boreham
ca22ecdf09
Merge branch 'luxaslabs-add_head_manifest' into 1.9
2017-03-17 11:44:16 +00:00
Lucas Käldström
2e58e92d48
Add a weave-kube manifest that works for kubeadm v1.6
2017-03-17 11:43:48 +00:00
Bryan Boreham
fd0c53b424
Merge pull request #2852 from weaveworks/assert-no-defunct
...
Assert no defunct process is generated as a postcondition of all tests.
2017-03-17 11:40:32 +00:00
Marc CARRE
7b1e8ac1cf
Assert no defunct process is generated as a postcondition of all tests.
2017-03-17 10:36:16 +00:00
Bryan Boreham
31b7e063e7
Use version 3 in the test
...
CNI_VERSION env var was never used, so removed from the test script.
The second test is crashing on v1, so bumped to v3.
2017-03-16 18:23:20 +00:00
Bryan Boreham
b5172f46c1
Honour the input version number
2017-03-16 18:23:20 +00:00
Bryan Boreham
5a6cb8e708
Allow CNI netns to be blank on DEL
...
Also don't error on DEL with no namespace and no addresses
2017-03-16 18:23:20 +00:00
Bryan Boreham
c3c28ea27e
Update CNI library to version 0.5.0
2017-03-16 18:23:20 +00:00
Bryan Boreham
623abeef4c
gofmt
2017-03-14 17:56:59 +00:00
Bryan Boreham
5f30846092
Unwind changes to doExec and handle List() error differently
...
exec.Output() already wraps the stderr output, so we don't need to do that.
2017-03-14 17:56:59 +00:00
Bryan Boreham
6ddbc5cb57
Simplify List()
2017-03-14 17:56:59 +00:00
Bryan Boreham
f9f3b18ce4
Test whether non-weave ipsets get blown away
2017-03-14 17:56:59 +00:00
Stephan Austermühle
dc2925263c
Destroy ipsets prefixed weave- only (issue #2751 )
2017-03-14 17:56:59 +00:00
Bryan Boreham
56fd45f7ea
Merge pull request #2845 from weaveworks/issues/2836-defunct-launch.sh-no-exec
...
Remove exec from weaver command; Fixes #2836 .
2017-03-14 16:52:17 +00:00
Marc CARRE
21a0fc30e8
Run weaver without exec.
...
This:
1. prevents from generating defunct (a.k.a. zombie) processes, and therefore fixes #2836 ; but also
2. reintroduces #2684/#2688 as shells do not forward signals and we are still running more than one process.
A proper fix would leverage something like tini.
See also:
- github.com/krallin/tini
- github.com/krallin/tini/issues/8
- github.com/docker-library/official-images#init
Sample output:
- during initialisation:
```
$ ps auxf
[...]
root 1380 0.4 1.9 879660 74660 ? Ssl Mar13 6:02 /usr/bin/docker daemon -H fd:// -H unix:///
root 1664 0.0 0.4 502116 18528 ? Ssl Mar13 0:06 \_ docker-containerd -l /var/run/docker/li
root 15482 0.0 0.0 200496 3364 ? Sl 15:04 0:00 \_ docker-containerd-shim 3d1f5eb6e090
root 15496 0.0 0.0 1524 996 ? Ss 15:04 0:00 | \_ /bin/sh /home/weave/launch.sh
root 15780 0.0 0.0 1524 64 ? S 15:04 0:00 | \_ /bin/sh /home/weave/launch.
root 15872 0.0 0.0 1772 1272 ? S 15:04 0:00 | | \_ /bin/sh /home/weave/wea
root 15897 0.0 0.0 1772 324 ? S 15:04 0:00 | | \_ /bin/sh /home/weave
root 15898 0.0 0.0 14656 2948 ? S 15:04 0:00 | | \_ curl -o /tmp/we
root 15781 10.0 1.5 484556 60296 ? Sl 15:04 0:00 | \_ /home/weave/weaver --port=6
[...]
```
- after initialisation:
```
$ ps auxf
[...]
root 1380 0.4 1.9 879660 74660 ? Ssl Mar13 6:02 /usr/bin/docker daemon -H fd:// -H unix:///
root 1664 0.0 0.4 502116 18592 ? Ssl Mar13 0:06 \_ docker-containerd -l /var/run/docker/li
root 15482 0.0 0.0 200496 3364 ? Sl 15:04 0:00 \_ docker-containerd-shim 3d1f5eb6e090
root 15496 0.0 0.0 1524 996 ? Ss 15:04 0:00 | \_ /bin/sh /home/weave/launch.sh
root 15781 2.3 1.6 503064 64320 ? Sl 15:04 0:00 | \_ /home/weave/weaver --port=6[...]
```
2017-03-14 15:34:47 +00:00
Marc CARRE
673d0af97d
Add failing test catching defunct launch.sh processses.
...
Reproduces issue #2836 , i.e.:
- during initialisation:
```
$ ps auxf
[...]
root 1380 0.4 1.6 879660 60732 ? Ssl Mar13 5:54 /usr/bin/docker daemon -H fd:// -H unix:///
root 1664 0.0 0.4 502116 18540 ? Ssl Mar13 0:06 \_ docker-containerd -l /var/run/docker/li
root 12615 0.0 0.1 200496 5424 ? Sl 14:38 0:00 \_ docker-containerd-shim c5637e5bbdcb
root 12629 6.2 1.6 296400 62312 ? Ssl 14:38 0:00 | \_ /home/weave/weaver --port=6783
root 12910 0.0 0.0 1524 68 ? S 14:38 0:00 | \_ /bin/sh /home/weave/launch.
root 13002 0.0 0.0 1772 1232 ? S 14:38 0:00 | \_ /bin/sh /home/weave/wea
root 13027 0.0 0.0 1772 320 ? S 14:38 0:00 | \_ /bin/sh /home/weave
root 13028 0.0 0.0 14656 2708 ? S 14:38 0:00 | \_ curl -o /tmp/we
[...]
```
- after initialisation:
```
$ ps auxf
[...]
root 1380 0.4 1.6 879660 60732 ? Ssl Mar13 5:54 /usr/bin/docker daemon -H fd:// -H unix:///
root 1664 0.0 0.4 502116 18540 ? Ssl Mar13 0:06 \_ docker-containerd -l /var/run/docker/li
root 12615 0.0 0.1 200496 5424 ? Sl 14:38 0:00 \_ docker-containerd-shim c5637e5bbdcb
root 12629 3.5 1.6 297460 63340 ? Ssl 14:38 0:00 | \_ /home/weave/weaver --port=6783
root 12910 0.0 0.0 0 0 ? Z 14:38 0:00 | \_ [launch.sh] <defunct>
[...]
```
Sample output:
```
test #5 "run_on mct-0.us-central1-a.weave-net ps aux | grep -c '[d]efunct'" failed:
expected "0"
got "1"
test #6 "run_on mct-1.us-central1-a.weave-net ps aux | grep -c '[d]efunct'" failed:
expected "0"
got "1"
test #7 "run_on mct-2.us-central1-a.weave-net ps aux | grep -c '[d]efunct'" failed:
expected "0"
got "1"
3 of 8 tests failed in 62.012s.
```
2017-03-14 14:39:34 +00:00
Bryan Boreham
402400d4cb
Merge pull request #2831 from weaveworks/issues/2830-fix-fastdp-crypto-docs
...
doc: Remove invalid statement about missing encryption in fastdp; Fixes #2830
2017-03-09 16:00:54 +00:00
Martynas Pumputis
b1a66012bd
doc: Remove invalid statement about missing encryption in fastdp
2017-03-09 15:38:13 +00:00
Marc CARRE
85fa976a25
Add release v1.9.3
v1.9.3
2017-03-07 14:38:42 +00:00
Bryan Boreham
640b487914
Merge pull request #2825 from weaveworks/issues/2824-fastdp-timer-race
...
Do not reset fastdp heartbeat timer for non-confirmed connections. Fixes #2824
2017-03-06 10:45:45 +00:00
Martynas Pumputis
7c84e24f48
fastdp: Do not reset heartbeat timer for non-confirmed connections
...
It is possible to receive FastDatapathCryptoInitSARemote control plane
message before Confirm'ing a connection. In such case, resetting
heartbeatTimer leads to null pointer dereference, as the timer is
initialized during Confirm'ation.
In this situation, skipping the reset is non-harmful, because
Confirm'ing will reset it.
NB: the reset to 0 should only happen after establishing the connection
on both ends.
2017-03-02 16:59:48 +00:00
Martynas Pumputis
125f3cf6f6
Add release v1.9.2
v1.9.2
2017-03-01 14:11:20 +00:00
Bryan Boreham
b2ffe77029
Merge pull request #2821 from weaveworks/issues/2820-busybox-modprobe
...
Ignore modprobe errors in weave-kube/launch.sh
2017-03-01 11:32:52 +00:00
Martynas Pumputis
3607cf2d7a
Add check for xt_set module
...
The check is based on actually trying to install an iptables rule
which uses the module.
2017-03-01 10:37:43 +00:00
Martynas Pumputis
a57cf4bc83
Ignore modprobe errors in weave-kube/launch.sh
...
weave-kube is run by alpine image which uses busybox. modprobe of
busybox will return the "module not found" error [1], if a module is
built-in, which is an opposite behavior to modprobe distributed in
mainstream distros (e.g. ubuntu).
[1]: https://bugs.busybox.net/show_bug.cgi?id=5270
2017-02-28 11:26:40 +00:00
Bryan Boreham
6036037817
Added kops update to the release instructions
2017-02-27 18:10:13 +00:00
Bryan Boreham
242b8907bf
Add release v1.9.1
v1.9.1
2017-02-27 16:20:02 +00:00
Bryan Boreham
9db22c3cd6
Merge pull request #2818 from 'tobowers-fix-reverse-dns'
...
Lowercase the request before comparing it
Fix #2817
2017-02-27 16:15:18 +00:00
Bryan Boreham
e57d79bd70
Test reverse DNS using dig
...
so that we can check it works with upper and lower case IN-ADDR.ARPA
2017-02-27 14:56:25 +00:00
Martynas Pumputis
589ab4f01d
Merge pull request #2819 from weaveworks/issues/2726-modprobe
...
Ensure we have the right modules loaded for weave-npc
Fix #2726
2017-02-27 14:23:12 +00:00
Bryan Boreham
01fe09065c
Add weave-npc required kernel modules to docs
2017-02-27 14:25:43 +00:00
Topper Bowers
83958561f7
some DNS clients send reverse lookups with uppercase suffixes. This lowercases the request before trimming the lowercase suffix. Problem discovered and discussed here: https://github.com/weaveworks/weave/issues/2817
2017-02-27 14:19:31 +01:00
Bryan Boreham
cb73cf3f51
Ensure we have the kernel modules loaded for weave-npc
2017-02-27 12:32:57 +00:00
Martynas Pumputis
7a3e8e64b7
Merge pull request #2810 from ocadotechnology/add-pending-metrics
...
Add prometheus metrics for pending Allocates and Claims
2017-02-24 15:55:39 +00:00