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
Bryan Boreham
f7ce16cba8
Move detailed warning about rmpeer from FAQ to docs
2017-02-23 13:22:28 +00:00
Bryan Boreham
6ac1fef01d
Fix broken link
2017-02-23 13:22:16 +00:00
Bryan Boreham
5c19efae48
Merge pull request #2811 from weaveworks/issues/2223-faq-anchors
...
Add anchors to faq questions
2017-02-23 13:19:39 +00:00
Bryan Boreham
f7c0da3ae1
Merge pull request #2781 from keontang/luanch-update
...
Add CONN_LIMIT environment var for running container
2017-02-23 12:40:01 +00:00
Bryan Boreham
fe0c833cdf
Move FAQ to the bottom of the menu
2017-02-23 12:28:51 +00:00
Bryan Boreham
58342f7509
add anchors to faq questions
2017-02-23 12:26:03 +00:00
Mike Bryant
fad537cad7
Add prometheus metrics for pending Allocates and Claims
2017-02-23 11:41:07 +00:00
Bryan Boreham
6d5c2ad0fa
Merge pull request #2793 from weaveworks/improve-fastdp-crypto-tests
...
Improve encryption tests
2017-02-22 14:56:14 +00:00
Martynas Pumputis
b585e1f4cb
Merge pull request #2795 from weaveworks/issues/2792-refcount-ipset
...
Reference-count ipset entries
Fix #2792
2017-02-22 14:01:26 +00:00
Bryan Boreham
7102bf6d9d
Merge pull request #2803 from weaveworks/update-readme
...
update slack community and weave user group details
2017-02-21 15:38:34 +00:00
Bryan Boreham
77988012ed
Merge pull request #2765 from weaveworks/issues/1644-fastdp-crypto-docs
...
Add fastdp-crypto docs
2017-02-20 17:56:32 +00:00
Bryan Boreham
2989e3cccd
Merge pull request #2790 from weaveworks/update-netlink-dep
...
Update vishvananda/netlink
2017-02-20 17:51:37 +00:00
Bryan Boreham
5a47d1d13f
Merge pull request #2796 from weaveworks/versions-manifest
...
Add versions manifest file for dependencies.
2017-02-20 11:42:30 +00:00
Martynas Pumputis
d3795d4e74
Merge pull request #2774 from weaveworks/update-ipam-doc
...
Update IPAM documentation.
2017-02-16 12:09:08 +00:00
Marc CARRE
bc97daf5c0
Update IPAM documentation.
2017-02-15 16:25:12 +00:00
abuehrle
08e4c98172
open new window punctuation
2017-02-14 14:41:25 -06:00
abuehrle
ca254e066a
changed to pro link for WUOG
2017-02-14 14:28:22 -06:00
abuehrle
aea92a3563
update slack community and wuog
2017-02-14 14:16:37 -06:00
Bryan Boreham
e9fa655e0e
Merge pull request #2802 from weaveworks/issues/2761-build-chown
...
Make /usr/local/go writable to anyone
2017-02-14 16:55:37 +00:00
Martynas Pumputis
7d178ecee9
Make /usr/local/go writable to anyone
...
Previous attempt to chown the dir inside build.sh resulted in
a significant increase in a build time, and build.sh is exec'd
once per each build.
2017-02-14 15:45:25 +00:00
Bryan Boreham
201321f390
Remove refcounts on destroy and flush
2017-02-14 10:50:22 +00:00
Bryan Boreham
3afc528c88
Reference-count ipset entries
2017-02-14 10:26:59 +00:00
Marc CARRE
62c9522bf6
Fix bug in get_go_version_from_build_dockerfile.
...
Previously, the first line of the Dockerfile would have been selected, regardless of its value.
What we want is to actually select the first line matching the regex, and then extract the group corresponding to the Go version out of it.
2017-02-13 19:54:38 +00:00
Marc CARRE
1b45e8662e
Add DEPENDENCIES file and source Vagrant and tests versions from it.
...
- One unique file to list all dependencies and dependencies' versions (except Go, currently defined in `build/Dockerfile`).
- Custom versions can now be injected into Vagrant VMs.
- Vagrant dev VMs, Vagrant test VMs, and `run-integration-tests.sh` all source from `DEPENDENCIES`, to keep things 'DRY'.
- Vagrant versions can be overriden using environment variables, like it was possible in `run-integration-tests.sh`.
2017-02-13 19:54:38 +00:00