Martynas Pumputis
8467742d6d
Increase smoke test timeout from 240 to 300 sec
...
The 840 smoke test (k8s + npc) sometimes might take longer than 240 sec.
2017-10-22 19:29:52 +02:00
Martynas Pumputis
5cfc3f8c47
Bump k8s version in smoke tests to 1.7.8
2017-10-22 19:29:21 +02:00
Martynas Pumputis
8755da4b5a
Add smoke tests to check FORWARDing after 'expose'
2017-10-17 12:08:43 +01:00
Martynas Pumputis
25cff16bd1
Create WEAVE-EXPOSE iptables chain
...
Docker 1.13 has changed a default policy of FORWARD chain to DROP
(https://github.com/moby/moby/pull/28257 ) which makes containers
inaccessible from a remote host when the bridge is exposed.
The change breaks e.g. the AWSVPC mode. To overcome this we install
an explicit rule for accepting forwarded ingress traffic to an
exposed subnet which is appended to the WEAVE-EXPOSE chain.
The chain is a target of the rule "-t filter -A FORWARD -o weave".
2017-10-17 12:08:43 +01:00
Martynas Pumputis
ade6738789
Handle "weave expose" in weaver
...
The change makes "weave expose" to call the "/expose" HTTP
endpoint implemented in router which exposes the bridge.
Such architectural change required as we need to know whether NPC is
enabled when exposing the bridge and weaver knows this fact the best.
Unfortunately, this change makes impossible to "weave expose"
when weaver is not running.
2017-10-17 12:08:43 +01:00
Bryan Boreham
ea0e3a14e0
Merge branch '2.0'
2017-10-17 10:17:25 +00:00
Bryan Boreham
4a1a1e83c8
Update Python 'setuptools' module to resolve issue
...
Symptom of issue was this message:
error in cryptography setup command: Invalid environment marker: platform_python_implementation != 'PyPy'
2017-10-17 10:17:06 +00:00
Bryan Boreham
ee48700b40
Merge pull request #3141 from bjhaid/upgrade_client_go
...
Upgrading client go and vendoring its extra dependencies.
2017-10-11 16:08:00 +01:00
Bryan Boreham
0791ce8ab0
Merge branch '2.0'
2017-10-11 10:49:13 +00:00
Ayodele Abejide
1ac543aba7
Upgrading client go and vendoring it's extra dependencies.
2017-10-10 16:48:35 +00:00
Bryan Boreham
3d5f80630d
Merge pull request #3142 from weaveworks/fixnotes
...
Fixnotes
2017-10-10 16:10:00 +01:00
abuehrle
be2da07735
fix note pins
2017-10-10 09:46:35 -05:00
Bryan Boreham
276d0b621b
Add release v2.0.5
v2.0.5
2017-10-05 11:57:23 +00:00
Martynas Pumputis
6733dac9fc
Merge remote-tracking branch 'origin/issues/3136-fix-etc-hosts' into 2.0
2017-10-05 13:18:41 +02:00
Martynas Pumputis
80b286ebf7
Merge pull request #3138 from weaveworks/issues/3136-fix-etc-hosts
...
Add back EXEC_IMAGE so proxy can docker-run itself
Fixes #3136
2017-10-05 13:14:16 +02:00
Bryan Boreham
2c143612e2
Add back EXEC_IMAGE so proxy can exec itself
2017-10-05 11:01:57 +00:00
Bryan Boreham
be412812f9
Remove unused variable assignment
2017-10-05 10:45:51 +00:00
Bryan Boreham
bfed7c24f8
Merge pull request #3129 from mkumatag/ppc64le_suuport
...
Add ppc64le support
2017-10-04 17:29:30 +01:00
Bryan Boreham
fe859952e0
Merge branch '2.0'
2017-10-04 16:05:07 +00:00
Bryan Boreham
86361c5b60
Merge pull request #3137 from weaveworks/lint-nonsense
...
Remove explicit error check at end of functions to placate lint
2017-10-04 16:59:01 +01:00
Bryan Boreham
35c017a787
Remove explicit error check at end of functions to placate lint
...
It's sad because this changes a regular pattern into an irregular one,
which will create spurious diffs if more work is added at the end of
the function. Still, this is easier than fixing the lint runner to
ignore the report.
2017-10-04 13:40:13 +00:00
Bryan Boreham
79d65bc98b
Report errors from rewriting /etc/hosts
2017-10-04 13:32:52 +00:00
Brice Fernandes
6bc69199d3
Merge pull request #3135 from weaveworks/fix-build-osx
...
Fix builds on OSX
2017-10-04 14:00:18 +01:00
Brice Fernandes
292cbc484a
Fix other occurences of GNU-specific sed invocation
2017-10-04 12:12:28 +01:00
Brice Fernandes
1a98cbfff9
Ignore sed backup files
2017-10-04 12:03:12 +01:00
Brice Fernandes
071f077cc5
Fix broken builds on OSX due to BSD vs GNU sed
2017-10-04 11:58:14 +01:00
Bryan Boreham
c16653a396
Mount iptables lock file in weave-kube ( #3134 )
...
Mount iptables lock file in weave-kube
iptables uses the file `/run/xtables.lock` so that if changes are
under way, another instance of the iptables command can wait till it
is finished.
We need to mount the lock file from the host to the container in order
for this mechanism to work at all.
Note we rely on kubelet touching the file before running any pods -
see https://github.com/kubernetes/kubernetes/pull/47212
2017-10-03 14:52:49 +01:00
Damien Lespiau
b157544394
Bump license copyright year to 2017 ( #3132 )
2017-10-03 14:52:03 +01:00
Matthias Radestock
18f65a1914
fix typo
2017-10-01 21:12:29 +01:00
Bryan Boreham
ba16135b3a
Escape a minus that is being interpreted as a bullet ( #3131 )
2017-09-29 14:16:13 +01:00
Bryan Boreham
df688cfb53
Added weave_ipam_unreachable_percentage metric
2017-09-26 15:55:38 +00:00
Bryan Boreham
88679d66fc
Improve wording
2017-09-26 15:53:14 +00:00
Carlos Alexandro Becker
ab1cbcbbf8
prometheus: export count of unreachable peers ( #3119 )
...
* prometheus: export count of unreachable peers
* extracted part of printIPAMRanges
2017-09-26 16:50:10 +01:00
Bryan Boreham
a362bf68bb
Merge branch '2.0'
2017-09-26 09:41:29 +00:00
Bryan Boreham
3c53aa66b7
Improved wording after review
2017-09-26 09:41:11 +00:00
Bryan Boreham
c97d4731dc
Merge pull request #3113 from weaveworks/plugin-v2-troubleshooting
...
Add instructions on troubleshooting the V2 plugin
2017-09-26 10:40:29 +01:00
Bryan Boreham
a69546c9ee
Reworded on review feedback
2017-09-26 09:39:04 +00:00
Manjunath A Kumatagi
b0f78e97f4
Add ppc64le support
2017-09-26 13:49:35 +05:30
Bryan Boreham
49f7e38133
Removed stray repetition of anchor
2017-09-25 16:38:07 +00:00
Matthias Radestock
48ceb49832
refactor: inline and simplify proxy_addrs()
2017-09-18 09:16:37 +01:00
Matthias Radestock
dd772f04fe
cosmetic: move cidr functions to better place
2017-09-18 08:57:50 +01:00
Matthias Radestock
47597c941d
refactor(ish): create volumes just before weave container
...
It's the most logical sequencing and reduces the chances of debris
being left behind when things go wrong.
2017-09-18 08:49:02 +01:00
Matthias Radestock
c0e8af56e2
refactor: inline attach()
2017-09-18 08:24:13 +01:00
Matthias Radestock
72c0172c48
refactor: inline rewrite_etc_hosts
2017-09-18 07:37:01 +01:00
Matthias Radestock
507f5345c5
refactor: inline kill_container
2017-09-18 07:24:34 +01:00
Matthias Radestock
79d4aec1ec
cosmetic: move kill_container to correct section
2017-09-18 07:18:27 +01:00
Matthias Radestock
89c7e6d337
refactor weave setup for clarity
2017-09-17 16:33:37 +01:00
Bryan Boreham
b8d7af3822
Don't call 'docker pull' inside weaveexec
2017-09-16 18:51:58 +00:00
Bryan Boreham
3c9c968174
Merge pull request #3110 from dtshepherd/issues/2957-rm-docker-binary-from-weaveexec
...
Remove docker binary from weaveexec container
2017-09-13 13:38:07 +01:00
David Shepherd
38ca0f90c7
Simplify mac generation on attach|expose|hide
...
`weaveexec` no longer mounting '/' so we can't access the weavedb file
to get persistent peer ID. If `weaver` was running, we couldn't have
read the file anyway because BoltDB does not support concurrent access
from two processes.
Consequence is that if someone really does need the bridge creation on
'weave expose' the peer ID may change if created pre-1.9.0. We'll just
live with that (per @bboreham).
2017-09-13 08:04:04 -04:00