Bryan Boreham
59fe76f29b
Add release v2.1.2
2017-11-27 14:06:33 +00:00
Bryan Boreham
2ab01b55c9
Merge branch 'master' into 2.1
2017-11-27 11:45:15 +00:00
Bryan Boreham
461f9e736b
Merge pull request #3186 from weaveworks/issues/3184-update-mesh
...
Update vendored mesh dep
2017-11-27 11:34:15 +00:00
Bryan Boreham
8e16b03ae8
Merge pull request #3181 from weaveworks/issues/3177-ooo
...
npc: Track ipset entries per user and refcount default-allow ipsets
2017-11-27 11:01:59 +00:00
Martynas Pumputis
6469809b9a
Update vendored mesh dep
2017-11-22 16:07:19 +02:00
Martynas Pumputis
0a0dbe115a
npc: Track ipset entries per user
...
There was a bug in handling "default-allow" ipsets - it could not
cope with out of order receive of Pod updates. E.g:
1) AddPod(Pod_A, PodIP_A),
2) AddPod(Pod_B, PodIP_A),
3) DeletePod(Pod_A),
would result with PodIP_A being removed from "default-allow" ipset,
as such ipset entries were not refcounted. Bypassing of refcounting
was due to the fact that adding a netpol which dst-selects a Pod which
IP addr is in "default-allow" ipset has to remove the IP addr from
the ipset regardless of refcount value of the IP addr entry in the
ipset. So, refcounting in such case didn't make sense and it was
bypassed.
This commit changes the way entries are refcounted in ipsets, and
it makes "default-allow" ipset the same citizen as other ipsets, so
from now "default-allow" ipset is refcounted.
2017-11-21 14:41:29 +02:00
Bryan Boreham
ebbf3d4244
Add release v2.1.1
2017-11-17 14:17:31 +00:00
Bryan Boreham
ceb36d1891
Typo
2017-11-17 14:15:10 +00:00
Bryan Boreham
4caa850853
Merge pull request #3176 from weaveworks/issues/3175-fix-install
...
Fix 2.1.0 install issues
2017-11-17 14:14:41 +00:00
Bryan Boreham
96cecf1796
Pull images before running inside weaveexec container
...
Now we don't bundle the docker command inside weaveexec, we need to do
an explicit 'docker pull' to ensure the images are there.
Also set the weavedb tag to :latest to remove a warning from docker
2017-11-17 13:51:10 +00:00
Bryan Boreham
51c7af8fb4
Set IMAGE before using it
2017-11-17 13:31:46 +00:00
Bryan Boreham
347466aba2
Add release v2.1.0
2017-11-17 11:10:52 +00:00
Bryan Boreham
bee1c44859
Merge pull request #3173 from weaveworks/reclaim-tweaks
...
Rearrange peer reclaim checks in weave-kube launch script
2017-11-16 17:05:46 +00:00
Bryan Boreham
f07238c8bb
Move info log to after error check
2017-11-16 14:31:40 +00:00
Bryan Boreham
3b499ce27c
Rearrange peer reclaim checks in weave-kube launch script
...
This is to make it behave better on fresh start, and in the case where
the manifest has not been updated to give it permissions.
2017-11-16 14:14:54 +00:00
Bryan Boreham
4dda216398
Merge pull request #3172 from weaveworks/issues/3170-fix-upgrade
...
weave-kube reclaim: check for upgrade case
2017-11-15 17:59:54 +00:00
Bryan Boreham
f0e511510a
Don't print a message on flag not found
2017-11-15 12:35:19 +00:00
Bryan Boreham
570ab0b10b
Avoid deleting persisted data on weave-kube upgrade
...
Add a feature to weaveutil to get and set flags, then use this feature
to mark the DB when this version runs
2017-11-15 11:26:43 +00:00
Bryan Boreham
214cf6cb2e
Flip result code when checking for new peer
...
This avoids mistaking an error condition for the result we should act on
2017-11-15 10:11:02 +00:00
Bryan Boreham
07459f0cec
Merge pull request #3149 from weaveworks/fix-2797-loosing-ipam-ips
...
Fix 2797 on Kubernetes - Cluster goes down because all IPs become unreachable
2017-11-14 15:31:06 +00:00
Brice Fernandes
90f4f7b62c
Add test to ensure that weave recovers unreachable IPs on launch
2017-11-14 14:18:21 +00:00
Brice Fernandes
987ac98fbf
Add up command to integration tests to make launching cluster easier
2017-11-14 14:16:01 +00:00
Brice Fernandes
49ed40a301
Add test function to recover clean output from command run on remote host
2017-11-14 14:16:01 +00:00
Bryan Boreham
c67bc704e1
Temporarily raise kube-peers log level to debug
2017-11-14 14:16:01 +00:00
Bryan Boreham
3501ad45e6
Cope with a Kubernetes node being deleted and coming back
...
Add features to weaver and kube-peers to find the peer name and check
if it is in the list, then in launch.sh delete persisted data if not.
2017-11-14 14:15:31 +00:00
Bryan Boreham
70a13c9c12
Make kube-peers logging consistent and add -log-level flag
...
Also tag kube-peer log messages with "[kube-peers]": in a standard
deployment they end up interspersed with weaver log messages so this
makes it easier to pick them out.
2017-11-14 14:06:34 +00:00
Brice Fernandes
3afb8d3ddf
Add log messages to detect dying peer edge case
2017-11-14 14:06:34 +00:00
Brice Fernandes
fd2f91e2ee
Refactor: Improve naming
2017-11-14 14:06:33 +00:00
Brice Fernandes
cb0c9e5fba
Document: Add file-level docstrings for kube-peers
2017-11-14 14:06:33 +00:00
Brice Fernandes
6a0e39e5ee
Minor refactor for clarity
2017-11-14 14:06:33 +00:00
Bryan Boreham
a552f194b4
Code to reclaim IP address space from removed peers
2017-11-14 14:06:33 +00:00
Bryan Boreham
267bd8b51d
Pseudo-code to clean up dead peers
2017-11-14 14:06:33 +00:00
Brice Fernandes
497dddabc1
Improve config locking by using optimistic locking strategy
...
Loop using jitter until the update succeeds
2017-11-14 14:06:33 +00:00
Bryan Boreham
71b39489da
Maintain a list of peers in a Kubernetes annotation
...
This is prework for a feature which will remove 'dead' peers
2017-11-14 14:06:33 +00:00
Bryan Boreham
ed8d92cfc6
RBAC to read and write ConfigMaps
2017-11-14 14:06:33 +00:00
Bryan Boreham
f431ee289b
Refactor: create config in main function
2017-11-14 14:06:33 +00:00
Martynas Pumputis
7ea82204e0
Merge pull request #3089 from weaveworks/improve-flags
...
Improve flag handling
2017-11-13 17:31:33 +02:00
Bryan Boreham
44692b997c
Merge pull request #3169 from weaveworks/issues/k8s-netpol-testing
...
Extend NetworkPolicy smoke tests
2017-11-13 15:30:48 +00:00
Bryan Boreham
21086a0b2a
Merge branch '2.0'
2017-11-13 12:51:29 +00:00
Bryan Boreham
d7119169df
Add length to log message for too-big DF broadcast frame
2017-11-13 11:06:34 +00:00
Martynas Pumputis
e1eb0a8617
npc: Fix typo
2017-11-13 10:41:45 +02:00
Martynas Pumputis
cacc190764
npc: Extend NetworkPolicy test cases in 840
...
- Add a test case for default allow all ingress traffic.
- Fix misleading comment.
2017-11-13 09:40:07 +02:00
Brice Fernandes
89e5d935a6
Document test runner feature to pick number of hosts
...
Merge pull request #3164 from weaveworks/improve-test-docs
2017-11-09 17:00:31 +00:00
Brice Fernandes
884e1d7a6b
Document test runner feature to pick number of hosts
2017-11-09 15:48:21 +00:00
Bryan Boreham
5b1ca02ecc
Merge pull request #3151 from weaveworks/issues/3105-k8s-17-netpolicies-whitelist
...
Implement Kubernetes 1.7 NetworkPolicy semantics
2017-11-07 16:31:01 +00:00
Martynas Pumputis
f51347feac
npc: Address PR comments
...
* Add comments about presence of `analysePolicyLegacy` and `analysePolicy`.
* Use non-legacy netpol in TestRegressionPolicyNamespaceOrdering3059.
2017-11-07 15:40:58 +02:00
Martynas Pumputis
b605b832ed
npc: Extend k8s NetworkPolicy smoke tests
...
- Test that pods not matching ingress rules are not able to access
the nettest pods.
- Test upgrading of NPC (from legacy to non-legacy).
- Test new semantics of k8s netpol.
2017-11-07 14:55:03 +02:00
Bryan Boreham
e148b72284
Merge branch '2.0'
2017-11-06 11:48:29 +00:00
Bryan Boreham
16db921349
Merge pull request #3128 from weaveworks/k8s-notes
...
Added 'things to watch out for' section in Kubernetes instructions
2017-11-03 10:59:35 +00:00
Bryan Boreham
4c235b3648
Merge pull request #3160 from weaveworks/2017-11-02-update-gopacket
...
Update gopacket to latest master to benefit from memory optimization
2017-11-03 10:32:35 +00:00
Damien Lespiau
1a8d479227
Update gopacket to latest master to benefit from memory optimization
...
Upstream has done some work saving 133k allocated objects on startup (init()),
which translates into a saving of 30-50MB RSS memory.
Details: https://github.com/google/gopacket/pull/377#issuecomment-338984309
2017-11-02 17:07:31 +00:00
Matthias Radestock
7aad364116
Merge pull request #3158 from weaveworks/2.0
...
merge branch 2.0
2017-10-31 08:11:17 +00:00
Matthias Radestock
4958d9e423
Merge pull request #3156 from weaveworks/3153-v2-plugin-dockerhub
...
document using v2 plugin from dockerhub rather than store
Fixes #3153 .
2017-10-31 07:08:50 +00:00
Matthias Radestock
474f1f3673
document using v2 plugin from dockerhub rather than store
...
Since the latter is hard to update and hence frequently out of date.
Fixes #3153 .
2017-10-30 20:43:45 +00:00
Martynas Pumputis
9aa7044f1e
npc: Add unit tests for default-allow ipsets
2017-10-22 19:42:08 +02:00
Martynas Pumputis
7c39f96d08
npc: Implement networking.k8s.io/v1/NetworkPolicy semantics (k8s 1.7)
...
The main difference between new and legacy (pre-1.7) netpol semantics
are the following:
* The DenyDefault ingress isolation annotation is obsoleted.
* Traffic is allowed to a pod if there are no netpol selecting
the pod.
See https://kubernetes.io/docs/api-reference/v1.6/#networkpolicyspec-v1beta1-extensions
vs https://kubernetes.io/docs/api-reference/v1.7/#networkpolicyspec-v1-networking
for more details.
weave-npc can operate either in the legacy or the new mode (default). To
use the legacy, pass "--use-legacy-netpol" arg when starting the npc.
In non-legacy mode we create for each Namespace a default-allow ipset
which stores IP addrs of such Pods which are not selected by any
NetworkPolicy.The ipsets are dst's in rules of the WEAVE-NPC-DEFAULT chain.
2017-10-22 19:37:18 +02:00
Martynas Pumputis
3c3e0b0352
Enable access to "networkpolicies" of "networking.k8s.io" API group
...
Since 1.7, k8s netpol is no longer in beta, so NPC can start subscribing
from the non-beta API group.
2017-10-22 19:32:52 +02:00
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
Bryan Boreham
62dbe03193
Don't log nil errors in CNI DEL
2017-10-17 16:13:48 +00: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
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
a02fb753df
Use the configured Docker host for the proxy, not the default one
2017-09-26 09:44:46 +00:00
Bryan Boreham
98b002f7c0
Remove unnecessary 'Version' in proxy
2017-09-26 09:44:46 +00:00
Bryan Boreham
e251bfe807
Move use of command-line params to after we know them
2017-09-26 09:44:46 +00:00
Bryan Boreham
eb88893312
Rename configureProxy to newProxyConfig
2017-09-26 09:44:46 +00: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
Bryan Boreham
2e7f44feee
Added 'things to watch out for'
2017-09-25 16:36:57 +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
David Shepherd
8bf08c3cf8
Remove docker binary from weaveexec container
...
Fixes #2957
- replace `docker stop` with `weaveuitl stop-container`
- replace `docker kill` with `weaveutil kill-container`
- replace `docker rm` with `weaveutil remove-container`
- replace `docker run` with minimal `weaveutil container-run`
- replace `docker inspect -f {{.ID}}` with `weaveutil container-id`
- replace data-only container `docker create` with `weaveutil create-volume-container`
- remove `docker inspect` dependencies from `weave` script
`rewrite_etc_hosts` and `with_container_fqdn`
- rework `weave` script `check_running` and `check_not_running` to use `weaveutil`
- rework `weave version` to use `weaver` /report API or `weaver --version` if not running
- rework `weave setup`'s `docker pull` to run locally rather than in `weaveexec` container
2017-09-13 08:03:58 -04:00
Martynas Pumputis
14c79d2184
Merge remote-tracking branch 'origin/2.0'
2017-09-09 13:17:29 +02:00
Martynas Pumputis
b0519af573
Merge pull request #3114 from weaveworks/issues/3103-rm-pluginv2-db
...
Remove db file for v2 plugin
Fixes #3103
2017-09-09 12:44:51 +02:00
Bryan Boreham
dc7acd6c70
Remove db file for v2 plugin
2017-09-08 13:23:26 +00:00
Bryan Boreham
d63a21363e
Add instructions on troubleshooting the V2 plugin
2017-09-08 11:11:44 +00:00
Bryan Boreham
a330dd4970
Improve "What is Weave Cloud" link
2017-09-07 19:39:50 +00:00
Bryan Boreham
c0388c0136
Improve "What is Weave Cloud" link
2017-09-07 20:32:24 +01:00
Bryan Boreham
aeca987a4c
Merge branch '2.0'
2017-08-25 15:25:55 +00:00
Bryan Boreham
3aff5f2467
Add release v2.0.4
2017-08-25 14:57:02 +00:00
Bryan Boreham
0c63a8d0e5
Merge pull request #3100 from weaveworks/wip-3098
...
fix: Test for ipset comment support
2017-08-24 17:29:44 +01:00
Mike Bryant
65b45e8dd1
fix: Test for ipset comment support
...
During initialisation try and create an ipset with the comment extension
If this fails, disable comment support
Fixes #3098
2017-08-24 11:14:16 +01:00
Bryan Boreham
03885d4b40
Merge pull request #3070 from weaveworks/update-kube-addon-doc
...
Update kube addon doc
2017-08-24 09:49:58 +01:00
Bryan Boreham
40e78fea99
Add a screen shot of Weave Net status in Weave Cloud
2017-08-24 08:38:05 +00:00
Bryan Boreham
ecba88e445
Clarify the wording of weave-kube troubleshooting
...
and note that statement about deleting old pods applies only to pre-2.0
2017-08-24 08:37:57 +00:00
Bryan Boreham
29c9b2c064
Move 'weave status' up beside the other troubleshooting
...
and put it in the table of contents at the top
2017-08-24 08:35:11 +00:00
Bryan Boreham
ff1cd7c008
Merge branch '2.0'
2017-08-23 11:18:52 +00:00
Bryan Boreham
6a871d13a6
Add release v2.0.3
2017-08-23 11:08:24 +00:00
Bryan Boreham
c2a224b436
Merge pull request #3096 from weaveworks/wip-3095
...
fix: Missing nil checks
2017-08-23 11:28:16 +01:00
Bryan Boreham
dd8d4b1d9b
Merge pull request #3097 from weaveworks/issues/3095-better-test
...
Extend weave-kube smoke test: add a policy with blank 'from'
2017-08-23 11:27:43 +01:00
Bryan Boreham
527bcffe3b
Extend weave-kube smoke test: add a policy with blank 'from'
...
Per issue #3095 this crashes the commenting code.
Also added check to see if the pods are still running.
2017-08-23 09:42:51 +00:00
Mike Bryant
de1d409c6a
Fix review comments
2017-08-23 09:40:44 +01:00
Mike Bryant
2555e491e1
fix: Missing nil checks
...
Fixes #3095
2017-08-23 01:21:15 +01:00
Bryan Boreham
4b5299d124
Add release v2.0.2
2017-08-22 11:28:19 +00:00
Bryan Boreham
294c16c186
Merge pull request #3060 from weaveworks/docker-install-role-override
...
Make Ansible's docker_install_role overridable
2017-08-22 11:50:38 +01:00
Bryan Boreham
4b720bffdf
Merge branch '2.0'
2017-08-18 14:02:58 +00:00
Bryan Boreham
7df458fcdd
Merge pull request #3093 from weaveworks/issues/3092-port-number
...
Supply the weave port number to bridgeConfig
2017-08-18 15:02:26 +01:00
Bryan Boreham
608b8f0a06
Supply the weave port number to bridgeConfig
2017-08-18 13:13:18 +00:00
Bryan Boreham
089a993299
Merge pull request #3088 from weaveworks/issues/3054-honour-no-dns-in-proxy
...
If DNS server is off then disable proxy DNS registration
2017-08-18 14:10:28 +01:00
Bryan Boreham
bc4c31e48b
If DNS server is off then disable proxy DNS registration
2017-08-18 10:25:10 +00:00
Bryan Boreham
5c210c90b5
Merge branch '2.0'
2017-08-16 16:37:29 +00:00
Bryan Boreham
a6cd456f8b
Merge pull request #3080 from weaveworks/issues/plugin-v2-modprobe
...
net-plugin: bind mount /lib/modules
2017-08-15 12:05:33 +01:00
Bryan Boreham
2ede1066e9
Remove unused WeaveDomain
...
(left over from a22b88ed89 )
2017-08-14 13:56:53 +00:00
Martynas Pumputis
462033dc99
net-plugin: bind mount /lib/modules
...
Otherwise, the plugin is not able to load kernel modules
(openvswitch, vxlan, vport_vxlan) required by fastdp which
makes weave to fallback to sleeve.
CAP_SYS_MODULE is required in order to load kernel modules.
2017-08-04 14:14:55 +02:00
Matthias Radestock
0521bdb3b9
Merge pull request #3078 from weaveworks/clarify-rmpeer-caution
...
clarify rmpeer caution in docs
2017-08-02 22:46:02 +01:00
Matthias Radestock
1f4165c132
clarify rmpeer caution in docs
...
- "You cannot call `weave rmpeer` on more than one host" - yes you
can, but you must not call it on more than one host *for the same
peer*
- `weave forget` has nothing to do with this
- "results in duplicate IPs" - no, it causes duplicate address range
assignments
- "the address is reassigned" - it's the address *range* that is
reassigned
- "claim" is a new and confusing term -> drop
- "address space" -> "address range" (that's what it's called
elsewhere)
2017-08-02 22:28:26 +01:00
Matthias Radestock
a1fb08216e
correct --allow-mcast docs
2017-07-31 20:21:06 +01:00
Anita Buehrle
381996b225
Merge pull request #3058 from weaveworks/docs-reorg
...
[WIP] Docs Reorg to accommodate for top menu
2017-07-28 12:34:58 -05:00
Martynas Pumputis
08bca70192
Merge pull request #3071 from weaveworks/remove-kube-fallback
...
Remove localhost:8080 fallback for Kubernetes api-server
2017-07-24 07:37:02 +02:00
abuehrle
10d25056a0
some conflict
2017-07-20 15:40:39 -05:00
abuehrle
f889dda9f3
add more urls fix others
2017-07-20 15:37:43 -05:00
abuehrle
b0cd84c940
test anchor
2017-07-20 15:37:33 -05:00
abuehrle
411fd2d831
test anchor
2017-07-20 15:37:32 -05:00
abuehrle
d18782afd7
fixed a conflict
2017-07-20 15:34:44 -05:00
abuehrle
43dfbdc8e3
taks toc - full urls added
2017-07-20 15:31:47 -05:00
abuehrle
ea0f156b6f
install toc added - full urls
2017-07-20 15:31:47 -05:00
abuehrle
98def2f5fc
rearrange install and launch
2017-07-20 15:31:47 -05:00
abuehrle
c089cb508c
add full urls instead
2017-07-20 15:31:47 -05:00
abuehrle
1797cee84f
update links in readme anchors
2017-07-20 15:31:46 -05:00
abuehrle
45c97c82e1
concepts toc
2017-07-20 15:31:46 -05:00
abuehrle
bccde69a33
test anchor
2017-07-20 15:31:46 -05:00
abuehrle
d9aa1a5abd
test anchor
2017-07-20 15:31:46 -05:00
abuehrle
46e1153f92
remove code format from title
2017-07-20 15:31:46 -05:00
abuehrle
3dc642c007
fixed url with anchor and broken link
2017-07-20 15:31:45 -05:00
abuehrle
bd9bc9093e
replaced Using Weave Net with Launching Weave Net
2017-07-20 15:31:45 -05:00
abuehrle
6f0680cc7b
replaced getting started guides with tutorials
2017-07-20 15:31:45 -05:00
abuehrle
911bf289bd
replaced URLs systemd and installing-weave
2017-07-20 15:31:44 -05:00
abuehrle
393b98a463
misc link replaced topology still going to router-topology
2017-07-20 15:31:44 -05:00
abuehrle
2126d2314e
replaced URLs for weave proxy section
2017-07-20 15:31:44 -05:00
abuehrle
d4d9a8fa9a
replaced URLs for weavedns section
2017-07-20 15:31:43 -05:00
abuehrle
6a21e3a2ca
replaced URLs for ipam section
2017-07-20 15:31:43 -05:00
abuehrle
7119348b31
replaced URL to weave cloud
2017-07-20 15:31:43 -05:00
abuehrle
bf291b1863
replaced URLs for host network int.
2017-07-20 15:31:42 -05:00
abuehrle
e6a1acddcb
replaced more urls for /site/tasks/manage section
2017-07-20 15:31:42 -05:00
abuehrle
8a8cd70879
replaced urls for tasks/manage section
2017-07-20 15:31:42 -05:00
abuehrle
b744e41e9e
replace URLs for kubernetes section
2017-07-20 15:31:41 -05:00
abuehrle
c101957fb9
replaced URLs for install and docker plugins
2017-07-20 15:31:41 -05:00
abuehrle
a8dc7986af
replaced urls /site/installing-weave.md w /site/install/installing-weave.md
2017-07-20 15:31:41 -05:00
abuehrle
d0c9763d0d
replaced urls /site/how-it-works/ with /site/concepts/
2017-07-20 15:31:41 -05:00
abuehrle
5988fede53
update how it works url
2017-07-20 15:31:40 -05:00
abuehrle
25c8b46c70
replaced url for features
2017-07-20 15:31:40 -05:00
abuehrle
60c3d97c7a
better title for weave cloud and net
2017-07-20 15:31:40 -05:00
abuehrle
ee0bd2d747
make launch 10
2017-07-20 15:31:39 -05:00
abuehrle
c0e94cabb6
put installing first
2017-07-20 15:31:39 -05:00
abuehrle
867e3231d2
remove index from concepts title
2017-07-20 15:31:39 -05:00
abuehrle
00bfa3ae03
order topic
2017-07-20 15:31:39 -05:00
abuehrle
7ae83d6a5b
index file for directory
2017-07-20 15:31:39 -05:00
abuehrle
5d6f6456d3
topic ordering
2017-07-20 15:31:38 -05:00
abuehrle
69b6077221
docker-api mv to tasks
2017-07-20 15:31:38 -05:00
abuehrle
dcf82f8db7
moved screencast image to installing
2017-07-20 15:31:37 -05:00
abuehrle
69f83b352a
moved .dot file need this?
2017-07-20 15:31:37 -05:00
abuehrle
2899789147
index file
2017-07-20 15:31:37 -05:00
abuehrle
d33f06634f
menu topic order
2017-07-20 15:31:37 -05:00
abuehrle
1d3bdd6a34
added diagram to concepts mv weavedns
2017-07-20 15:31:37 -05:00
abuehrle
5a38e04789
ipam topic order
2017-07-20 15:31:36 -05:00
abuehrle
1f1b22cee7
mv ipam tasks mv weavedns tasks mv image tasks/manage
2017-07-20 15:31:36 -05:00
abuehrle
16ce5eacbb
index file for tasks section
2017-07-20 15:31:36 -05:00
abuehrle
69e311d021
menu topic order
2017-07-20 15:31:35 -05:00
abuehrle
ea48915007
index files for tasks and manage directories
2017-07-20 15:31:35 -05:00
abuehrle
165c8c1d0f
added manage sd and mv using-weave to it
2017-07-20 15:31:35 -05:00
abuehrle
b237eaf6bf
content from cni-plugin added
2017-07-20 15:31:35 -05:00
abuehrle
4de70e31c6
ordered menu
2017-07-20 15:31:34 -05:00
abuehrle
dd29302d57
cni-plugin moved to kubernetes file kube-add moved
2017-07-20 15:31:34 -05:00
abuehrle
4f3cf40e30
index files and subdirectory order
2017-07-20 15:31:34 -05:00
abuehrle
9fdb40c9b8
menu items ordered
2017-07-20 15:31:34 -05:00
abuehrle
3af2a070e3
docker plugin subdirectory of install
2017-07-20 15:31:33 -05:00
abuehrle
6e5f0a8eea
ordered menu
2017-07-20 15:31:33 -05:00
abuehrle
d0320dd0c6
renamed installing-weave to install moved cloud and launch to install
2017-07-20 15:31:33 -05:00
abuehrle
5f25bba012
initial index file
2017-07-20 15:31:33 -05:00
abuehrle
42e650bba8
menu order
2017-07-20 15:31:32 -05:00
abuehrle
c6f29d685c
menu order
2017-07-20 15:31:32 -05:00
abuehrle
a45c5e1170
menu order
2017-07-20 15:31:32 -05:00
abuehrle
683b4c7c18
menu reorder
2017-07-20 15:31:32 -05:00
abuehrle
1b5d6033b0
menu order
2017-07-20 15:31:31 -05:00
abuehrle
c209761689
how it works renamed to concepts
2017-07-20 15:31:31 -05:00
abuehrle
59112209d0
renamed introducing moved features to overview
2017-07-20 15:31:31 -05:00
Bryan Boreham
28ea18d3a6
Remove localhost:8080 fallback for Kubernetes api-server
...
It was a hack for a badly-configured Kubernetes install: it shouldn't
be necessary, it will only work on an unsecured install, and it
generates confusing error messages when something is really wrong.
2017-07-19 22:59:34 +00:00
Bryan Boreham
fac669156e
Merge pull request #3046 from weaveworks/update-weave-kube-docs
...
Update weave-kube documentation
2017-07-19 15:40:52 -07:00
Bryan Boreham
102f4ad4a4
Merge pull request #3064 from weaveworks/wip-2621
...
Add comments to iptables rules and ipsets
2017-07-19 13:01:09 -07:00
Mike Bryant
e10ce2345b
Add comments to iptables rules and ipsets
...
Fixes #2621
2017-07-17 11:00:08 +01:00
abuehrle
d06eaf14af
add more urls fix others
2017-07-16 14:14:12 -05:00
abuehrle
21623118d3
Merge branch 'docs-reorg' of https://github.com/weaveworks/weave into docs-reorg
2017-07-16 13:20:38 -05:00
abuehrle
4dfcaa470a
taks toc - full urls added
2017-07-16 12:48:44 -05:00
abuehrle
9cc98b0ee8
install toc added - full urls
2017-07-16 12:48:44 -05:00
abuehrle
acf2b4dc7d
rearrange install and launch
2017-07-16 12:48:43 -05:00
abuehrle
029c6f9caf
add full urls instead
2017-07-16 12:48:43 -05:00
abuehrle
34767f4986
update links in readme anchors
2017-07-16 12:48:43 -05:00
abuehrle
fe852d8519
concepts toc
2017-07-16 12:48:43 -05:00
abuehrle
0eded20bdf
test anchor
2017-07-16 12:48:43 -05:00
abuehrle
9ec9e72ade
test anchor
2017-07-16 12:48:42 -05:00
abuehrle
c9559666ef
remove code format from title
2017-07-16 12:48:42 -05:00
abuehrle
81c0d44c09
fixed url with anchor and broken link
2017-07-16 12:48:42 -05:00
abuehrle
2651fe2ed4
replaced Using Weave Net with Launching Weave Net
2017-07-16 12:48:42 -05:00
abuehrle
e1e40fc68c
replaced getting started guides with tutorials
2017-07-16 12:48:40 -05:00
abuehrle
dff0f08cb5
replaced URLs systemd and installing-weave
2017-07-16 12:48:40 -05:00
abuehrle
5483e81d75
misc link replaced topology still going to router-topology
2017-07-16 12:48:40 -05:00
abuehrle
905d923880
replaced URLs for weave proxy section
2017-07-16 12:48:40 -05:00
abuehrle
c3d96ca448
replaced URLs for weavedns section
2017-07-16 12:48:39 -05:00
abuehrle
7ea8761685
replaced URLs for ipam section
2017-07-16 12:48:39 -05:00
abuehrle
0e6e5e3a4d
replaced URL to weave cloud
2017-07-16 12:48:39 -05:00
abuehrle
afbc7aaa14
replaced URLs for host network int.
2017-07-16 12:48:38 -05:00
abuehrle
8cc3179a36
replaced more urls for /site/tasks/manage section
2017-07-16 12:48:38 -05:00
abuehrle
324d013f88
replaced urls for tasks/manage section
2017-07-16 12:48:38 -05:00
abuehrle
70924f6f3a
replace URLs for kubernetes section
2017-07-16 12:48:37 -05:00
abuehrle
a2602bb712
replaced URLs for install and docker plugins
2017-07-16 12:48:37 -05:00
abuehrle
5fc94ca01d
replaced urls /site/installing-weave.md w /site/install/installing-weave.md
2017-07-16 12:48:37 -05:00
abuehrle
ddf2c99240
replaced urls /site/how-it-works/ with /site/concepts/
2017-07-16 12:48:36 -05:00
abuehrle
f3e83dcdb9
update how it works url
2017-07-16 12:48:36 -05:00
abuehrle
773aeda980
replaced url for features
2017-07-16 12:48:36 -05:00
abuehrle
bea58ef6dc
better title for weave cloud and net
2017-07-16 12:48:36 -05:00
abuehrle
35b4fca59f
make launch 10
2017-07-16 12:48:35 -05:00
abuehrle
afc2f13841
put installing first
2017-07-16 12:48:35 -05:00
abuehrle
4e71e4db86
remove index from concepts title
2017-07-16 12:48:35 -05:00
abuehrle
dd1fc02f9f
order topic
2017-07-16 12:48:35 -05:00
abuehrle
760a76cbd0
index file for directory
2017-07-16 12:48:34 -05:00
abuehrle
a81720d64c
topic ordering
2017-07-16 12:48:34 -05:00
abuehrle
d0ad4ad022
docker-api mv to tasks
2017-07-16 12:48:34 -05:00
abuehrle
2f9f500ecb
moved screencast image to installing
2017-07-16 12:48:34 -05:00
abuehrle
1d09a35bcd
moved .dot file need this?
2017-07-16 12:48:33 -05:00
abuehrle
e8310ab1b7
index file
2017-07-16 12:48:33 -05:00
abuehrle
3b029896c9
menu topic order
2017-07-16 12:48:33 -05:00
abuehrle
61f83cd463
added diagram to concepts mv weavedns
2017-07-16 12:48:33 -05:00
abuehrle
0c36b87bcc
ipam topic order
2017-07-16 12:48:32 -05:00
abuehrle
14e97185b3
mv ipam tasks mv weavedns tasks mv image tasks/manage
2017-07-16 12:48:32 -05:00
abuehrle
fa512ee22a
index file for tasks section
2017-07-16 12:48:32 -05:00
abuehrle
58dc68d112
menu topic order
2017-07-16 12:48:31 -05:00
abuehrle
7e265100c3
index files for tasks and manage directories
2017-07-16 12:48:30 -05:00
abuehrle
9d0a0253c9
added manage sd and mv using-weave to it
2017-07-16 12:48:30 -05:00
abuehrle
e41b5d9a1c
content from cni-plugin added
2017-07-16 12:48:30 -05:00
abuehrle
7af82945d9
ordered menu
2017-07-16 12:48:30 -05:00
abuehrle
6e90c56d03
cni-plugin moved to kubernetes file kube-add moved
2017-07-16 12:48:29 -05:00
abuehrle
887d72e45f
index files and subdirectory order
2017-07-16 12:48:29 -05:00
abuehrle
3086a6821b
menu items ordered
2017-07-16 12:48:29 -05:00
abuehrle
599d5e4863
docker plugin subdirectory of install
2017-07-16 12:48:28 -05:00
abuehrle
d59aab3f71
ordered menu
2017-07-16 12:48:28 -05:00
abuehrle
d356afd6cf
renamed installing-weave to install moved cloud and launch to install
2017-07-16 12:48:28 -05:00
abuehrle
474ff5815b
initial index file
2017-07-16 12:48:27 -05:00
abuehrle
5379826662
menu order
2017-07-16 12:48:27 -05:00
abuehrle
b551c15f5c
menu order
2017-07-16 12:48:27 -05:00
abuehrle
8554f0f896
menu order
2017-07-16 12:48:27 -05:00
abuehrle
b8a5d49100
menu reorder
2017-07-16 12:48:26 -05:00
abuehrle
05ed63aaf4
menu order
2017-07-16 12:48:26 -05:00
abuehrle
f37f8308c8
how it works renamed to concepts
2017-07-16 12:48:26 -05:00
abuehrle
136c4521d4
renamed introducing moved features to overview
2017-07-16 12:48:26 -05:00
abuehrle
7a34d997aa
taks toc - full urls added
2017-07-16 12:41:56 -05:00
abuehrle
6ca9b2c006
install toc added - full urls
2017-07-16 12:40:47 -05:00
abuehrle
fdc01a41de
rearrange install and launch
2017-07-14 16:57:40 -05:00
abuehrle
fb138b54fa
add full urls instead
2017-07-14 16:56:43 -05:00
Bryan Boreham
efde637e1c
Merge pull request #3056 from dlespiau/20170711-weave-instant-help
...
Make help instantaneous in the weave script
2017-07-14 11:54:32 -07:00
Bryan Boreham
448518d500
Merge pull request #3057 from weaveworks/wip-npc-race-test
...
Fix weave-npc race condition
2017-07-14 11:11:06 -07:00
Bryan Boreham
b562cc9b98
Merge pull request #3055 from weaveworks/issues/2603-document-weave-kube-commands
...
Add operations section to weave-kube's docs.
2017-07-14 10:05:34 -07:00
Bryan Boreham
7b6a21f612
Merge pull request #3066 from weaveworks/label-weavedb
...
label weavedb image
2017-07-14 10:01:54 -07:00
Matthias Radestock
cf1a1116f4
label weavedb image
...
Fixes weaveworks/scope#2610
2017-07-14 15:00:46 +01:00
Mike Bryant
cbc3d5b04c
Don't bypass selector provisioning when not default deny
...
If we have namespaces Source and Destination, and Destination
contains a NetworkPolicy allowing access from Source, we need
to provision the ipsets for Source and add them to relevant
selectors, even though Source is DefaultAllow.
This also fixes an issue where if the Namespace labels are updated,
that would be ignored.
Fixes #3059
2017-07-14 14:45:41 +01:00
Mike Bryant
219b03cb6b
Add regression test for weave-npc race condition
2017-07-14 14:45:41 +01:00
Mike Bryant
c33cd2657c
Refactor iptables usage in weave-npc to make it testable
2017-07-14 14:45:41 +01:00
abuehrle
e26b0663e3
update links in readme anchors
2017-07-13 19:53:14 -05:00
abuehrle
7f93c403e9
concepts toc
2017-07-13 18:25:47 -05:00
abuehrle
4a1c2c5d09
test anchor
2017-07-13 17:39:33 -05:00
abuehrle
8e445f349b
test anchor
2017-07-13 17:28:26 -05:00
abuehrle
09984001fc
remove code format from title
2017-07-13 17:04:04 -05:00
abuehrle
f598338a5f
fixed url with anchor and broken link
2017-07-13 16:29:36 -05:00
abuehrle
650adb47fd
replaced Using Weave Net with Launching Weave Net
2017-07-13 16:09:04 -05:00
abuehrle
ad8a943eb2
replaced getting started guides with tutorials
2017-07-13 15:59:40 -05:00
abuehrle
1b7efab40a
replaced URLs systemd and installing-weave
2017-07-13 15:55:10 -05:00
abuehrle
43c608e25c
misc link replaced topology still going to router-topology
2017-07-13 15:43:55 -05:00
abuehrle
6aba9411a6
replaced URLs for weave proxy section
2017-07-13 15:41:04 -05:00
abuehrle
1e70992835
replaced URLs for weavedns section
2017-07-13 15:32:15 -05:00
abuehrle
38a84e95ad
replaced URLs for ipam section
2017-07-13 15:27:23 -05:00
abuehrle
5492d046d1
replaced URL to weave cloud
2017-07-13 15:18:56 -05:00
abuehrle
16dbd5eea0
replaced URLs for host network int.
2017-07-13 15:16:58 -05:00
abuehrle
098a3c59c7
replaced more urls for /site/tasks/manage section
2017-07-13 15:14:47 -05:00
abuehrle
16272f0d75
replaced urls for tasks/manage section
2017-07-13 15:05:23 -05:00
abuehrle
4e41e422c5
replace URLs for kubernetes section
2017-07-13 14:53:18 -05:00
abuehrle
227d45a40c
replaced URLs for install and docker plugins
2017-07-13 14:46:56 -05:00
abuehrle
6bd529ef66
replaced urls /site/installing-weave.md w /site/install/installing-weave.md
2017-07-13 14:35:45 -05:00
abuehrle
61e798d400
replaced urls /site/how-it-works/ with /site/concepts/
2017-07-13 14:31:48 -05:00
abuehrle
d84154326f
update how it works url
2017-07-13 14:12:02 -05:00
abuehrle
cba793524e
replaced url for features
2017-07-13 14:06:34 -05:00
abuehrle
9ec8cb9bf4
better title for weave cloud and net
2017-07-13 12:45:13 -05:00
abuehrle
be52e08f2d
make launch 10
2017-07-13 12:41:38 -05:00
abuehrle
4edff2f17f
put installing first
2017-07-13 12:37:33 -05:00
Marc CARRE
ed70e6e344
Remove URLs section.
...
As discussed internally, this could just create more confusion for the end-user, than bringing benefits for previous users who would potentially wonder why the URLs have changed.
2017-07-13 16:48:33 +01:00
Marc CARRE
920bba2ffd
Fix doc regarding git.io short URLs.
...
GitHub only allows git.io to point to content hosted under github.com, therefore it was not possible to have the short URLs point to Weave Cloud's Launch Generator.
2017-07-13 16:48:33 +01:00
Marc CARRE
2113498348
Replace git.io/weave-kube with cloud.weave.works for manual rollout under Kubernetes <=1.5.
2017-07-13 16:48:33 +01:00
Marc CARRE
8e7e1a3b26
Remove -n kube-system from kubectl apply commands.
2017-07-13 16:48:33 +01:00
Marc CARRE
f638fac152
Add operations section to weave-kube's docs.
2017-07-13 16:48:15 +01:00
Marc CARRE
d2ebaf3ab7
Make Ansible's docker_install_role overridable.
...
Currently:
- there is no easy way to change the way we install Docker from Net
- if build-tools' default was to change, Net could break.
This change addresses this situation.
2017-07-13 16:47:22 +01:00
Marc Carré
90575278b0
Merge pull request #3061 from weaveworks/docker-17.6
...
Fix various CI failures
2017-07-13 16:38:05 +01:00
Bryan Boreham
fdbffce93a
Use modified docker-py to mask change in Docker error message
...
Before this change, when using Docker 17.06 we get:
tests/integration/container_test.py:121: in test_create_with_restart_policy
'You cannot remove a running container', err
E AssertionError: 'You cannot remove a running container' not found in u'You cannot remove a restarting container
The modified image simply checks for "You cannot remove a".
2017-07-13 14:00:23 +00:00
Bryan Boreham
afac7c4d09
Change test 610 to use a Weaveworks container
...
Previously we used 'alpine' which had no 'CMD' line, but that changed
upstream, so generate our own trivial image for this purpose.
2017-07-13 13:41:53 +00:00
Bryan Boreham
3fdca717c1
Upgrade to Docker 17.06, including newer tools submodule
2017-07-12 16:00:26 +00:00
abuehrle
3959149077
remove index from concepts title
2017-07-11 23:40:16 -05:00
abuehrle
f17053fcee
order topic
2017-07-11 20:17:00 -05:00
abuehrle
fcbbf89083
index file for directory
2017-07-11 19:35:57 -05:00
abuehrle
3138602661
topic ordering
2017-07-11 19:35:28 -05:00
abuehrle
562f49b3ad
docker-api mv to tasks
2017-07-11 19:34:58 -05:00
abuehrle
02328ae43f
moved screencast image to installing
2017-07-11 19:14:00 -05:00
abuehrle
e132f6c385
moved .dot file need this?
2017-07-11 19:10:01 -05:00
abuehrle
2b8fb49be2
index file
2017-07-11 19:08:10 -05:00
abuehrle
51601a3258
menu topic order
2017-07-11 19:07:51 -05:00
abuehrle
31267f36ed
added diagram to concepts mv weavedns
2017-07-11 19:07:23 -05:00
abuehrle
540d1cbf06
ipam topic order
2017-07-11 18:51:37 -05:00
abuehrle
050f671c65
mv ipam tasks mv weavedns tasks mv image tasks/manage
2017-07-11 18:50:52 -05:00
abuehrle
35e2179271
index file for tasks section
2017-07-11 18:28:09 -05:00
abuehrle
52d06513bb
menu topic order
2017-07-11 18:27:44 -05:00
abuehrle
124ef94500
index files for tasks and manage directories
2017-07-11 18:27:22 -05:00
abuehrle
166d5bfc5b
added manage sd and mv using-weave to it
2017-07-11 18:26:15 -05:00
abuehrle
efd290a3be
content from cni-plugin added
2017-07-11 17:49:31 -05:00
abuehrle
742ef03495
ordered menu
2017-07-11 17:48:58 -05:00
abuehrle
92a6694ac8
cni-plugin moved to kubernetes file kube-add moved
2017-07-11 17:48:36 -05:00
abuehrle
1354ad1884
index files and subdirectory order
2017-07-11 17:30:26 -05:00
abuehrle
15a4b189f4
menu items ordered
2017-07-11 17:29:24 -05:00
abuehrle
53cf6c2f8c
docker plugin subdirectory of install
2017-07-11 17:28:43 -05:00
abuehrle
64518c3bd4
ordered menu
2017-07-11 17:07:17 -05:00
abuehrle
20711cb8bc
renamed installing-weave to install moved cloud and launch to install
2017-07-11 17:06:47 -05:00
abuehrle
2914b9d220
initial index file
2017-07-11 16:26:41 -05:00
abuehrle
677c872d5a
menu order
2017-07-11 16:25:59 -05:00
abuehrle
015809c83a
menu order
2017-07-11 16:25:42 -05:00
abuehrle
092ec8d83d
menu order
2017-07-11 16:25:14 -05:00
abuehrle
9d2237cfd4
menu reorder
2017-07-11 16:24:49 -05:00
abuehrle
8b615e58e8
menu order
2017-07-11 16:24:16 -05:00
abuehrle
e351d0c3c0
how it works renamed to concepts
2017-07-11 16:23:35 -05:00
abuehrle
a943f66afd
renamed introducing moved features to overview
2017-07-11 15:49:46 -05:00
Damien Lespiau
3df1a0943c
Make help instantaneous in the weave script
...
There are 3 ways to get help:
• weave --help
• weave help
• weave <command> --help
At the moment, only the first one prints the usage instantaneously, the
others go much further in the script and take quite some time, which is
not idea of impatient users.
Note that "help" only works because it's not a recognized command and
ends up in the default case of "case $COMMAND" (and indeed, "Unknown
weave command 'help'" is displayed). This is because handle_help_arg()
always returns true and so the second part of:
handle_help_arg "$1" || handle_help_arg "--$1"
is never evaluated.
This commit changes things a bit so all 3 ways to get help are
recognized early, print the usage and exit.
2017-07-11 16:46:42 +01:00
Marc Carré
b5759c5b6d
Merge pull request #3051 from weaveworks/issues/3049-kube-hostnames
...
Add back HOSTNAME env var for weave-npc container
2017-07-04 14:28:32 +01:00
Bryan Boreham
6b4c6c84b4
Add back HOSTNAME env var for weave-npc container
2017-07-03 16:41:07 +00:00
Marc CARRE
d8222d76d9
Add release v2.0.1
2017-06-29 10:58:27 +01:00
Marc Carré
88a3b41135
Merge pull request #3045 from weaveworks/fix-v2-plugin-release
...
net-plugin release: swap publish and plugin_publish
2017-06-28 17:32:27 +01:00
Marc Carré
fb7aa9298d
Merge pull request #3044 from weaveworks/check-disco-blank-token
...
Don't contact peer discovery back-end unless we have a token
2017-06-28 17:30:03 +01:00
Marc Carré
b79cc948b3
Merge pull request #3043 from weaveworks/issues/fastdp-enosupport-fallback
...
Fix fallback to pcap based bridge when odp is not supported
2017-06-28 17:25:45 +01:00
Marc CARRE
e7092612a9
Swap publish and plugin_publish.
...
Currently our `Makefile` and `bin/release` scripts are such that we effectively do the following when releasing:
```
publish:
for arch in [amd64 arm arm64]:
sub-publish:
clean_bin
publish
plugin_publish
```
which leads the Docker v2 plugin to contain `arm64` binaries even though we target `amd64`.
Swaping `publish` and `plugin_publish` is a simple way to avoid this.
2017-06-28 17:16:53 +01:00
Bryan Boreham
15c512388d
Don't contact peer discovery back-end unless we have a token
2017-06-28 13:34:49 +00:00
Martynas Pumputis
f37377264b
Fix fallback to pcap based bridge when odp is not supported
...
The fix ensures that if odp is not supported (usually due to
missing openvswitch, vxlan or vport-vxlan kernel modules),
weaver will create the pcap based bridge instead of crashing.
2017-06-27 18:38:21 +02:00
Bryan Boreham
bd44b20b4a
Merge pull request #3039 from weaveworks/do-not-merge-args
...
No longer merge proxy and remaining args
2017-06-27 15:17:39 +01:00
Bryan Boreham
e25da3c619
Merge pull request #3042 from weaveworks/latest-yaml-from-launch-generator
...
Update YAMLs to be what the Launch Generator serves.
2017-06-27 14:58:41 +01:00
Bryan Boreham
3499dbfe09
Merge branch '2.0'
2017-06-27 10:48:05 +00:00
Marc CARRE
81c4a0ffce
Temporarily increase tests' timeout.
2017-06-27 10:23:36 +01:00
Marc CARRE
a0064f7535
Update YAMLs to be what the Launch Generator serves.
...
See also:
- https://github.com/weaveworks/launch-generator/issues/133
- https://github.com/weaveworks/launch-generator/pull/134
Command used:
```
$ curl -fsSo prog/weave-kube/weave-daemonset-k8s-1.6.yaml "http://localhost:8080/k8s/v1.6/net?v=latest "
$ curl -fsSo prog/weave-kube/weave-daemonset.yaml "http://localhost:8080/k8s/v1.5/net?v=latest "
```
Annotations then removed.
2017-06-26 17:54:17 +01:00
Marc Carré
79c9eff2b9
Merge pull request #3033 from weaveworks/put-namespace-back-in-yaml
...
Put kube-system namespace back in the weave-kube yaml
2017-06-26 15:09:18 +01:00
Marc CARRE
b8bcf0c87d
No longer merge proxy and remaining args.
...
`proxy_parse_args` is currently called:
- once, all the time
- again, if Docker is configured with TLS.
If a second call to `proxy_parse_args` happens, given the way we append to `PROXY_ARGS` and merge proxy and remaining args, genuine arguments like peers can be mixed with flags/options/etc. hence forming an invalid peers list and crashing Weave Net.
2017-06-26 14:54:04 +01:00
Matthias Radestock
179a560e1d
Merge branch '2.0'
2017-06-25 21:17:41 +01:00
Matthias Radestock
2245bd25e9
Merge pull request #3036 from weaveworks/3035-remove-proxyplugin-remnants
...
remove weave{proxy,plugin} remnants
Fixes #3035 .
2017-06-25 21:09:27 +01:00
Matthias Radestock
c256daceb0
don't panic when TestMain is invoked as a regular test
...
Just no-op instead.
This change is necessary because previously a recent build-tools
change no longer excludes prog/* from unit testing since other
projects actually do have genuine tests under there.
2017-06-25 20:49:19 +01:00
Matthias Radestock
73b29050b9
update tools to weaveplugin-free version
2017-06-25 20:49:19 +01:00
Matthias Radestock
162da63522
remove remnants of the weaveproxy and weaveplugin containers
2017-06-25 18:42:48 +01:00
Bryan Boreham
01194ee267
Use weaveworks nettest image instead of nginx in plugin test
...
so we can ensure it has 'ping' in it
2017-06-25 14:52:27 +00:00
Bryan Boreham
d958cff58e
Put kube-system namespace back in the weave-kube yaml
...
Save people getting in to trouble when they don't know to add `-n kube-system`
2017-06-23 16:07:55 +00:00
Bryan Boreham
d0662b519f
late-breaking additions to 2.0 release
2017-06-23 10:19:33 +00:00
Bryan Boreham
d75a96e9ba
Mention Rolling Update in instructions
2017-06-23 10:19:10 +00:00
Bryan Boreham
bd7ed1b41a
Make formatting more consistent with previous versions
2017-06-23 10:18:39 +00:00
Bryan Boreham
b5e6d235ba
Merge pull request #3019 from unitymind/plugin-v2-ipalloc-range
...
Ability to set IPALLOC_RANGE via plugin-v2 configuration parameters
2017-06-23 10:40:04 +01:00
Bryan Boreham
3cc537b978
Merge pull request #3028 from weaveworks/issues/3025-track-local-pods-separately
...
weave-npc: stop ignoring local pods
2017-06-23 10:39:01 +01:00
Bryan Boreham
ac0c0db942
Merge branch '1.9'
2017-06-23 09:38:46 +00:00
Bryan Boreham
0affbad976
Anchor names must be quoted
2017-06-23 09:08:22 +00:00
Bryan Boreham
ced84955d3
Stop ignoring local pods
...
This behaviour was breaking the use of pod selectors for the 'from'
part of a rule.
Move checking of local pods into namespace.go so we can maintain
LocalIpSet correctly
2017-06-22 14:16:53 +00:00
Bryan Boreham
b86fc67adf
Extend test to include a network policy
2017-06-22 14:16:53 +00:00
Bryan Boreham
59de4c3435
Add curl to test image
2017-06-22 14:16:53 +00:00
Bryan Boreham
8e418b8743
More logging for namespace changes
2017-06-22 13:51:05 +00:00
Bryan Boreham
f2b003379d
Merge pull request #3024 from weaveworks/update-k8s-yaml
...
Update YAMLs to be what the Launch Generator serves.
2017-06-21 15:43:03 +01:00
Marc CARRE
0d083077ab
Update YAMLs to be what the Launch Generator serves.
...
See also:
- weaveworks/launch-generator/pull/130
- weaveworks/launch-generator/pull/125
Command used:
```
$ curl -fsSo prog/weave-kube/weave-daemonset-k8s-1.6.yaml "https://localhost:8080/k8s/v1.6/net?v=latest "
$ curl -fsSo prog/weave-kube/weave-daemonset.yaml "https://localhost:8080/k8s/v1.5/net?v=latest "
```
Annotations then removed.
2017-06-21 14:41:59 +01:00
Marc CARRE
db1a94a02c
Add release v2.0.0
2017-06-20 16:42:04 +01:00
Bryan Boreham
fdbc7dfe04
Merge pull request #3017 from weaveworks/add_weave_cloud_msg
...
Update references to Weave Cloud
2017-06-20 12:18:05 +01:00
Bryan Boreham
70f004cc62
Merge pull request #3018 from Shimi/patch-2
...
modify tolerations to match any taint
2017-06-20 12:02:56 +01:00
Vitaliy V. Shopov
c02cb45c6c
Ability to set IPALLOC_RANGE via plugin-v2 configuration parameters
2017-06-17 10:36:02 +10:00
Bryan Boreham
8dccc88613
Merge pull request #3000 from weaveworks/issues/2990-empty-selinuxoptions-by-default
...
Kubernetes' seLinuxOptions are empty by default
2017-06-16 15:44:44 +01:00
Bryan Boreham
bb5914dbce
Merge branch '1.9'
2017-06-16 14:50:13 +00:00
Bryan Boreham
4698ec1a37
Put the Ruby version back to 2.3.0 until we update Netlify
2017-06-16 14:38:54 +00:00
Bryan Boreham
e29c98faad
Merge pull request #2992 from weaveworks/attach-with-safe-netns
...
Remove unsafe netns change in proxy
2017-06-16 14:36:15 +01:00
Bryan Boreham
444d6be6c9
Document the requirement for 'nsenter'
2017-06-16 13:21:07 +00:00
Bryan Boreham
28aa181480
Move setting up addresses for a container, into weaveutil-invoked function
...
This means we only change netns by execing nsenter: changing netns in
Go is unsafe for long-running processes like the proxy.
2017-06-16 13:19:08 +00:00
Bryan Boreham
97e0fcb765
Refactor: move SetupIface code from weaveutil to net package
2017-06-16 13:19:08 +00:00
Bryan Boreham
052fdb30c0
Merge pull request #3001 from weaveworks/issues/2614-password-via-k8s-secret
...
Document Launch Generator's password-secret query parameter
2017-06-16 10:07:10 +01:00
Marc CARRE
2e2b667864
Document Launch Generator's seLinuxOptions.NAME=VALUE.
2017-06-16 09:06:26 +00:00
Marc CARRE
666631134c
Update YAMLs to be what the Launch Generator serves.
...
See also: weaveworks/launch-generator/pull/117
Command used:
```
$ curl -fsSo prog/weave-kube/weave-daemonset-k8s-1.6.yaml "https://cloud.weave.works/k8s/v1.6/net?v=latest "
$ curl -fsSo prog/weave-kube/weave-daemonset.yaml "https://cloud.weave.works/k8s/v1.5/net?v=latest "
```
Annotations then removed.
2017-06-16 09:06:26 +00:00
Bryan Boreham
de4cfe2b8b
Merge branch '1.9'
2017-06-15 17:28:43 +00:00
Bryan Boreham
a7ebe53cfa
Add release v1.9.8
2017-06-15 17:05:11 +00:00
Shimi Kiviti
66a569fc40
modify tolerations to match any node
...
Currently weave doesn't run on nodes with tolerations except the master
The suggested code change it to run on all nodes
2017-06-15 15:32:50 +03:00
pidster
3a646ffdba
change cloud URL in weave script, again, because typo
2017-06-14 15:45:52 +01:00
pidster
7cfd71c0bd
change cloud URL in weave script
2017-06-14 15:44:53 +01:00
pidster
3265d60d52
Update references to weave cloud
2017-06-14 15:21:25 +01:00
Bryan Boreham
640b417b39
Merge branch '1.9'
2017-06-14 13:57:08 +00:00
Marc Carré
b655a3aede
Merge pull request #3014 from weaveworks/issues/3011-allow-non-pod-source
...
Allow any non-local traffic onto the weave bridge
2017-06-14 14:52:11 +01:00
Bryan Boreham
819b395ae4
Temporarily raise the test timeout
...
Docker 1.11 seems much slower at the pull tests than Docker 1.13
while we investigate that, raise the timeout to allow tests to pass
2017-06-14 13:14:06 +00:00
Bryan Boreham
2584335b11
Allow any non-local traffic onto the weave bridge
...
If it's destined for a pod on another node it will be checked again
when it reaches that other node. The previous version was rejecting
traffic coming in from outside the cluster.
2017-06-12 17:00:57 +00:00
Marc Carré
4e5a8f348a
Merge pull request #3013 from weaveworks/fix-claim
...
Pass check-alive flag on claim for container
2017-06-12 15:31:51 +01:00
Bryan Boreham
f91a9c2562
Fix test: committed image embeds WEAVE_CIDR
...
so we cannot run two of those containers at the same time.
Fixed by stopping the first one before we start the second.
2017-06-12 14:03:53 +00:00
Bryan Boreham
ea098ac53e
Only retain IP addresses for running containers
2017-06-12 14:03:53 +00:00
Bryan Boreham
a0d0b00938
Pass check-alive flag on claim for container
2017-06-12 14:03:53 +00:00
Bryan Boreham
31a4657467
Update COVERAGE sed to latest daemonset which has nonempty env
2017-06-12 13:55:21 +00:00
Bryan Boreham
2ddb8fcec3
Merge branch '1.9'
2017-06-12 09:09:32 +00:00
Bryan Boreham
21d4fff450
Update broken link to Docker docs
2017-06-12 09:42:22 +01:00
Marc CARRE
00036ec277
Merge remote-tracking branch 'origin/1.9'
2017-06-09 08:30:34 +01:00
Marc Carré
a5d7fb66f0
Merge pull request #3010 from weaveworks/issues/3003-anonymous-claim
...
Fix use of '_' as container ID in claim outside range
2017-06-09 08:30:13 +01:00
Bryan Boreham
b01a204c1f
Check who previously owned an address claimed outside the range
2017-06-08 16:25:09 +00:00
Bryan Boreham
e9310eba98
Don't use '_' as container ID in claim outside range
...
And added unit test for various claim-without-ID situations
2017-06-07 16:38:19 +00:00
Bryan Boreham
69285270e5
Bump Ruby version
...
2.3.4 is pre-installed by CircleCI, whereas 2.3.0 isn't
2017-06-07 13:01:15 +00:00
Marc CARRE
6f96d6d63e
Document Launch Generator's password-secret query parameter.
...
See also: weaveworks/launch-generator#118
2017-06-06 10:52:06 +01:00
Marc Carré
91f476d2c6
Merge pull request #2981 from deitch/document-entrypoints
...
First revision of how weave utils get launches
2017-06-05 13:09:56 +01:00
Bryan Boreham
7871a0b7a4
Merge branch 1.9
2017-06-01 15:03:59 +00:00
Bryan Boreham
6bd11a426e
typo
2017-06-01 14:28:10 +00:00
Bryan Boreham
1abdc3afcf
Add release v1.9.7
2017-06-01 13:51:06 +00:00
Bryan Boreham
b8f98a5387
Merge pull request #2996 from Bregor/issues/2995-npc-and-hostname_override
...
Weave-NPC should get hostname from K8s Downward API.
2017-06-01 14:33:22 +01:00
Maxim Filatov
cb3b858df6
Weave-NPC should get hostname from K8s Downward API.
...
It is necessary in case when kubelet's args includes `--hostname_override=`.
Without this change, pods on hostname overriding kubelets will never be local,
and all pod's traffic will be blocked.
2017-05-31 18:06:17 +03:00
Marc Carré
d7025e7dfa
Merge pull request #2873 from weaveworks/gh-issue-template
...
Template for GitHub issues
2017-05-31 15:54:08 +01:00
Bryan Boreham
b2b9c47a50
Simplified
2017-05-31 14:34:41 +00:00
Bryan Boreham
211003f542
Merge branch '1.9'
2017-05-30 16:43:32 +00:00
Bryan Boreham
afb0d5bd3d
Add release v1.9.6
2017-05-30 16:28:11 +00:00
Avi Deitcher
f8227c3f47
First revision of how weave utils get launches
2017-05-30 19:19:38 +03:00
Bryan Boreham
258d764af8
Merge branch '1.9'
2017-05-30 14:31:51 +00:00
Bryan Boreham
2d3e070288
Let through connections from local pods to non-local pods
...
This means we only filter connections at the destination end,
which is a better match for the ingress-only rules.
2017-05-30 14:11:35 +00:00
Bryan Boreham
138141ac9b
Ignore updates for pods on other nodes
2017-05-30 14:11:34 +00:00
Bryan Boreham
fa56ad8bc3
Refactor: move logging of ipset entries down to ipset package
2017-05-30 14:11:33 +00:00
Bryan Boreham
9d29da8d27
Refactor creation of base iptables rules
2017-05-30 14:11:31 +00:00
Bryan Boreham
37526728e0
Merge branch '1.9'
2017-05-30 13:55:49 +00:00
Bryan Boreham
68f2cb9caa
Merge pull request #2993 from weaveworks/hairpin-option-1.9
...
Turn on hairpin mode on veth bridge ports
2017-05-30 14:50:37 +01:00
Avi Deitcher
d13c7ea7ee
Make hairpin mode default true in CNI
2017-05-30 10:30:54 +00:00
Avi Deitcher
4c7c702b6d
Test of hairpin mode in CNI
2017-05-30 10:30:54 +00:00
Avi Deitcher
c05955d598
First cut of adding hairpin functionality to weave
2017-05-30 10:30:49 +00:00
Bryan Boreham
ca64ab54e7
Remove trailing space
2017-05-30 10:30:02 +00:00
Bryan Boreham
7f4ad03a5c
Remove mention of enable-encryption mode - it's too insecure
2017-05-26 16:23:55 +00:00
Marc Carré
d60ad1f40a
Merge pull request #2991 from weaveworks/remove-init-peer-count
...
Remove deprecated --init-peer-count option
2017-05-26 16:39:19 +01:00
Bryan Boreham
5106317e5d
Remove deprecated --init-peer-count option
...
Since this was the last deprecated option, remove all code to generate
deprecation warnings in the weave script.
2017-05-26 15:19:27 +00:00
Bryan Boreham
a5e4a19f06
Merge pull request #2903 from weaveworks/issues/2754-launch-generator-for-net
...
Update weave-kube docs and YAML files to leverage Launch Generator
2017-05-26 15:48:14 +01:00
Marc CARRE
067ce6de9f
Update Weave-Kube daemonset YAML files using Launch Generator.
...
Note that given the YAML's structure is different from previous version, indentation of `COVERAGE_ARGS` had to change (+4 whitespaces to each line).
Commands used:
```
$ curl -fsS https://frontend.dev.weave.works/k8s/v1.5/net?v=latest > prog/weave-kube/weave-daemonset.yaml
$ curl -fsS https://frontend.dev.weave.works/k8s/v1.6/net?v=latest > prog/weave-kube/weave-daemonset-k8s-1.6.yaml
```
Annotations removed from Launch Generator's files:
```
annotations:
cloud.weave.works/launcher-info: |-
{
"server-version": "master-050965d",
"original-request": {
"url": "/k8s/v1.6/net?v=latest",
"date": "Thu May 25 2017 13:16:43 GMT+0000 (UTC)"
},
"email-address": "support@weave.works "
}
```
and
```
annotations:
cloud.weave.works/launcher-info: |-
{
"server-version": "master-050965d",
"original-request": {
"url": "/k8s/v1.5/net?v=latest",
"date": "Thu May 25 2017 13:16:43 GMT+0000 (UTC)"
},
"email-address": "support@weave.works "
}
```
2017-05-26 14:19:26 +01:00
Marc CARRE
9facab53b7
Add Launch Generator to weave-kube docs.
...
Details:
- Update weave-kube docs to avoid explicit versioning by leveraging the Launch Generator.
- Update weave-kube docs to mention YAML customisation via the Launch Generator.
- Warn about potential backward incompatibility of the generated YAML, and how to ensure YAML and Net versions are compatible.
2017-05-26 14:17:41 +01:00
Àbéjídé Àyodélé
e64442f6de
Highlight the forward rules
2017-05-25 13:43:51 +00:00
Marc Carré
4f20f545dc
Merge pull request #2989 from weaveworks/remove-deprecated-options
...
Remove deprecated flag versions
2017-05-23 18:27:12 +01:00
Bryan Boreham
4bbf84f551
Merge branch '1.9'
2017-05-23 17:00:22 +00:00
Bryan Boreham
987a1618e9
Merge pull request #2985 from weaveworks/fix-broken-url-to-ecs-guide
...
Fix broken link to ECS guide
2017-05-23 17:59:49 +01:00
Marc CARRE
0ab95cdd27
Fix broken URL to ECS guide.
2017-05-23 16:58:36 +00:00
Bryan Boreham
c617612794
Remove deprecated flag versions
2017-05-23 16:49:13 +00:00
Marc Carré
0c89bbb8df
Merge pull request #2967 from weaveworks/issues/2610-host-volume
...
Change weavedb from an emptyDir to a hostPath volume
2017-05-23 17:19:04 +01:00
Bryan Boreham
a7206bee95
Merge branch '1.9'
2017-05-23 15:19:18 +00:00
Marc CARRE
0e3a749f69
Merge remote-tracking branch 'origin/remove-wordepress'
2017-05-23 12:04:34 +01:00
Marc Carré
b0d0c3d731
Merge pull request #2986 from weaveworks/remove-wordepress
...
Stop doing Wordpress previews on Pantheon
2017-05-23 12:01:05 +01:00
Bryan Boreham
534dd8e16a
Stop doing Wordpress previews on Pantheon
...
Now we are using Netlify instead
2017-05-23 11:33:57 +01:00
Marc CARRE
535bf9b066
Merge remote-tracking branch 'origin/use-fixed-version-of-shfmt'
2017-05-23 11:31:55 +01:00
Marc Carré
79e703c8ac
Merge pull request #2987 from weaveworks/use-fixed-version-of-shfmt
...
Use shfmt v1.3.0 instead of latest from master
2017-05-23 11:31:03 +01:00
Marc CARRE
d4a98a58f4
Use shfmt v1.3.0 instead of latest from master.
...
Before this change, `go get`-ting` would pick the latest version of `shfmt` which keeps changing, hence frequently breaking our builds.
After this change, we download the `shfmt` binary from its GitHub releases page which is fast and locks the version we use. Note that `RUN` does not like herestrings, hence `echo "..." | sha256sum -c` for checksum.
Alternatives considered:
- `go get gopkg.in/mvdan/sh.v1/cmd/shfmt` -- but `gopkg.in` currently doesn't behave well for this tool
- `go build` from a `git` tag -- but this is much more involved.
2017-05-23 10:59:11 +01:00
Bryan Boreham
ceb7206117
Merge pull request #2988 from mattjtodd/patch-2
...
Fix Network Commands in plugin-v2 doc
2017-05-23 09:23:47 +01:00
Matt Todd
1273157ace
Update plugin-v2.md
...
Fixed network create command statement ordering.
2017-05-22 20:01:52 +01:00
Marc Carré
5a92200dc6
Merge pull request #2964 from weaveworks/issues/plugin-v2-docs
...
Add plugin-v2 (net-plugin) docs
2017-05-22 16:10:48 +01:00
Bryan Boreham
d021e61dfa
Update troubleshooting page to match code
2017-05-22 14:52:29 +01:00
Bryan Boreham
3ae505d6c6
More accessible reference for v2 plugins
2017-05-22 14:52:29 +01:00
Bryan Boreham
a1ddb336c1
Make it clear that only one of the two plugins works without a cluster store
2017-05-22 14:52:29 +01:00
Martynas Pumputis
646ac3c74d
Add plugin-v2 (net-plugin) docs
2017-05-22 14:52:29 +01:00
Bryan Boreham
d383a29e00
Merge pull request #2945 from weaveworks/issues/1642-proxy-merge-docs
...
Update docs following merge of proxy & router
2017-05-22 13:24:48 +01:00
Marc Carré
b44e295562
Merge pull request #2979 from weaveworks/issues/2622-npc-local-node-only
...
weave-npc to check local addresses only
2017-05-19 16:48:30 +01:00
Bryan Boreham
8a1f8d549e
Let through connections from local pods to non-local pods
...
This means we only filter connections at the destination end,
which is a better match for the ingress-only rules.
2017-05-19 15:17:20 +00:00
Bryan Boreham
a2b674e094
Ignore updates for pods on other nodes
2017-05-19 15:17:20 +00:00
Bryan Boreham
c4796dcdf5
Refactor: move logging of ipset entries down to ipset package
2017-05-19 15:17:20 +00:00
Bryan Boreham
992b4a65df
Refactor creation of base iptables rules
2017-05-19 15:17:20 +00:00
Bryan Boreham
6928929bc9
Install rules allowing outward traffic in npc mode
2017-05-19 15:16:02 +00:00
Bryan Boreham
508b424234
Add test for outward traffic from weave-kube
2017-05-19 15:16:02 +00:00
Marc Carré
7f68a96f75
Merge pull request #2918 from weaveworks/network-tester
...
Add a network test that isn't ping
2017-05-19 16:15:17 +01:00
Bryan Boreham
535e22e5f8
Wait for nodes to be ready before starting pods
...
Otherwise we can schedule all pods on the same node, which isn't such a good test
2017-05-19 11:47:57 +00:00
Bryan Boreham
348a926af4
Use network-tester image in Kubernetes test
2017-05-19 11:47:57 +00:00
Bryan Boreham
aa84c4788a
Add a network test that isn't ping
2017-05-19 11:47:57 +00:00
Bryan Boreham
66293e8caa
Factor out 'wait_for_x' loop to reduce duplication
2017-05-19 11:47:57 +00:00
Marc Carré
1e60cff2ef
Merge pull request #2977 from weaveworks/issues/2975-chain-race
...
Don't clear WEAVE-NPC chain in weaver
2017-05-18 11:22:10 +01:00
Bryan Boreham
701519a15c
Merge branch '1.9'
2017-05-18 10:18:39 +00:00
Bryan Boreham
72532324ed
Give up on versioned copy of shfmt; it doesn't build
2017-05-18 10:18:11 +00:00
Bryan Boreham
3cb6569d55
Don't clear WEAVE-NPC chain here; it is controlled by weave-npc.
...
We don't get a very useful error object back from go-iptables and I
didn't feel like parsing the message, so just ignore all errors.
It would be racy to try to check if WEAVE-NPC existed before calling
NewChain.
2017-05-18 09:29:33 +00:00
Bryan Boreham
bebaa48520
Change weavedb from an emptyDir to a hostPath volume
...
EmptyDir has the same lifetime as the pod, whereas we want our
persistence to extend past that, e.g. when Weave Net is upgraded.
`weave reset` cleans out the file.
We assume that /var/lib is writable.
2017-05-17 12:38:24 +00:00
Bryan Boreham
af246225a9
Merge pull request #2974 from weaveworks/issues/net-plugin-makefile
...
Do not remove sigproxy and docker from net-plugin build image
2017-05-17 11:28:07 +01:00
Martynas Pumputis
582a792c71
Merge pull request #2966 from weaveworks/issues/2956-simplify-running
...
Simplify checks for plugin running
Fixes #2956 #2709
2017-05-17 12:56:31 +03:00
Martynas Pumputis
98c4bd9ee5
Do not remove sigproxy and docker from net-plugin build img
...
The #2954 PR has changed the base image of weaveworks/weave which no
longer includes sigproxy and docker client.
2017-05-17 12:45:20 +03:00
Bryan Boreham
933b395de4
Report plugin version status via the Config object
2017-05-17 09:28:34 +00:00
Bryan Boreham
4f485f856b
Factor out Plugin variables into Plugin and plugin.Config structs
2017-05-17 09:27:40 +00:00
Bryan Boreham
280651da9c
Create constant for 'weave' network name and move inside if-statement for weavemesh
2017-05-17 09:27:40 +00:00
Bryan Boreham
77201e949d
Don't check if weave is running in protect_against_docker_hang
...
Since it is only called in contexts where we have already checked that.
We don't need the detail of whether plugin is enabled; if it's not
running then it's ok to remove those socket files.
2017-05-17 09:27:40 +00:00
Bryan Boreham
292a50a891
Don't check if the plugin is enabled before trying to remove the default 'weave network'
...
If the plugin wasn't enabled then that network shouldn't exist.
If the network 'weave' doesn't exist then util_op remove-plugin-network will do nothing.
If it does exist for some reason then docker will pause for a while and remove it anyway.
2017-05-17 09:27:40 +00:00
Bryan Boreham
a36fc867d1
Formatting of status message
2017-05-17 09:27:39 +00:00
Bryan Boreham
def9f2d407
Check if weave is running for any reason before launching
2017-05-17 09:27:39 +00:00
Bryan Boreham
b0da4f6b91
Move proxy and plugin status from shell to Go
...
In the process we stop printing out the `PLUGIN_FULL_NAME`, but that
is assumed to be something the user can figure out from `docker plugin ls`
2017-05-17 09:27:22 +00:00
Marc CARRE
cbf1230f6d
Update docs following merge of proxy & router.
...
Notes:
- Deleted trailing whitespaces on modified files.
- Added documentation for launch --proxy=false.
2017-05-16 08:57:17 +01:00
Marc Carré
71d6e881f2
Merge pull request #2954 from weaveworks/issues/2953-reorg-images
...
Issues/2953 reorg images
2017-05-15 16:25:58 +01:00
Marc Carré
da40771739
Merge pull request #2963 from weaveworks/issues/net-plugin-latest-release-tag
...
Use :latest_release tag for net-plugin
2017-05-15 16:06:12 +01:00
Martynas Pumputis
694314cc00
Use :latest_release tag for net-plugin
...
As for some reasons Docker Store does not allow us to use :latest.
2017-05-15 15:38:21 +01:00
Bryan Boreham
3025738377
Extract pluginNameFromAddress() function
2017-05-15 13:33:17 +00:00
Bryan Boreham
cbe0f4e6e5
Merge branch '1.9'
2017-05-15 12:44:08 +00:00
Marc Carré
68106d804e
Merge pull request #2959 from ocadotechnology/wip-2958
...
fix(npc): create ipsets with only valid xml characters
2017-05-15 13:30:10 +01:00
Marc Carré
e0088e0252
Merge pull request #2960 from weaveworks/remove-proxy-status-sock
...
Remove proxy status.sock
2017-05-15 13:26:25 +01:00
Bryan Boreham
efff6d6e63
Merge pull request #2962 from weaveworks/fix-shfmt-lint-error
...
Fix shfmt lint error by escaping $ in sed expression
2017-05-15 13:21:12 +01:00
Marc CARRE
6bbd8d7a4c
Escape $ in sed expression.
...
This fixes new error raised by latest version of shfmt, leading to build failures.
2017-05-15 12:36:55 +01:00
Bryan Boreham
e0bb49aa23
Don't crash on nil proxy in StatusHTTP
2017-05-15 11:32:20 +00:00
Bryan Boreham
81d79a64e6
Blank proxy_addrs should be a failure
2017-05-15 11:31:14 +00:00
stuart.warren
9cbf0289d8
fix(npc): create ipsets with only valid xml characters
...
Why:
* xml output of ipset is invalid because ipset itself doesn't appear to
escape invalid chars
* fixes #2958
2017-05-15 11:20:04 +01:00
Bryan Boreham
4f08879321
Multiple proxy addresses need to be all on one line
...
For some reason the previous version was de-newlined by the shell and
the new version isn't. Since I can't figure out the exact reason the
shell is now behaving differently (man page says it depends on the
quoting that is in effect) I brute-force it with 'tr'.
2017-05-15 10:17:35 +00:00
Bryan Boreham
6d6394c408
Don't say 'stop-router' in error message
2017-05-15 09:55:46 +00:00
Bryan Boreham
bf3ecaf48a
Remove proxy status.sock
2017-05-13 16:31:16 +01:00
Bryan Boreham
6ba2bf80b8
Remove some duplication between stop and reset
2017-05-13 16:14:02 +01:00
Bryan Boreham
9f4030cdb6
Move AWSVPC/IPAM check to Go code
...
The weave script check was broken in an earlier commit.
The Go error message is less specific because it checks more cases.
2017-05-13 14:34:29 +01:00
Bryan Boreham
cce818995a
Remove unused variable
2017-05-13 14:34:18 +01:00
Bryan Boreham
1e2dc43df6
Don't check docker version when run --local
...
The standard case for --local is when the weave script in the weaveexec container
is run by the weave script, which has just checked the version.
--local is also used from weave-kube where we don't mount the docker socket and
therefore cannot check.
Since --local is undocumented we will not worry about any other cases; the worst
that can happen is a confusing error message.
2017-05-13 13:52:42 +01:00
Bryan Boreham
06caf03d70
Need the workdir for weave container too
2017-05-12 16:51:39 +00:00
Bryan Boreham
7226b26e8e
Reorganise Docker image layers to slim weave-kube
2017-05-12 15:50:57 +00:00
Marc Carré
7c72d69e2f
Merge pull request #2951 from weaveworks/cleanup-args
...
Clean up some argument parsing in weave script
2017-05-12 14:49:43 +01:00
Marc Carré
bc1d6c47ba
Merge pull request #2947 from weaveworks/issues/1940-remove-proxy-attach-dep
...
Attach containers from Proxy using Go code
2017-05-12 14:49:20 +01:00
Bryan Boreham
8ec0e025d3
Don't need to parse --no-restart twice
2017-05-12 13:25:50 +00:00
Bryan Boreham
9f40d913c9
No special parsing needed for plugin argument
2017-05-12 13:24:59 +00:00
Bryan Boreham
3595c71d8b
No special parsing needed for DNS arguments
2017-05-12 13:24:39 +00:00
Bryan Boreham
9740478151
Merge pull request #2950 from weaveworks/issues/better-plugin-v2-detection
...
Better plugin-v2 detection
2017-05-12 13:31:01 +01:00
Bryan Boreham
255d087416
Merge pull request #2949 from ocadotechnology/wip-2915
...
Flush weave ipsets before destroying
2017-05-12 13:15:09 +01:00
Bryan Boreham
442a55d539
Update comment to reflect ubuntu->debian change
2017-05-12 12:12:21 +00:00
Bryan Boreham
01fce0c6b1
Merge branch '1.9'
2017-05-12 12:10:12 +00:00
Martynas Pumputis
0e3ac00ff5
Fix DriverName for plugin-v2
...
Print the full plugin-v2 name which might include a registry name.
Also, do not print error from "proxy_addrs".
2017-05-12 14:22:39 +03:00
Martynas Pumputis
2285942384
Add better detection for plugin-v2 (net-plugin)
...
The problem is that the plugin name is prefixed with a registry name.
So, if the plugin is fetched from Docker Store, its name will be
"store/weaveworks/net-plugin".
The detection function does an exact match on "weaveworks/net-plugin",
so in the Docker Store case, the presence of the plugin cannot be
detected.
2017-05-12 13:56:56 +03:00
Mike Bryant
8668f6bb1e
Flush weave ipsets before destroying
...
ipsets can't be destroyed when there are references to them.
This takes the easy way out and flushes all weave ipsets first.
Fixes #2915
2017-05-12 09:44:26 +01:00
Mike Bryant
95ee99d652
style: singular vs plural
2017-05-12 09:44:18 +01:00
Bryan Boreham
0273491e6e
Pass check-alive flag to IPAM API
2017-05-12 06:56:52 +00:00
Bryan Boreham
b1917d909a
Move proxy attach from shell to Go
...
Note we don't need to propagate shell-script env vars now
2017-05-12 06:56:52 +00:00
Bryan Boreham
edbf85655a
Move rewrite /etc/hosts from shell to Go
2017-05-12 06:56:52 +00:00
Bryan Boreham
be917eb86b
Refactor: introduce runTransientContainer function
...
also specify that it needs no container network
2017-05-12 06:56:52 +00:00
Bryan Boreham
0a2521e7a4
Introduce StubProxy() so weaveutil can call functions on it
...
implies change type of docker client to weavedocker
so we can call things like Info() on it
2017-05-12 06:56:52 +00:00
Bryan Boreham
1b8d115b63
Refactor: make weave API a part of the proxy struct
2017-05-12 06:56:52 +00:00
Marc Carré
70929cec57
Merge pull request #2946 from weaveworks/ready-aim-fire
...
Wait until ready; make test 810 more reliable
2017-05-11 19:14:00 +01:00
Bryan Boreham
30583ec8f2
Merge pull request #2930 from weaveworks/fix-broken-links
...
Fix some broken links in documentation
2017-05-11 16:24:00 +01:00
Bryan Boreham
e370ef7007
Fix 'How Weave Finds Containers' link
2017-05-11 15:06:29 +00:00
Ilya Dmitrichenko
42953faf70
Fix some broken links in documentation
2017-05-11 15:06:20 +00:00
Bryan Boreham
7611cd963c
Don't return OK from status until all parts are ready
2017-05-11 14:02:45 +00:00
Bryan Boreham
3e0eb4ac1e
Move creation of default network from weaver to plugin
...
This way it is more likely that we create it after the plugin is up
and running.
2017-05-11 13:59:29 +00:00
Bryan Boreham
f8d501ae50
Specify fields when creating WeaveStatus object
2017-05-11 13:29:28 +00:00
Bryan Boreham
cb614f01c3
Fix message when IPAM has pending allocations
...
It could be because we are waiting for a peer, or it could be because
a subnet is exhausted and we need some local containers to die.
2017-05-10 15:47:49 +00:00
Marc Carré
9be11d9cf0
Merge pull request #2942 from weaveworks/remove-weave-create-bridge
...
Remote deprecated create-bridge command
2017-05-10 12:28:53 +01:00
Bryan Boreham
8ca83de332
Merge pull request #2936 from weaveworks/issues/1642-merge-proxy
...
Merge proxy and router into one single process.
2017-05-10 11:57:21 +01:00
Bryan Boreham
89d3fedcd4
Qualify some options as applying to the proxy
2017-05-10 10:25:36 +00:00
Bryan Boreham
71ca91db09
Handle --awsvpc implies --no-multicast-route in Go code
2017-05-10 10:25:36 +00:00
Marc CARRE
5cf973f03a
Add --proxy option to enable/disable proxy.
...
Weave Net initially had the ability to start a single component at a time with `launch-proxy` and `launch-router`.
This change enables this again via `--proxy=false` despite the merge of the proxy and the router.
Note that by default:
- `launch` passes `--proxy` which enables the proxy and keeps behaviour consistent with `launch` pre-merge,
- `weaver` defaults `--proxy` to `false` which disables the proxy and keeps behaviour consistent with `weaver` pre-merge (as it was `weaveproxy`'s responsibility).
2017-05-10 10:25:36 +00:00
Marc CARRE
2c7693b2c5
Fix tests following proxy merge.
...
Remove tests of situations that don't exist any more and fix the following tests:
- Fix test 660: pass arguments in correct order.
- Fix test 620: no double launch, weave stop instead of kill -9.
- Now that router and proxy have been merged, we should only call `weave launch` once.
- `sudo kill -9` was introduced because we previously had `docker kill` (see: http://github.com/weaveworks/weave/commit/cb73b738621d57727072ae998cdeaec337f23a1a ), because we had no `weave stop-proxy` yet (see: http://github.com/weaveworks/weave/commit/e31f21a6d224d61de1d8a940ea4b0b45cebc9723 ). Pre-proxy-merge, this should just have been `weave stop-proxy`, and now that router and proxy have been merged, we should just call `weave stop`.
- Fix test 650: no double launch.
- Fix test 630: remove redundant case & assertions.
- Fix test 090: remove irrelevant assertions.
PING
2017-05-10 10:25:36 +00:00
Marc CARRE
43249a8d39
Change all launch-*/stop-* commands to launch/stop.
...
Given `proxy` & `router` processes have been merged, `launch-proxy`,
`launch-router`, `stop-proxy`, `stop-router` do not make sense any more, and
should just be `launch` and `stop` with the appropriate flags.
2017-05-10 10:25:36 +00:00
Marc CARRE
b654ac178c
Merge proxy and router/weaver processes.
...
Note: we no longer need to detect awsvpc when launching.
The "AWS VPC" mode is now set via the `--awsvpc` flag.
Before we had to "detect" it when the proxy was potentially started
later, after the router had started.
We drop WEAVEPROXY_DOCKER_ARGS as obsolete.
2017-05-10 10:25:23 +00:00
Marc CARRE
ccac18b21c
Proxy pre-merge refactoring.
2017-05-10 10:24:19 +00:00
Bryan Boreham
8a5fef98ab
Remote deprecated create-bridge command
2017-05-09 15:10:42 +00:00
Bryan Boreham
c85fff8f23
Fix outdated comment
2017-05-09 14:27:24 +00:00
Bryan Boreham
fc57e72853
Merge pull request #2941 from weaveworks/remove-with-dns-flag
...
Remove deprecated flag --with-dns.
2017-05-09 14:25:05 +01:00
Marc CARRE
ce94e69fd5
Clean-up: remove deprecated flag --with-dns.
2017-05-09 13:56:23 +01:00
Bryan Boreham
6c29a1f648
Merge pull request #2940 from weaveworks/fix_libssl_mismatch
...
Fix build libssl issue: Use cross-compilers from debian rather than ubuntu
2017-05-09 13:37:10 +01:00
Marc CARRE
b46ccc0937
Remove brackets from condition in protect_against_docker_hang.
2017-05-09 11:11:21 +01:00
Marcus Cobden
fa29b18be7
Use cross-compilers from debian rather than ubuntu
2017-05-09 09:32:54 +00:00
Bryan Boreham
e89fc8f66a
Merge pull request #2929 from weaveworks/issues/2906-plugin-v2-docker-sock
...
Work around missing docker.sock in plugin-v2
2017-05-09 10:14:47 +01:00
Bryan Boreham
ad4fe86285
Merge branch '1.9'
2017-05-09 09:05:38 +00:00
Bryan Boreham
40db885b3a
Merge pull request #2935 from ocadotechnology/wip-2934
...
Clean up xt_set_exists components in advance
2017-05-09 10:04:56 +01:00
Bryan Boreham
ae0c16f375
Merge pull request #2884 from weaveworks/issues/2794-kube-evict-docs
...
Add pod resources and eviction to weave-kube doc
2017-05-09 10:02:54 +01:00
Martynas Pumputis
34ec7bd1c9
Do not populate network info map in plugin-v2
...
Avoids unnecessary locking.
2017-05-08 23:47:40 +03:00
Bryan Boreham
909b751d6d
Explain how to see Evicted pods
2017-05-08 13:14:59 +00:00
Mike Bryant
9419ad16bf
Clean up xt_set_exists components in advance
...
If this function dies in the middle, the leftover weave-kube-test set
causes this function and weave-npc to break. In particular
this means we can never restart weave with the launch script.
Here we clean up in advance, in case there's leftovers from a previous run
Fixes #2934
2017-05-08 12:15:23 +01:00
Bryan Boreham
9a90898c7d
Merge branch 1.9
2017-05-05 20:54:46 +01:00
Bryan Boreham
8e80cd1441
Patch wordepress on all kinds of build
2017-05-05 20:53:18 +01:00
Bryan Boreham
2c12c4f67e
Merge pull request #2928 from weaveworks/issues/2921-ignore-enoent-on-iface-del
...
Ignore errors on network interface delete during CNI Delete
2017-05-05 20:45:38 +01:00
Martynas Pumputis
d5d45de5a4
Get rid of ipam modes in plugin-v2
...
plugin-v2 is not going to be used with Docker IPAM in most cases,
so there is no need to complicate the code with ipam mode selection.
2017-05-05 17:25:17 +00:00
Martynas Pumputis
2ebd358aeb
Workaround missing docker.sock in plugin-v2
...
"docker.sock" is used to access Docker API which is required to:
1. subscribe to Docker events to configure-arp,
2. query Docker network info to detect whether multicast should be
enabled.
3. get list of Swarm peers before starting the plugin.
(1) is currently not implemented.
(2) is replaced by WEAVE_MULTICAST env var which
can enable multicast for all Weave networks created by
the plugin (not ideal, but better than nothing).
(3) is fixed by not removing "restart.sentinel".
2017-05-05 17:25:17 +00:00
Marc CARRE
be11db45d8
Ignore error when deleting a container's interface.
...
Fixes #2921 , as all errors are now ignored, including `ENOENT`.
This command typically attempts to delete the network interface `eth0` of a container being destroyed by Kubernetes.
If this interface has already been destroyed or is missing for whatever reason, we still want to remove this container's entry from IPAM in order to free associated resources.
2017-05-05 17:24:08 +00:00
Marc CARRE
30213bd71e
Comply to CNI 0.5 spec by always returning nil on DEL.
...
See also:
"Plugins should generally complete a DEL action without error even if some resources are missing."
in:
https://github.com/containernetworking/cni/blob/v0.5.0/SPEC.md
2017-05-05 17:24:08 +00:00
Bryan Boreham
bb66b6161a
Merge branch '1.9'
2017-05-05 17:23:01 +00:00
Bryan Boreham
b14501f358
Merge pull request #2931 from weaveworks/patch-wordepress
...
Use a version of wordepress that handles 'search-type' attribute
2017-05-05 18:21:42 +01:00
Bryan Boreham
e93a145bab
Build a version of wordepress that handles 'search-type' attribute
2017-05-05 16:58:33 +00:00
Bryan Boreham
f7130b8c21
Merge pull request #2932 from weaveworks/issues/fix-protect-against-docker-hang
...
Fix protect_against_docker_hang
2017-05-05 17:31:20 +01:00
Martynas Pumputis
a497e1ab8a
Fix protect_against_docker_hang
...
Check not only for plugin-v2 but also for plugin-v1, as both
create the same plugin sockets (weave.sock and weavemesh.sock).
2017-05-05 17:14:50 +01:00
Ilya Dmitrichenko
8b245a442c
Add website preview
2017-05-05 15:23:08 +01:00
Marc CARRE
e1ff2197c0
Fix conflict accidentally missed when merging 1.9.
2017-05-04 12:20:26 +01:00
Bryan Boreham
f684ea563d
Merge branch '1.9'
2017-05-04 11:13:46 +00:00
Bryan Boreham
041b6fe251
Add release v1.9.5
2017-05-04 08:49:15 +00:00
Bryan Boreham
88cb871654
Merge pull request #2922 from weaveworks/coc
...
Add code-of-conduct.md pointing to CNCF CoC
2017-05-04 09:38:56 +01:00
Marc CARRE
507e734d1a
Merge remote-tracking branch 'origin/1.9'
...
- PR #2926 - Branch issues/2808-improve-hairpin-messages - Fixes #2808 .
- PR #2907 - Branch issues/2771-checkpoint-net-modes - Fixes #2771 .
2017-05-03 20:28:31 +01:00
Marc Carré
d128488339
Merge pull request #2926 from weaveworks/issues/2808-improve-hairpin-messages
...
Fixes #2808 . Improve hairpin log messages.
2017-05-03 20:21:20 +01:00
Marc Carré
c8c61adca4
Merge pull request #2907 from weaveworks/issues/2771-checkpoint-net-modes
...
Add checkpoint flag per connection type
2017-05-03 18:20:30 +01:00
Bryan Boreham
7c8f33f525
Add checkpoint flag per connection type
2017-05-03 16:56:49 +00:00
Bryan Boreham
cb8599ebd5
One more doc to update
2017-05-03 16:36:43 +00:00
Bryan Boreham
7714952574
Merge branch '1.9'
2017-05-03 16:35:42 +00:00
Bryan Boreham
15bf6eab1e
Merge pull request #2925 from weaveworks/doc-search-tag
...
added search tag type
2017-05-03 17:35:00 +01:00
abuehrle
10333b0f3e
added search tag type
2017-05-03 16:33:40 +00:00
Ilya Dmitrichenko
aaa974353a
Use absolute path for links to other pages
2017-05-03 16:47:37 +01:00
Ilya Dmitrichenko
52a5ca8f88
Fix broken link in docs
2017-05-03 16:43:57 +01:00
Ilya Dmitrichenko
1cca9d6d79
Fix broken link in docs
2017-05-03 16:41:26 +01:00
Bryan Boreham
b19f2df6f8
Improve hairpin log messages
2017-05-03 14:35:20 +00:00
Bryan Boreham
b3ac56e3d2
Update mesh library and check for errors newly returned
2017-05-03 11:08:28 +00:00
Marc CARRE
d28b1dcd9f
Add template for GitHub issues.
2017-05-02 18:21:20 +01:00
Marc Carré
e4cab53a11
Merge pull request #2920 from weaveworks/issues/2919-move-plugin-network-create
...
Move plugin network creation from shell script to Go
2017-05-02 17:26:50 +01:00
Marc Carré
c342bc4188
Merge pull request #2923 from weaveworks/kubernetes-1.6.2
...
Bump Kubernetes to 1.6.2 for smoke-tests
2017-05-02 15:54:30 +01:00
Bryan Boreham
73a0df56b2
Bump Kubernetes to 1.6.2
2017-05-02 12:49:21 +01:00
Marc CARRE
e0303a0dda
Merge remote-tracking branch 'origin/1.9'
2017-05-02 11:53:53 +01:00
Marc Carré
cc77ad2c65
Merge pull request #2912 from weaveworks/issues/2904-filter-ipv6-kube-peers
...
Filter out IPv6 addresses from kube-peers
2017-05-02 11:45:31 +01:00
Bryan Boreham
280a0fed69
Add code-of-conduct.md pointing to CNCF CoC
2017-05-02 08:55:32 +00:00
Bryan Boreham
24c2743a58
Check addresses are IPv4 in kube-peers
2017-04-28 11:05:38 +00:00
Bryan Boreham
264a2cd2ad
Remove plugin socket from mounted host directory
2017-04-27 22:17:37 +00:00
Bryan Boreham
907ba8f53b
Quote arg in test function
2017-04-27 21:56:04 +00:00
Bryan Boreham
d2cbb2749e
Move plugin network creation from shell script to Go
...
In the process, use the default subnet instead of the whole IP
allocation range.
2017-04-27 17:07:59 +00:00
Bryan Boreham
eab5ec206a
Merge branch '1.9'
2017-04-27 14:29:29 +00:00
Bryan Boreham
b49f5bdb99
Merge pull request #2916 from ocadotechnology/allow-for-externalip
...
fix(kube-peers): Add support for ExternalIP addresses
2017-04-27 15:29:02 +01:00
Marc CARRE
28a1578d20
Please ./tools/lint -nocomment -notestpackage.
...
Fixes:
- `test/run-integration-tests.sh:160:75: arithmetic expressions must consist of names and numbers`
- `test/run-integration-tests.sh:265:56: arithmetic expressions must consist of names and numbers`
- `test/run-integration-tests.sh:295:61: arithmetic expressions must consist of names and numbers`
- `test/run-integration-tests.sh:309:49: arithmetic expressions must consist of names and numbers`
- `test/run-integration-tests.sh:316:41: arithmetic expressions must consist of names and numbers`
- `test/run-integration-tests.sh: run shfmt -i 4 -w test/run-integration-tests.sh`
See also: https://circleci.com/gh/weaveworks/weave/8685
2017-04-27 14:06:42 +00:00
Mike Bryant
e78be1fc35
fix(kube-peers): Add support for ExternalIP addresses
...
Why:
* In some environments Nodes have an ExternalIP but no InternalIP
This change addresses the need by:
* Falling back to ExternalIP addresses if there isn't an InternalIP for a node
2017-04-27 13:56:23 +01:00
Ilya Dmitrichenko
fa8753cab3
Merge pull request #2899 from weaveworks/netlify
...
Add website preview via Netlify
2017-04-27 12:52:51 +01:00
Ilya Dmitrichenko
9459d4b739
Add website preview
2017-04-27 12:14:50 +01:00
Bryan Boreham
f517a09f0f
Create WEAVE-NPC chain in the correct table
2017-04-26 17:04:36 +00:00
Bryan Boreham
34642a04a4
Merge pull request #2914 from weaveworks/upgrade-go-1.8.1
...
Upgrade Go version to 1.8.1.
2017-04-26 15:51:18 +01:00
Marc CARRE
4bb4d943ba
Please ./tools/lint -nocomment -notestpackage.
...
Fixes:
- `test/run-integration-tests.sh:160:75: arithmetic expressions must consist of names and numbers`
- `test/run-integration-tests.sh:265:56: arithmetic expressions must consist of names and numbers`
- `test/run-integration-tests.sh:295:61: arithmetic expressions must consist of names and numbers`
- `test/run-integration-tests.sh:309:49: arithmetic expressions must consist of names and numbers`
- `test/run-integration-tests.sh:316:41: arithmetic expressions must consist of names and numbers`
- `test/run-integration-tests.sh: run shfmt -i 4 -w test/run-integration-tests.sh`
See also: https://circleci.com/gh/weaveworks/weave/8685
2017-04-26 14:51:53 +01:00
Marc CARRE
db855715ab
Upgrade Ansible's default Go version to 1.8.1.
2017-04-26 14:51:49 +01:00
Marc CARRE
c27e4d020d
Upgrade Go version to 1.8.1.
2017-04-26 12:21:50 +01:00
Bryan Boreham
109e249aa6
Review feedback
2017-04-25 14:08:25 +00:00
Bryan Boreham
a16ad4d6e6
Merge pull request #2913 from weaveworks/remove-old-logic
...
Remove obsolete validation and warning
2017-04-25 14:22:26 +01:00
Marc CARRE
33ce8c5060
Remove obsolete validation and warning.
...
This logic was added for backward compatibility and to warn users about changes made ~2 years ago.
Given we are planning a 2.0 release for Weave Net, such logic is now irrelevant and can be removed.
2017-04-25 13:59:05 +01:00
Marc Carré
f2568627af
Merge pull request #2910 from weaveworks/rename-router-bridge
...
Rename router.Bridge to router.InjectorConsumer
2017-04-25 13:48:15 +01:00
Bryan Boreham
334974472d
Rename router.Bridge to router.InjectorConsumer
...
since what it does it injects and consumes packets, and something else
entirely does bridging.
2017-04-25 11:03:32 +01:00
Marc Carré
8227a3f67c
Merge pull request #1958 from weaveworks/issues/1940-remove-proxy-attachrouter-dep
...
Use netlink instead of shelling out to `weave attach-router`
2017-04-25 10:37:52 +01:00
Bryan Boreham
4f7d476907
Only do set-up on bridge/datapath devices once at creation time
...
This is a change to the previous behaviour, but makes the code easier
to read and seems more sensible.
2017-04-24 16:48:19 +00:00
Bryan Boreham
a731d47d97
Rename bridge detection/creation functions
2017-04-24 16:42:05 +00:00
Bryan Boreham
44beed4027
Refactor decision logic for initial bridge type
2017-04-24 16:26:16 +00:00
Bryan Boreham
9fd1a43769
Put back some weave bridge options
...
ability to set MTU was lost in an earlier change
2017-04-24 14:55:53 +00:00
Bryan Boreham
1c6abbbe41
Merge pull request #2909 from weaveworks/remove-deprecated-dns-cmds
...
Remove deprecation warnings for `launch-dns` and `stop-dns` commands
2017-04-24 11:34:23 +01:00
Marc CARRE
c4a715747a
Remove deprecation warnings for DNS commands removed 2 years ago.
2017-04-24 11:01:43 +01:00
Bryan Boreham
3bdea732fc
Remove documentation of separate args to plugin
...
since it has been merged into the `weaver` process
2017-04-24 10:00:32 +00:00
Marc Carré
bfe8e79653
Merge pull request #2905 from weaveworks/remove-docker-from-plugin
...
Remove some things we don't want in the v2 plugin image
2017-04-21 11:12:28 +01:00
Marc Carré
7d812e3087
Merge pull request #2901 from weaveworks/remove-deprecated-options
...
Remove deprecation warnings for things removed a long time ago
2017-04-21 11:12:07 +01:00
Bryan Boreham
05d9cf8235
Remove some things we don't want in the v2 plugin image
2017-04-20 16:43:42 +00:00
Bryan Boreham
108f4784a6
Add back check for datapath supported
2017-04-20 16:12:42 +00:00
Bryan Boreham
a7feb41e62
Replace switch statements with Bridge polymorphism
2017-04-20 15:57:49 +00:00
Bryan Boreham
fddb3ee06e
Review feedback
2017-04-20 15:57:49 +00:00
Bryan Boreham
c59c86c660
Only publish "latest" tag on v2 plugin if explicitly told to
...
For V2 plugin, "latest" means "latest stable release", to make
instructions simple for end-users. So we don't want to overwrite
"latest" with a random build by accident.
2017-04-20 10:43:16 +00:00
Bryan Boreham
8f02c81f16
Update docs for change where proxy no longer calls attach-router
2017-04-18 10:45:05 +00:00
Bryan Boreham
b3fac8ed6a
Remove deprecation warnings for things removed a long time ago
2017-04-17 19:48:21 +00:00
Bryan Boreham
3574da267b
Remove -enforce_docker_bridge_addr_assign_type no longer used
2017-04-17 19:41:47 +00:00
Bryan Boreham
c929b2d5f9
ip netns and nsenter no longer called by weave script
2017-04-17 19:41:47 +00:00
Bryan Boreham
f479e57870
Remove attach-router since it no longer does anything
2017-04-17 19:41:47 +00:00
Bryan Boreham
ae625a18c8
Move awsvpc bridge expose from weave script to Go code
2017-04-17 19:41:47 +00:00
Bryan Boreham
41a261bdcd
Add conversion from CIDR to IPNet
2017-04-17 19:41:47 +00:00
Bryan Boreham
4ad1c22ef6
Move initial DNS population into Go code
2017-04-17 19:41:47 +00:00
Bryan Boreham
ef9f95f653
Let weaver create the bridge in weave-kube
2017-04-17 19:41:47 +00:00
Bryan Boreham
3b54372eab
Let weaver create the bridge in net-plugin launch
2017-04-17 19:41:47 +00:00
Bryan Boreham
f05bb6c4e0
Don't assume we always run in in host pid space
...
Pass the path to the proc filesystem down
2017-04-17 19:41:47 +00:00
Bryan Boreham
c8e0c12d34
Move AWSVPC sysctls into Go code
2017-04-17 19:41:47 +00:00
Bryan Boreham
ab380ed2c1
Set weave bridge address and mtu
...
including the dance with the dummy interface to get MTU set high
2017-04-17 19:41:47 +00:00
Bryan Boreham
9494f0655d
More meaningful errors
2017-04-17 19:41:47 +00:00
Bryan Boreham
c3a41286fd
Use the bridge name passed in on the command-line more
2017-04-17 19:41:47 +00:00
Bryan Boreham
8297652204
Read our peerName from persistence file if necessary
...
Mount directories for machine ID files into weave container
2017-04-17 19:41:47 +00:00
Bryan Boreham
a26fc67ded
New way of initializing; remove --iface option
2017-04-17 19:41:47 +00:00
Bryan Boreham
abadbf883a
AWSVPC mode now part of BridgeConfig
2017-04-17 19:41:47 +00:00
Bryan Boreham
833eb6166f
Add AWSVPC bridge type
2017-04-17 19:41:47 +00:00
Bryan Boreham
e7e3608642
Move creation of bridge inside router
2017-04-17 19:41:47 +00:00
Bryan Boreham
dd232775e6
Move expect-npc setup from weave script to Go code
2017-04-17 19:41:47 +00:00
Bryan Boreham
a8eb7966b6
Wire up enforce_docker_bridge_addr_assign_type
2017-04-17 19:41:47 +00:00
Bryan Boreham
8051f51d46
Move bridge-creation code from weave script into Go code
...
via weaveutil create-bridge function
2017-04-17 19:41:47 +00:00
Bryan Boreham
6fd9f471ff
Bridge setup iptables rules
2017-04-17 19:41:47 +00:00
Bryan Boreham
2d037d874c
MTU selection closer to weave script
...
Note that if initFastdp sets the MTU for the datapath then the same
value is used for the bridge also.
2017-04-17 19:41:47 +00:00
Bryan Boreham
8e5384ee01
Create pcap veth for no-fastdp operation
2017-04-17 19:41:47 +00:00
Adam Harrison
7dd37d2a13
Add functions to create bridge
2017-04-17 19:41:47 +00:00
Adam Harrison
36521b04a2
Utility function to enforce docker bridge addr_assign_type
2017-04-17 19:41:47 +00:00
Bryan Boreham
f5d0a277fb
Move canonicalisation and checking of DNS entries into nameserver
2017-04-17 19:41:47 +00:00
Bryan Boreham
986a3f8079
Pass bridge name into awsvpc
2017-04-17 19:41:47 +00:00
Bryan Boreham
de4ec23809
Remove unused check_docker_server_api_version()
...
The last code that called it was removed in 1f42a9d2f9
2017-04-17 19:29:28 +00:00
Marc Carré
1cc0794e75
Merge pull request #2897 from weaveworks/stop-old-plugin
...
More help for upgraders who use plugin commands
2017-04-13 17:47:22 +01:00
Marc Carré
3cca0887c7
Merge pull request #2898 from weaveworks/weaveutil-allids-without-all
...
Only list active containers in weaveutil/addrs.go#containerAddrs
2017-04-13 13:12:41 +01:00
Marc Carré
0e1d39120e
Merge pull request #2895 from bjhaid/patch-1
...
Highlight the forward rules
2017-04-13 13:05:28 +01:00
Bryan Boreham
a072cf2e0a
Merge pull request #2894 from weaveworks/fix-typo-plugin
...
Fix typo: 'JSON encode payload' -> 'JSON encoded'.
2017-04-13 12:28:07 +01:00
Marc CARRE
0f0f3649a4
Fix typo: 'JSON encode payload' -> 'JSON encoded'.
2017-04-13 12:26:50 +01:00
Bryan Boreham
54c95c04af
Stop trying to publish the old plugin container
2017-04-13 11:13:24 +00:00
Marc CARRE
7c5dda353d
Only list active containers.
...
Previously was using `docker.ListContainersOptions{All: true}`, which is the equivalent of `docker ps -a`, and is not what we want here.
2017-04-13 12:12:49 +01:00
Bryan Boreham
c42400de4f
Remove warning about create-bridge not working with fastdp
...
This hasn't been true for a long time.
2017-04-13 10:15:08 +00:00
Bryan Boreham
9b5cef9167
Stop and reset old weaveplugin container
...
in case user has upgraded from <v2.0 and left it running
2017-04-13 09:14:04 +00:00
Bryan Boreham
6081c400fb
Print special 'removed' message on launch-plugin and stop-plugin
2017-04-13 09:13:50 +00:00
Bryan Boreham
cb339523de
Remove mentions of deleted commands
2017-04-13 09:03:26 +00:00
Àbéjídé Àyodélé
538902b207
Highlight the forward rules
2017-04-12 10:37:25 -05:00
Marc Carré
8961041469
Merge pull request #2727 from weaveworks/issues/2397-v2-plugin
...
Create a V2 Docker plugin
2017-04-12 14:27:34 +01:00
Martynas Pumputis
cfe26ae346
Add an ugly way to match whether network is ours to plugin
...
Docker Plugin V2 does not expose a plugin name to the plugin, so we
check for "net-plugin" within driver name of a network to detect
whether network is ours.
2017-04-12 13:05:40 +00:00
Martynas Pumputis
bdfa06dbe9
Use $(SUDO) for each docker cmd when building net-plugin
2017-04-12 13:05:40 +00:00
Martynas Pumputis
1a3537a8f4
Replace noDNS by dns in plugin
...
Just to avoid double negation.
2017-04-12 13:05:40 +00:00
Martynas Pumputis
09606db9c3
Exit when launching plugin-v2 if node is not active in Swarm
...
We retrieve the list of swarm masters for peer discovery when launching
plugin-v2, thus the node should belong to any Swarm when enabling the
plugin.
2017-04-12 13:05:40 +00:00
Martynas Pumputis
4a708c2a82
Rename prog/plugin-v2 to prog/net-plugin
...
Consensus was to call the plugin-v2 as weaveworks/net-plugin.
2017-04-12 13:05:40 +00:00
Martynas Pumputis
735a7f9154
Use correct path to netns of container in plugin-v2
...
Used when configuring ARP settings of a container upon ContainerStarted
event.
2017-04-12 13:05:40 +00:00
Martynas Pumputis
7478e78ab7
Add NSPathByPidWithRoot
...
The function is used in a case when /proc is bind mounted to
other than /proc dir.
2017-04-12 13:05:40 +00:00
Martynas Pumputis
01bfa602ad
Pass noDNS and isPluginV2 flags to plugin
...
- "noDNS" controls whether upon ContainerStarted event a container
should be registered within the Weave DNS.
- "isPluginV2" will be used to determine a path to host's /proc.
2017-04-12 13:05:40 +00:00
Martynas Pumputis
332762201a
Reuse docker client instance in plugin
...
Instead of creating a new one, reuse one created in weaver.
The change removes the pinning of client API versions (1.21 in our
case).
2017-04-12 13:05:40 +00:00
Martynas Pumputis
568290afb7
Do not start local scope plugin (mesh) in plugin-v2
...
Currently, plugin-v2 works only in "swarm" scope, as it depends
on swarm for peer discovery.
2017-04-12 13:05:40 +00:00
Martynas Pumputis
3c11c8aa38
Add comment about failures to is-docker-plugin-enabled cmd
2017-04-12 13:05:40 +00:00
Martynas Pumputis
2ba360f33a
Better plugin detection functions in weave script
...
Renamed to "is_plugin_v1_enabled" and "is_plugin_v2_enabled".
Improve weave status and weave launch* err message when plugin-v2 is running
```
$ weave launch
Docker plugin "weaveworks/net-plugin" is running; Aborting.
$ weave status
<..>
Service: plugin (v2)
DriverName: weaveworks/net-plugin
```
2017-04-12 13:05:40 +00:00
Martynas Pumputis
7fc56e54b3
Add plugin_publish target to Makefile
...
"docker plugin" does not support tagging plugin images, therefore
we need to build plugin images two times - one for :latest and
for :$(WEAVE_VERSION).
Pushing of :latest happens only if $UPDATE_LATEST is not false.
2017-04-12 13:05:40 +00:00
Martynas Pumputis
16062ea62d
Rename weaveworks/pluginv2 to weaveworks/net-plugin
2017-04-12 13:05:40 +00:00
Martynas Pumputis
e852ae99ca
Report correct plugin driver name in "weave status"
2017-04-12 13:05:40 +00:00
Martynas Pumputis
0ff37d3492
Do "docker plugin inspect" inside weaveutil
...
We cannot do it from weaveexec, because the latter is distributed
with an old version of Docker client which does not support
Plugins API.
2017-04-12 13:05:40 +00:00
Martynas Pumputis
b3866ebd94
Update vendor/github.com/docker/docker to v1.13.1
2017-04-12 13:05:40 +00:00
Marc CARRE
3031372442
weave --local launch* with V2 plugin on exits with error.
...
For example:
```
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
$ docker plugin ls
ID NAME DESCRIPTION ENABLED
e80beb4367a6 weaveworks/pluginv2:latest Weave Net plugin for Docker true
$ weave --local launch
weaveworks/pluginv2 is already running.
$ weave --local launch-proxy
weaveworks/pluginv2 is already running.
$ weave --local launch-router
weaveworks/pluginv2 is already running.
$ weave --local launch-plugin
```
2017-04-12 13:05:40 +00:00
Martynas Pumputis
d3d2de5f1f
Make NetworkAllocate to return original options
...
NetworkAllocate is called on Swarm master node which creates a network.
The return option map is used to describe the network, and is passed
to CreateNetwork which is called on all nodes when a service is
created.
Returning nil instead the actual options made Docker to omit
the "works.weave.multicast" flag, thus no multicast could be used
in Swarm.
2017-04-12 13:05:40 +00:00
Martynas Pumputis
d7306c66f7
Get rid of deprecated --no-multicast-route
2017-04-12 13:05:40 +00:00
Martynas Pumputis
1f42a9d2f9
Merge plugin into weaver
...
This simplifies the following:
- plugin-v2 does not need to start "plugin" as a separate process, thus
Docker is able to properly restart plugin-v2 in a case of any child
process failing.
- No need for weaveplugin container.
plugin is enabled by default when running "weave launch". when starting
only the router, you should pass "--plugin" parameter to enable it.
The env var WEAVE_NO_PLUGIN is no more.
2017-04-12 13:05:40 +00:00
Marc CARRE
8c917eeb17
weave --local status now reports plugin.
...
Prints the following when running:
```
Service: plugin
DriverName: weave
```
See also:
- https://weaveworks.slack.com/archives/net/p1488563299009870
- https://weaveworks.slack.com/archives/net/p1488539841009756
2017-04-12 13:05:39 +00:00
Marc CARRE
a81a873703
Upgrade docker-py to 1.9.0-rc2 to fix test #602 .
...
Since 1.12.0, `docker inspect -f "{{ .NetworkSettings.Networks.<network>.Aliases }}"` also returns the container's short ID.
See also: https://github.com/docker/docker/blob/master/CHANGELOG.md
> 1.12.0 (2016-07-28)
> Networking
> Add container's short-id as default network alias #21901
Upgrading `docker/docker-py` to 1.9.0-rc2 effectively relaxes test assertions for:
- `tests/integration/network_test.py#test_connect_with_aliases`
- `tests/integration/network_test.py#test_create_with_aliases`
which do something equivalent to:
```
$ docker network create net1
$ docker run --name c1 -d busybox top
$ docker network connect --alias foo --alias bar net1 c1
$ docker inspect -f "{{ .NetworkSettings.Networks.net1.Aliases }}" c1
[foo bar e52bf50e5ee7]
```
allowing us to be consistent with the above change.
In 1.8.1, the below fails as the container's short ID would be present:
```
self.assertEqual(
container_data['NetworkSettings']['Networks'][net_name]['Aliases'],
['foo', 'bar'])
```
In 1.9.0-rc2, the below passes as the container's short ID is ignored:
```
aliases = (
container_data['NetworkSettings']['Networks'][net_name]['Aliases']
)
assert 'foo' in aliases
assert 'bar' in aliases
```
2017-04-12 13:05:39 +00:00
Martynas Pumputis
da04d97fb5
Add smoke test for plugin-v2
2017-04-12 13:05:39 +00:00
Martynas Pumputis
4f42029228
Enable WEAVE_{MTU,PASSWORD} env vars, persistence and ARP settings in plugin-v2
...
The vars can be customized before enabling the plugin with e.g.:
docker plugin set $PLUGIN_NAME set WEAVE_MTU=8160
The ARP settings apply to "weave" bridge. In order to manipulate them,
we bind mount the host's /proc to /host/proc.
(The mount type of /proc changed to bind, Otherwise (when type =
"proc"), the kernel does not propagate pids of host processes as the
plugin runs in a separate PID ns.)
Persistence relies on weave.db which is stored under
/var/lib/weave/weave.db on the host.
NOTE: we do not persist peer list for plugin-v2, as it gets
restored from existing alive master nodes during the peer discovery.
2017-04-12 13:05:39 +00:00
Martynas Pumputis
4916badcc4
Move prog/v2-plugin to prog/plugin-v2
2017-04-12 13:05:39 +00:00
Martynas Pumputis
82b56848a9
Add peer discovery for Docker Swarm
...
The peer discovery relies on "GET /info" API call which returns
list of master nodes. The peer list is passed to weaver when
launching it.
If node is a master, then we pass "--ipalloc-alloc
consensus=$(MASTER_NODES_COUNT)" to weaver. Otherwise, we pass
"--ipalloc-alloc observer".
2017-04-12 13:05:39 +00:00
Martynas Pumputis
889dc856af
Update fsouza/go-dockerclient
...
The updated dep requires adding the following new deps:
- vendor/github.com/fsouza/go-dockerclient
- vendor/golang.org/x/net
2017-04-12 13:05:39 +00:00
Martynas Pumputis
2ba8764615
Do not run "docker kill" inside smoke tests, because Docker 1.13.1
...
Otherwise test suites hang if run with Docker 1.13.1.
See: https://github.com/docker/docker/issues/31447
2017-04-12 13:05:39 +00:00
Martynas Pumputis
eb5435d275
Bump Docker CI version to 1.13.1
2017-04-12 13:05:39 +00:00
Marc CARRE
b048b6deb0
Bind-mount /proc in V2 plugin container.
...
This allows to pass ARP settings from the host, e.g.:
```
$ sudo docker-runc exec 512af90f342f16dddebc7b7245985d5eb67557e76798b4033eed2ff7adaa4eb5 cat /proc/sys/net/ipv4/neigh/weave/ucast_solicit
3
$ cat /proc/sys/net/ipv4/neigh/weave/ucast_solicit
3
$ cat /proc/sys/net/ipv4/neigh/weave/ucast_solicit
1
$ sudo docker-runc exec 512af90f342f16dddebc7b7245985d5eb67557e76798b4033eed2ff7adaa4eb5 cat /proc/sys/net/ipv4/neigh/weave/ucast_solicit
1
```
2017-04-12 13:05:39 +00:00
Bryan Boreham
0c23e47124
Allow docker API location to be specified or blanked
2017-04-12 13:05:39 +00:00
Bryan Boreham
0af2111535
Mention swarm mode in docs
2017-04-12 13:05:39 +00:00
Bryan Boreham
5bbd886e6f
Build a 'v2' Docker plugin
...
Redirect output to specific log files, because there doesn't seem to
be a 'docker logs' for plugins
2017-04-12 13:05:39 +00:00
Marc Carré
402fe094f4
Merge pull request #2893 from weaveworks/ipam-ops-reentrant. Fixes #2892 .
...
IPAM: Make sure we have a ring before calling tryOps()
2017-04-12 13:25:32 +01:00
Marc CARRE
b753bcd982
Merge remote-tracking branch 'origin/ipam-ops-reentrant'
2017-04-12 13:19:52 +01:00
Marc Carré
d6a5eaec3f
Merge pull request #2885 from weaveworks/issues/2353-remove-weave-run
...
Remove 'weave run', 'start' and 'restart'
2017-04-12 12:40:29 +01:00
Bryan Boreham
771f57029e
Document flags to 'weave attach'
2017-04-12 12:15:42 +01:00
Bryan Boreham
c223ff1c7d
Support --without-dns in 'weave attach'
2017-04-12 12:15:42 +01:00
Bryan Boreham
481214776b
Update docs for removal of 'weave run'
2017-04-12 12:15:42 +01:00
Bryan Boreham
98e6571059
Remove 'weave run', 'start' and 'restart'
...
Replace with informative message.
Also fix up tests which were calling these commands.
2017-04-12 12:15:37 +01:00
Marc Carré
19a31a5b82
Merge pull request #2814 from weaveworks/weaveutil-allids
...
Fetch list of container IDs inside weaveutil
2017-04-12 11:35:37 +01:00
Bryan Boreham
090878c157
Implement GetCapabilities on IPAM interface to eliminate warning message
2017-04-12 10:19:06 +00:00
Martynas Pumputis
53cc270f47
Make compatible with Docker Swarmkit
...
Implement (empty) endpoints for new NetworkAllocate and NetworkFree calls
Also update libnetwork and docker dependencies
2017-04-12 10:19:06 +00:00
Martynas Pumputis
ceb0186f46
Better error reporing for weaveutil
...
If a weaveutil subcmd is not found, report the fact to stderr.
2017-04-12 09:48:03 +00:00
Bryan Boreham
46762a40b0
Use 'allids' feature to populate DNS names
2017-04-12 09:36:21 +00:00
Bryan Boreham
c291324d14
Refactor: don't have three global variables called COMMAND
2017-04-12 09:36:21 +00:00
Bryan Boreham
b307b9872a
Fetch list of container IDs inside weaveutil, for 'weave ps'
2017-04-12 09:36:21 +00:00
Bryan Boreham
5e290aa11f
Don't halt kubernetes test script if 'weave expose' fails
...
it's better to carry on so k8s gets cleaned down
2017-04-11 16:31:52 +00:00
Bryan Boreham
5f6c5f6692
Ensure boltDB pathname is constructed uniformly
...
Keep the concatenation of the prefix and filename inside the boltdb
package, so we can't get it wrong outside.
2017-04-11 15:45:04 +00:00
Bryan Boreham
1c1b3248c0
Make sure we have a ring before calling tryOps()
...
because otherwise the pending ops can be modified from inside Try()
2017-04-11 15:36:53 +00:00
Marc Carré
bc47866880
Merge pull request #2827 from weaveworks/issues/2799-peer-disco
...
Peer Discovery via cloud service
2017-04-11 14:59:28 +01:00
Bryan Boreham
60c5e11871
Add pod resources and eviction to weave-kube doc
2017-04-11 12:29:27 +00:00
Bryan Boreham
e6a692424b
Add screen grab for Weave Cloud token
2017-04-11 12:22:59 +00:00
Bryan Boreham
f293063538
Fix print of error
2017-04-10 16:44:10 +00:00
Bryan Boreham
6321512ddb
Use peer count sent back by service
2017-04-10 16:42:47 +00:00
Bryan Boreham
0ca125ff2c
Extract 'HasMode' as method on ipamConfig
2017-04-10 16:42:28 +00:00
Bryan Boreham
57efe0145b
Remove TODO comment - if it's a transient error then enough restarts will get past it
2017-04-10 15:53:23 +00:00
Bryan Boreham
bd53462ab2
Rename 'weavenet' to 'net' in URLs, for simplicity
2017-04-10 15:45:49 +00:00
Bryan Boreham
c44d98b798
Add basic docs for peer discovery
2017-04-10 14:36:26 +00:00
Bryan Boreham
c8adcb2e79
Wire peer discovery delete into reset and rmpeer
2017-04-10 14:09:06 +00:00
Bryan Boreham
768f89c3de
Move peer http handlers from ipam to weaver
2017-04-10 14:09:06 +00:00
Bryan Boreham
e2d644b86b
Peer Discovery via a web service
2017-04-10 14:09:06 +00:00
Bryan Boreham
09977a2e04
Updated weaveworks/common, plus dependencies
...
Needed for peer discovery client calls
2017-04-10 14:01:59 +00:00
Bryan Boreham
63a0b964ab
Merge branch '1.9'
2017-04-10 12:45:03 +00:00
Ilya Dmitrichenko
5cae747b36
Consisten spacing in Markdown headings
...
Jekyll doesn't tolerate this, and it's generally cosidered a cleaner
style, we've had a bit of mixed style and this makes it consistent.
2017-04-10 12:44:38 +00:00
Marc Carré
1b7c386351
Merge pull request #2889 from weaveworks/consistent-spacing-in-markdown-headings
...
Consisten spacing in Markdown headings
2017-04-10 13:35:37 +01:00
Bryan Boreham
ef0dae4ed3
Simple example is only on two hosts
2017-04-10 11:37:06 +00:00
Ilya Dmitrichenko
293f1990bc
Consisten spacing in Markdown headings
...
Jekyll doesn't tolerate this, and it's generally cosidered a cleaner
style, we've had a bit of mixed style and this makes it consistent.
2017-04-10 12:19:29 +01:00
Bryan Boreham
0bb62ae75a
Merge branch '1.9'
2017-04-10 10:47:42 +00:00
Bryan Boreham
2686be1b93
Update mention of Docker 1.6 to 1.10
2017-04-10 10:45:42 +00:00
Marc Carré
77b193791a
Merge pull request #2853 from weaveworks/kube-smoketest-1.6
...
Update smoke tests for kubernetes 1.6
2017-04-10 11:21:23 +01:00
Bryan Boreham
74a7bef472
Use 'kubeadm reset' instead of replicating it
2017-04-10 09:02:45 +00:00
Bryan Boreham
fc78bf4d11
Update test script to work with kubeadm 1.6
2017-04-10 09:02:45 +00:00
Bryan Boreham
84cdf54079
Build VMs with Kubernetes 1.6.1 and CNI 0.5.1
2017-04-10 09:02:45 +00:00
Marc CARRE
fa08bb9df6
Merge remote-tracking branch 'origin/1.9'
2017-04-07 15:11:38 +01:00
Marc Carré
b845360091
Merge pull request #2887 from weaveworks/issues/add-gcloud-to-circle-path
...
Fix gcloud dependency for CI builds
2017-04-07 15:01:20 +01:00
Martynas Pumputis
953d451105
Check for gcloud in verify_dependencies
...
In CI builds, we rely on gcloud installed by Circle CI. Any change to
Circle $PATH or the installation might break CI builds in non-obvious
way.
2017-04-07 14:44:31 +01:00
Martynas Pumputis
75d80c4828
Add /opt/google-cloud-sk/bin to PATH of circle.yml
...
Otherwise, "gcloud" cannot be found.
2017-04-07 14:43:35 +01:00
Marc CARRE
3e030f7971
Merge branch '1.9'
2017-04-06 14:50:21 +01:00
Bryan Boreham
877658d22e
Merge pull request #2886 from weaveworks/lock-kubeadm-version
...
Lock kubeadm's Kubernetes version
2017-04-06 14:37:58 +01:00
Marc CARRE
1c797ca901
Upgrade to latest version of build-tools.
...
This brings a fix to the Ansible playbook which enables locking of `kubeadm`'s Kubernetes version.
2017-04-06 13:49:51 +01:00
Marc CARRE
520a72c8e6
Lock kubeadm's Kubernetes version.
...
Without this commit, `kubeadm` typically upgrades whichever version of Kubernetes is installed, sometimes leading to conflicts in between components' version.
This fixes the issue behind #2876 and should avoid build failures like [weave/8373](https://circleci.com/gh/weaveworks/weave/8373 ).
2017-04-06 13:49:48 +01:00
Marc CARRE
98fec7e5aa
Revert "Disable temporary 840 smoke tests"
...
This reverts commit b687484dda .
2017-04-06 10:43:56 +01:00
Bryan Boreham
d0e0df9bd4
Merge pull request #1350 from weaveworks/ipam-json
...
Add GET /ip handler to return all IPAM mappings.
2017-04-06 10:09:01 +01:00
Bryan Boreham
f5bdf916f5
Merge branch '1.9'
2017-04-05 16:31:47 +00:00
Bryan Boreham
038aac41fd
Fix weave-kube doc table of contents
2017-04-05 13:56:17 +00:00
Martynas Pumputis
ea36d232ac
Merge branch '1.9'
2017-04-04 15:46:09 +01:00
Martynas Pumputis
c54fe016b1
Merge pull request #2880 from weaveworks/upgrade-build-tools
...
Upgrade to latest build-tools.
2017-04-04 15:44:05 +01:00
Marc CARRE
9c9b46479d
Upgrade to latest build-tools.
...
Adds better support for CentOS, for Kubernetes 1.6 (default: 1.6.1), and makes Docker installation role configurable, among others.
2017-04-04 15:13:41 +01:00
Bryan Boreham
916ff7aa39
Merge branch '1.9'
2017-03-31 17:53:04 +00:00
Bryan Boreham
28c290074b
Merge pull request #2876 from weaveworks/issues/disable-840
...
Disable temporary the 840 weave kube smoke test
2017-03-31 18:55:59 +02:00
Martynas Pumputis
b687484dda
Disable temporary 840 smoke tests
...
To trigger doc publishing
2017-03-30 17:45:20 +01:00
Martynas Pumputis
e74783b987
Revert disabling of 840 smoke test
2017-03-30 17:40:25 +01:00
Martynas Pumputis
0b4c19a369
Add 840_weave_kube_3_disabled.sh to .lintignore
2017-03-30 16:07:36 +01:00
Martynas Pumputis
def9d8d004
Disable temporarily 840 smoke test to publish docs
...
840 is broken because of kubeadm failing with 1.6 k8s.
2017-03-30 15:36:38 +01:00
Bryan Boreham
fd731beb87
Merge pull request #2871 from weaveworks/weave-kube-formatting
...
Fix formatting of code snippets in site/kube-addon.md.
2017-03-29 11:53:07 +01:00
Marc CARRE
35cc653737
Add links to URLs and relevant resources.
2017-03-29 11:28:49 +01:00
Marc CARRE
1254d680ed
Fix formatting of env. vars. in site/kube-addon.md.
2017-03-29 11:28:42 +01:00
Marc CARRE
23c0b6a04b
Fix formatting of kubectl apply snippets in site/kube-addon.md.
2017-03-29 11:28:36 +01:00
Martynas Pumputis
ede1ec970c
Merge pull request #2861 from weaveworks/weave-kube-1.6-docs
...
Update weave-kube docs for k8s 1.6
2017-03-29 10:36:49 +01:00
Martynas Pumputis
2301e8dbf7
Merge remote-tracking branch 'origin/1.9'
2017-03-29 10:33:07 +01:00
Bryan Boreham
fbab5a7280
Review feedback
2017-03-29 08:37:28 +00:00
Bryan Boreham
ac430e4c42
Merge branch '1.9'
2017-03-21 15:53:29 +00:00
Bryan Boreham
a92cfc1ffe
Added instructions for Kubernetes 1.6 changes
2017-03-21 15:28:41 +00:00
Bryan Boreham
178cf85183
Add release 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
c6457981ab
Merge branch '1.9'
2017-03-21 14:14:01 +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
8862d4f76e
Merge pull request #2860 from mgalgs/patch-2
...
README: Drop Slack Status badge
2017-03-21 09:58:45 +00:00
Ilya Dmitrichenko
d313ec935c
Merge pull request #2859 from mgalgs/patch-1
...
README: Fix formatting of "Further Information" header
2017-03-21 08:55:13 +00:00
Mitchel Humpherys
40e759733d
README: Drop Slack Status badge
...
The Slack Status badge doesn't work, at least for
non-signed-in users. This gives a bad impression
as to the quality of the project.
2017-03-20 17:37:44 -07:00
Mitchel Humpherys
dee57aca37
README: Fix formatting of "Further Information" header
2017-03-20 17:35:32 -07:00
Bryan Boreham
7ac2301247
Merge branch '1.9'
2017-03-20 12:13: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
1d55ee19e4
Merge branch '1.9'
2017-03-17 11:46:32 +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
9810a84475
Merge branch '1.9'
2017-03-16 19:43:50 +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
Martynas Pumputis
b128562b41
Merge pull request #2838 from weaveworks/tweak-privileged
...
Remove some unnecessary --privileged flags
2017-03-15 10:30:35 +00:00
Bryan Boreham
8f44dc0986
Remove hard-coded number of hosts
2017-03-14 18:10:24 +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
ca523fa335
Don't need --privileged when writing /etc/hosts
2017-03-10 11:55:22 +00:00
Bryan Boreham
5860332e49
Don't repeat '--privileged --net=host' docker options
2017-03-10 11:55:22 +00:00
Tom Wilkie
c06d4d1b00
Add GET /ip handler to return all IPAM mappings.
2017-03-10 11:39:47 +00:00
Bryan Boreham
bec2470ddf
Merge branch '1.9'
2017-03-09 16:02:07 +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
Bryan Boreham
9516b1a91b
Merge pull request #2833 from weaveworks/you-say-tomato
...
Change what we print in place of the password
2017-03-09 10:45:06 +00:00
Bryan Boreham
8468183738
'redacted' is a better word than 'elided'
2017-03-09 10:44:48 +00:00
Bryan Boreham
39563fc142
Merge pull request #2829 from dlmiddlecote/issues/2815-check-live-containers
...
Only check running containers for existing addresses
2017-03-09 09:53:03 +00:00
Daniel Middlecote
104d2240ec
Move container lists to scope they are used in
2017-03-08 21:43:21 +00:00
Marc CARRE
9bec84da5b
Merge branch '1.9'
2017-03-07 16:40:46 +00:00
Marc CARRE
85fa976a25
Add release v1.9.3
2017-03-07 14:38:42 +00:00
Marc Carré
e3a37c8d71
Document required GitHub OAuth scope.
2017-03-07 13:47:11 +00:00
Daniel Middlecote
fd28740108
Only check running containers for existing addresses
2017-03-06 22:10:45 +00:00
Bryan Boreham
fa74d1b9bb
Merge two ADD commands to remove a layer
2017-03-06 11:29:09 +00:00
Bryan Boreham
11d120bb5b
Debug log any error returned by exec-ing weave
2017-03-06 11:29:09 +00:00
Bryan Boreham
e2c96cfa85
Remove/move down WORKDIR lines in Dockerfiles
...
They seem to stop Docker using its build cache.
Removing the line entirely stops weaveproxy from working, as it
assumes it can exec `./weave` from the current directory.
2017-03-06 11:29:09 +00:00
Bryan Boreham
eee3e8d331
touch exes after running build command
...
The executables have dependencies that are not apparent to `go build`;
notably the build container. If Go doesn't see anything is out of date
then it will do nothing, hence touch the file so next time we run
`make` it is up to date.
2017-03-06 11:29:09 +00:00
Bryan Boreham
0c68ad4acb
Merge branch '1.9'
2017-03-06 11:26:00 +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
Mike Bryant
26b566b541
Use a keyserver port that's better for firewalls
2017-03-02 15:49:22 +00:00
Martynas Pumputis
16bbee2831
Merge branch '1.9'
2017-03-01 15:08:52 +00:00
Martynas Pumputis
125f3cf6f6
Add release v1.9.2
2017-03-01 14:11:20 +00:00
Bryan Boreham
96f7c6ebab
Merge branch '1.9'
2017-03-01 11:33:25 +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
5b06063442
Add fastdp-crypto benchmarking instructions
2017-03-01 09:57:00 +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
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
Marc CARRE
3ce8aec039
Removed unecessary trailing whitespaces.
...
Noise on git diff if/when text editors remove them automatically, so might as well proactively remove them.
2017-02-13 19:54:38 +00:00
Martynas Pumputis
32d44e09a1
Merge pull request #2787 from weaveworks/issues/2784-preclaim-addresses
...
Claim existing IP addresses at startup with no race condition
Fixes #2784
2017-02-13 17:51:38 +00:00
Bryan Boreham
4e37f5ec42
Add explanations of various claim and allocation fields
2017-02-13 17:31:02 +00:00
Bryan Boreham
39f471e9d3
Merge pull request #2773 from weaveworks/issues/2772-check-type-on-delete
...
Handle cache.DeleteFinalStateUnknown
2017-02-13 15:49:24 +00:00
Bryan Boreham
293abd953e
Fix flaky test 320
...
The intention, per the comments, is that host1 should claim from host2.
But host2 and host3 can carve up the space either way round. If host1
claims from host3 then there is a race whether anyone finds out about
it.
Adding a 'prime' on host2 ensures the space is all owned by host2 at that point.
2017-02-13 11:30:34 +00:00
Bryan Boreham
fde7dcdde9
Stop collecting addresses in weave script now we do it in Go
2017-02-13 11:30:34 +00:00
Bryan Boreham
7075b5d9fd
Extend pre-existing address reclaim to docker containers
2017-02-13 11:30:34 +00:00
Bryan Boreham
50b1aa0c74
Merge pull request #2785 from weaveworks/typo-app-isolation-doc
...
Fix typo in CIDR.
2017-02-13 11:15:17 +00:00
Martynas Pumputis
7f48cc9239
Replace 110_encryption_2_test.sh by 110_sleeve_encryption_2_test.sh
2017-02-10 17:30:30 +00:00
Martynas Pumputis
8211afe5d5
Improve 111_fastdp_encryption_2_test.sh
2017-02-10 17:20:24 +00:00
Bryan Boreham
e26dbf11e9
Stop collecting addresses in launch script now we do it in Go
2017-02-10 15:11:14 +00:00
Bryan Boreham
39ac1a0037
Collect existing weave addresses at start-up, to avoid a race when
...
doing it from the script
Note we need to run weaver in the host pid namespace, so it can search
for existing container IPs. Also now we are firing off sub-processes
it's better to not be PID 1 so Linux doesn't expect us to reap zombies.
2017-02-10 15:10:02 +00:00
Martynas Pumputis
86f716c38c
Add fastdp-crypto docs
2017-02-10 14:49:47 +00:00
Marc CARRE
d5c7c4476b
Fix typo in CIDR.
2017-02-09 20:58:06 +00:00
Martynas Pumputis
2a02883f07
Update vishvananda/netlink
2017-02-09 15:56:02 +00:00
Martynas Pumputis
f592e4b70a
Merge pull request #2780 from weaveworks/tf-ansi-macos
...
Upgrade to latest build-tools.
2017-02-09 14:58:43 +00:00
Marc CARRE
968855e0a4
Upgrade to latest build-tools.
...
Make tools/provisioning/setup.sh behave consistently regardless of whether under Linux or macOS, and whether sourced or executed.
2017-02-09 14:35:54 +00:00
Jiyuan Tang
bee031ad70
Add CONN_LIMIT environment for running container
2017-02-09 19:34:16 +08:00
Martynas Pumputis
3378e09b6a
Merge pull request #2775 from weaveworks/num-hosts-via-env-var
...
Remove hard-coded NUM_HOSTS env. var.
2017-02-08 18:17:35 +00:00
Marc CARRE
ab37b4a6c4
Remove hard-coded NUM_HOSTS env. var.
...
Instead of hardcoding this in the code, this should be passed by CircleCI from Settings > weaveworks > weave > Environment Variables.
2017-02-08 17:56:48 +00:00
Martynas Pumputis
dff5b6d3f1
Merge pull request #2694 from weaveworks/2647-testing-mvp
...
Testing MVP
Fixes #2647
2017-02-08 16:25:56 +00:00
Marc CARRE
c026579cec
Update make lint to cope with latest changes made in build-tools.
2017-02-08 14:15:59 +00:00
Marc CARRE
ef8b576742
Default behaviour now is to create a GCP image if missing.
...
We previously had 'use image' as a default, but not 'create image', which is inconsistent and leads to unexpected failures.
2017-02-08 14:15:59 +00:00
Marc CARRE
69398a9d7e
Source config.sh using relative path to the script, regardless of current directory.
...
Sourcing failed when running make integration-tests.
2017-02-08 14:15:59 +00:00
Marc CARRE
0a2beedad3
Add flag to skip destruction of test VMS.
...
This should be useful when we just want to type one make integration-tests / ./run-integration-tests command to make/start VMs/configure them/test, but also investigate potential failures afterwards.
2017-02-08 14:15:59 +00:00
Marc CARRE
29d50bbf09
Globally redirect stdout to stderr, except when echo'ing "export HOSTS=...".
...
This should make development easier by allowing developers to set HOSTS in their calling shell, and re-use the value for this env. var. when calling individual test scripts, e.g.:
```
cd test
eval $(./run-integration-tests.sh setup)
./200_dns_test.sh
```
2017-02-08 14:15:59 +00:00
Marc CARRE
673fc73cd5
Increase number of test machines for CircleCI to 16.
...
This should speed the build up, and provide faster feedback to developers.
2017-02-08 14:15:59 +00:00
Marc CARRE
1185bed370
Changed default number of test machines to 3.
...
CircleCI keeps 10 nodes in order to speed up the build, but the default is 3, as this is the minimum required to run any test. This should make more sense as a default for a developer to quickly start an environment and iterate.
2017-02-08 14:15:59 +00:00
Marc CARRE
1176d44044
Run git submodule update --init as the very first step in CircleCI.
...
Doing so in circle-dependencies-post arrives too late for background provisioning.
2017-02-08 14:15:59 +00:00
Marc CARRE
77649ab81b
Relax .lintignore in order for lint to cover newly added scripts.
2017-02-08 14:15:59 +00:00
Marc CARRE
a51bc6164c
Signal provisioning failures to fail the build fast.
...
There may be situations when Terraform/Ansible/etc. fail to provision test machines.
In these cases, we want to fail fast instead of waiting until we time out in circle-test-pre and circle-test-smoke.
2017-02-08 14:15:59 +00:00
Marc CARRE
dd935b7e9e
Provision and destroy test VMs in the background.
...
This should help speed-up the build by provisioning test VMs while we run unit tests, and destroying them while we generate coverage reports.
2017-02-08 14:15:59 +00:00
Marc CARRE
67dbdd377c
Configure Vagrant VMs using Ansible.
...
This way, Vagrant VMs and cloud-provided VMs are configured in the exact same way, hence avoiding configuration drift and subtle bugs associated to different versions of software.
2017-02-08 14:15:59 +00:00
Marc CARRE
e5185e73ce
Refactor Vagrant configuration.
2017-02-08 14:15:59 +00:00
Marc CARRE
17ada094f8
Updated and improved testing documentation.
2017-02-08 14:15:59 +00:00
Marc CARRE
3e5593dc4f
Add GCP image creation and usage.
...
Provisioning and configuration being expensive time-wise, we create Google Cloud Platform images for each Docker/Kubernetes/Kubernetes CNI versions triple, and configure these once (instead of for each build), and then re-use these in subsequent builds, effectively implementing a 'cache' of images.
2017-02-08 14:15:59 +00:00
Marc CARRE
e647fe6331
Highlight setup and sanity checks in CircleCI's logs.
2017-02-08 14:15:59 +00:00
Marc CARRE
a2679794b3
Install Terraform and Ansible in CircleCI's containers.
...
Terraform and Ansible are now required to run the smoke tests.
2017-02-08 14:15:59 +00:00
Marc CARRE
30f59953d2
Smoke tests are now run using Terraform, Ansible and run-integration-tests.sh.
2017-02-08 14:15:59 +00:00
Marc CARRE
acd16881d9
Add make integration-tests based on Terraform/Ansible.
2017-02-08 14:15:59 +00:00
Marc CARRE
2aaa400d62
Add Terraform and Ansible scripts as part of tools submodule.
2017-02-08 14:15:55 +00:00
Marc CARRE
487ebfb514
Increased timeout for test #840 .
...
Reason: test is periodically failing because of the timeout being too aggressive, especially when using Google Cloud Platform together with Terraform and Ansible.
2017-02-08 14:15:02 +00:00
Marc CARRE
fde7e88e66
Allow RUNNER_ARGS to be passed by calling script.
...
This is required in order to be able to dependency-inject values from layers higher up, e.g.: RUNNER_ARGS="-parallel" from the Makefile.
2017-02-08 14:15:02 +00:00
Marc CARRE
9e4ce8c052
Git-ignore Terraform state files.
2017-02-08 14:15:02 +00:00
Adam Harrison
defa5cc3d3
Handle cache.DeleteFinalStateUnknown
2017-02-08 12:48:32 +00:00
Martynas Pumputis
dea2755161
Merge pull request #2764 from weaveworks/ports-faq
...
Expand FAQ info about port usage
2017-02-07 14:23:15 +00:00
Bryan Boreham
cc8785fdcf
Expand info about port usage
2017-02-07 14:06:24 +00:00
Bryan Boreham
7265c6ea03
Move sed of daemonset up next to weave script
...
For consistency, also for easier unpicking if the 'draft' stage fails
2017-02-03 12:18:48 +00:00
Bryan Boreham
0792f0717d
Revert "Temporarily release weave-daemonset.yaml to weave-kube repo"
...
This reverts commit 23056cbb45 .
Explanation: weave-kube has been moved into the weave repo
2017-02-02 11:56:54 +00:00
Bryan Boreham
851b58cca8
Add release v1.9.0
2017-02-02 11:01:34 +00:00
Bryan Boreham
cb48ebc399
Bump alpine version to 3.5 for arm64
...
Since 3.4 doesn't exist, and the package repo seems ok for ulogd now
2017-02-02 10:43:29 +00:00
Martynas Pumputis
5278eb7ebc
Merge pull request #2747 from weaveworks/issues/2689-npc-mcast-simple
...
Add rule to allow multicast at top level
2017-02-01 18:20:38 +00:00
Bryan Boreham
418c256689
Allow traffic to forward off the weave bridge
2017-02-01 15:01:18 +00:00
Bryan Boreham
4eeb846507
Add tests for connectivity to the world
2017-02-01 15:01:18 +00:00
Bryan Boreham
7529f5f9af
Raise ping timeout to reduce false negatives
2017-02-01 15:01:18 +00:00
Michal Rostecki
8506e57482
Pin alpine container version
...
Alpine 3.5 doesn't provide PCAP plugin with ulogd, so until
we investigate the problem upstream, we need to pin to 3.4
version.
Fixes #2732
2017-02-01 12:05:31 +00:00
Adam Harrison
b1d09305e4
Merge pull request #2687 from weaveworks/issues/1644-fastdp-crypto
...
Fastdp crypto
2017-02-01 10:28:24 +00:00
Martynas Pumputis
07892bff7d
Reduce the default MTU
2017-01-31 17:21:01 +00:00
Martynas Pumputis
50985dee90
Enable ESN in fastdp-crypto
2017-01-31 17:21:01 +00:00
Martynas Pumputis
60323d0960
Add fastdp crypto
2017-01-31 17:21:01 +00:00
Bryan Boreham
a9cef6327f
Update information about Weaveworks products
2017-01-31 12:43:53 +00:00
Bryan Boreham
fdeb9010ba
Merge pull request #2757 from weaveworks/upgrade-build-tools
...
Upgrade to latest 'common' and 'build-tools'.
2017-01-31 12:17:31 +00:00
Marc CARRE
ee659d4033
Replace weave/common/mflagext with common/mflagext.
...
Removes duplication between weave and common and reduces the amount of sources to compile.
2017-01-31 10:49:29 +00:00
Marc CARRE
8f9b2a36c0
Remove dep. on docker and use mflag from common.
...
This reduces the number of dependencies, and avoids having docker as a vendored dependency, which should speed the build up.
2017-01-31 10:30:12 +00:00
Bryan Boreham
6a83130685
Document multicast behaviour of weave-npc
2017-01-30 18:14:57 +00:00
Marc CARRE
77e6c6f886
Upgrade to latest 'common' and 'build-tools'.
...
If building against the latest 'build-tools', you would typically get:
tools/runner/runner.go:18:2: cannot find package github.com/weaveworks/common/mflag
This change fixes the issue by upgrading both dependencies.
2017-01-30 18:05:58 +00:00
Adam Harrison
8a5a15d5e9
Merge pull request #2753 from weaveworks/mv-signal-to-common
...
Move signal handling loop to common.
2017-01-30 12:38:23 +00:00
Bryan Boreham
bcc8c73f59
Fix build of manifest_tool in 'make publish'
2017-01-30 11:02:11 +00:00
Bryan Boreham
e22c6375c9
Fix build of manifest_tool
2017-01-27 18:09:22 +00:00
Marc Carré
22ae0d200c
Merge pull request #2752 from weaveworks/makefile-cleanup
...
Makefile cleanup after multiarch merge
2017-01-27 16:51:44 +00:00
Bryan Boreham
7231bd00f8
Remove .weavedb.uptodate file when we remove the weavedb image in 'make clean-bin'
2017-01-27 16:26:05 +00:00
Tom Wilkie
590a151bde
Move signal handling loop to common.
2017-01-26 17:55:19 +00:00
Martynas Pumputis
f5dfefef75
Merge pull request #2749 from weaveworks/shfmt-ignore
...
Upgrade Weave Net to latest version of build-tools, skipping bash scripts when lint-ing.
2017-01-26 10:55:36 +00:00
Marc CARRE
8e6cb5e24d
Print files we currently do not lint.
...
Makes what the build does explicitly and helps for potential debugging.
Also reminds us that we are skipping these files, so that we ultimately shfmt them and stop lint-ignoring them.
2017-01-25 17:14:48 +00:00
Marc CARRE
ed629d420d
Pass additional options to ./tools/test to revert to previous behaviour.
...
Previous commit upgrades Weave Net to the latest version of `build-tools`.
However, `./tools/test`'s default behaviour has changed, so we need to explicitly pass new options/arguments, in order to keep it behaving like before fd568682c3 .
2017-01-25 17:14:05 +00:00
Marc CARRE
fd568682c3
Upgrade Weave Net to latest version of build-tools, skipping bash scripts when lint-ing.
...
Lint-ing all of Weave Net is currently not desirable because:
* it would create conflicts on many branches,
* it would pollute the git history,
* etc.
and because `lint` currently lints all files except `./vendor`, this breaks Weave Net's build.
As a result, Weave Net is not using the latest commit in `build-tools`'s `master` branch, which is also source of problems:
* it limits standardisation of projects across Weaveworks,
* it limits the ability to use the latest features of `build-tools`,
* it complexifies merging changes in `build-tools` (e.g. #53 and weaveworks/weave#2694 for weaveworks/weave#2647 ),
* etc.
This change:
* brings Weave Net to the latest version of `build-tools` (which now supports `.lintignore` files),
* adds such a `.lintignore` file to skip all bash scripts (in order to avoid breaking the build).
`GLOB`s in `.lintignore` can then, over time and as scripts are `shfmt`-ed, be relaxed and maybe even removed.
2017-01-25 16:50:32 +00:00
Bryan Boreham
dbb9849b8c
Remove whitespace from blank lines and comment lines
...
Principally because emacs complains about it, but also to remove the
overhead of firing up a shell process to ignore a comment in a recipe
2017-01-25 14:20:54 +00:00
Bryan Boreham
776af44782
Make manifest-tool using weave build container
2017-01-25 14:18:55 +00:00
Bryan Boreham
69dacd0594
Restrict CircleCI publishing to AMD64
2017-01-25 10:52:53 +00:00
Bryan Boreham
f17a2a00b1
Merge pull request #2713 from luxaslabs/multiarch
...
Make Weave Net multi-architecture
2017-01-24 18:07:32 +00:00
Lucas Käldström
1a64420e01
Fix duplicate publish target
2017-01-24 17:38:44 +02:00
Bryan Boreham
49b9a2c8df
Bump Docker to 1.10
2017-01-24 17:28:08 +02:00
Bryan Boreham
6c251417d5
Update 'docker inspect weavedb' format for Docker 1.10
2017-01-24 17:27:53 +02:00
Lucas Käldström
8c0c38c8b3
Add manifest-tool as a submodule
2017-01-24 17:27:30 +02:00
Lucas Käldström
29eee4e858
Fixing review feedback, adding checksums, etc
2017-01-24 17:24:04 +02:00
Lucas Käldström
454c6f713d
Make Weave Net multi-architecture and add support for ARM and ARM 64-bit
2017-01-24 17:23:00 +02:00
Marc Carré
dd715e18ec
Merge pull request #2743 from weaveworks/fix-uuid
...
Don't fail if only half the system IDs are blank
2017-01-23 15:00:06 +00:00
Bryan Boreham
f067c7d44e
Add rule to allow multicast at top level
2017-01-23 12:11:44 +00:00
Bryan Boreham
c1023eaf18
Hard-code repository name for weavebuild container
...
so we don't create a new one when testing publish to different DOCKERHUB_USER
2017-01-20 14:55:10 +00:00
Bryan Boreham
b091f59311
Merge pull request #2734 from Compositional/master
...
Add partial support for non-FHS host systems
2017-01-20 14:45:33 +00:00
Marc Carré
f98ad822e3
Merge pull request #2740 from weaveworks/issues/2738-dedupe-surrogate
...
Update mesh lib to break cycle of old gossip
2017-01-20 12:36:08 +00:00
Bryan Boreham
917c1ddbad
Update mesh lib to break cycle of old gossip
2017-01-20 12:05:55 +00:00
Marc Carré
d81d2f691d
Merge pull request #2742 from weaveworks/build-improvements
...
Build improvements
2017-01-20 11:26:18 +00:00
Bryan Boreham
1ad118a38f
Merge branch '1.8'
2017-01-20 09:45:13 +00:00
Bryan Boreham
9d1648cee7
Merge pull request #2741 from weaveworks/document-mtu-with-weave-kube
...
Document WEAVE_MTU in weave-kube config options
2017-01-20 09:40:57 +00:00
Bryan Boreham
929167366a
Don't fail if only half the system IDs are blank
2017-01-19 15:57:21 +00:00
Bryan Boreham
353ccf5e6c
Move build to 'dependencies' section
...
This means we don't spend time trying to run other tests if the build failed.
2017-01-19 10:59:16 +00:00
Bryan Boreham
cfc1fa4fae
Build test runner inside build container for consistency
2017-01-19 10:59:04 +00:00
Robert Hensing
d881f47088
Add partial support for non-FHS host systems
...
Fixes weaveworks/weave#2733 partially, where <host>/etc/resolv.conf is not a
symlink
2017-01-18 23:28:49 +01:00
Bryan Boreham
84013c4452
Merge pull request #2735 from weaveworks/issues/2732-pin-alpine-version
...
Pin alpine container version
2017-01-18 16:49:04 +00:00
Adam Harrison
d9dc1a988c
Document WEAVE_MTU in weave-kube config options
2017-01-18 15:11:41 +00:00
Marc CARRE
5fd14348aa
Fix broken link to 'Building Weave Net' documentation.
2017-01-17 17:49:17 +00:00
Adam Harrison
57a250a20b
Pin alpine container version
2017-01-16 12:27:53 +00:00
Adam Harrison
81add75258
Merge pull request #2711 from weaveworks/issues/2427-unique-ids
...
Better machine unique IDs
2017-01-13 09:40:18 +00:00
Bryan Boreham
0145282a10
Merge pull request #2728 from weaveworks/issues/2653-ulogd-pdeathsig
...
SIGKILL ulogd on weave-npc exit
2017-01-11 17:31:18 +00:00
Adam Harrison
ae0cb5d483
SIGKILL ulogd on weave-npc exit
2017-01-11 14:12:01 +00:00
Bryan Boreham
e7eeecd762
Smoke test for peer names
2017-01-11 13:14:35 +00:00
Bryan Boreham
7d308a4ac5
Wire weaveutil unique-id into weave script
...
Also ensure the right host directories are mounted when create-bridge
is called from either the weave script or weave-kube.
2017-01-11 13:14:35 +00:00
Bryan Boreham
ebcb7f6108
Use persisted peer name if it matches old-style ID
2017-01-11 13:14:35 +00:00
Bryan Boreham
e03c7b1b7c
Allow opening persistence file read-only
2017-01-11 13:13:19 +00:00
Bryan Boreham
70a20b4d26
Generate peer name / mac address in Go
2017-01-11 13:12:30 +00:00
Bryan Boreham
d143470d77
Refactor: extract db filename to a constant
2017-01-11 13:05:25 +00:00
Bryan Boreham
30d6639a98
Refactor: move peer name identifier to DB package
2017-01-11 13:05:25 +00:00
Adam Harrison
92cfd3b4f9
Merge pull request #2725 from weaveworks/update-tools
...
Update tools submodule to avoid breaking on missing Docker mflag
2017-01-09 17:09:53 +00:00
Adam Harrison
7659ea21c7
Merge branch '1.8'
...
Fixes #2693 .
2017-01-09 16:24:08 +00:00
Adam Harrison
4e740736e7
Merge pull request #2697 from weaveworks/issues/2693-npc-log-instructions
...
Fix instructions to view npc logs when >1 pod exists
2017-01-09 16:23:42 +00:00
Adam Harrison
4f44d9e25a
Merge branch '1.8'
...
Fixes #2719 .
2017-01-09 15:49:29 +00:00
Adam Harrison
2ae2d52289
Merge pull request #2722 from weaveworks/issues/2719-delete-pods
...
Warn not to delete all Weave Net pods
2017-01-09 15:48:48 +00:00
Adam Harrison
635191970f
Merge pull request #2688 from weaveworks/issues/2684-exec-weaver
...
Exec weaver from weave-kube launch rather than running in background
2017-01-09 15:24:19 +00:00
Bryan Boreham
e370443a3f
Merge pull request #2699 from weaveworks/2647-parallelise-sanity-checks
...
Parallelise sanity checks in order to speed them up.
2017-01-09 12:57:44 +00:00
Bryan Boreham
738ff2b65f
Update tools submodule to avoid breaking on missing Docker mflag
2017-01-09 12:50:18 +00:00
Bryan Boreham
cef8c908d0
Merge pull request #2704 from weaveworks/2647-parallelise-setup
...
Parallelise setup.sh's individual tasks.
2017-01-09 12:30:53 +00:00
Marc CARRE
edc0cdbc10
Sanity checks' output is now redirected to $CIRCLE_ARTIFACTS directly when running smoke tests in CircleCI.
...
Previously sanity checks' output was redirected to /tmp and then copied to $CIRCLE_ARTIFACTS, which is more "moving pieces".
2017-01-09 12:25:29 +00:00
Marc CARRE
89e116961c
Now measure time spent in setup.
2017-01-09 12:03:13 +00:00
Marc CARRE
71180f97e7
Parallelise setup.sh.
2017-01-09 12:03:09 +00:00
Adam Harrison
be8d9d88d8
Merge pull request #2724 from weaveworks/2647-remove-dependency-on-jq
...
Removed dependency on jq in test #175 .
2017-01-09 10:59:52 +00:00
Bryan Boreham
35de3720e9
Merge pull request #2698 from weaveworks/2647-find-relative-dir
...
Finding and running tests no longer depends on current directory.
2017-01-09 10:34:07 +00:00
Marc CARRE
4a7e2054db
Removed dependency on jq in test #175 .
...
If the machine coordinating the test runs does not have jq, then test #175 fails with:
> test #1 "weave_on test-0.lon1.weave-net report | jq -r '.Router.Targets[] | tostring' | sort" failed:
> expected "test-1.lon1.weave-net
> test-2.lon1.weave-net"
> got nothing
This change completely removes the dependency on jq to make the test more robust and avoid potential confusion.
2017-01-09 10:16:05 +00:00
Marc CARRE
fe75047988
weave-daemonset.yaml is now referred to using relative paths.
2017-01-09 10:08:38 +00:00
Marc CARRE
f73fb5307f
Redirect sanity checks' output to temporary files (and archive them as artifact files under CircleCLI).
...
This should make it easier to find and access relevant debugging information without polluting STDOUT and without any risk of log interleaving. See also:
- https://weaveworks.slack.com/archives/net/p1482154505001192
- https://weaveworks.slack.com/archives/net/p1482254780001493
2017-01-09 09:17:45 +00:00
Marc CARRE
172597a68d
Now measure time spent in sanity checks.
2017-01-09 09:17:45 +00:00
Marc CARRE
f05169e457
Initialise pids before using it, to avoid potential issues with previously set values.
2017-01-09 09:17:45 +00:00
Marc CARRE
b171497466
Ensure sanity checks exit early in case of a ping failure.
2017-01-09 09:17:45 +00:00
Marc CARRE
61375fb785
Format ping output as one line.
2017-01-09 09:17:45 +00:00
Marc CARRE
04cc4edf26
Parallelise sanity checks in order to speed them up.
2017-01-09 09:17:45 +00:00
Marc CARRE
0101a12fba
Undo 0dff07dc8b since current directory is already changed on previous line.
2017-01-09 09:16:53 +00:00
Marc CARRE
e094fb1547
DOCKER_CERT_PATH is now set using a relative path.
2017-01-09 09:16:53 +00:00
Marc CARRE
e0a44a901a
Tests now source dependencies using relative paths (previously breaking make depending on current directory).
2017-01-09 09:16:53 +00:00
Marc CARRE
d4f9abeefd
Finding tests no longer depends on current directory.
2017-01-09 09:16:53 +00:00
Bryan Boreham
0338d4595b
Fix instructions to view npc logs when >1 pod exists
2017-01-06 11:24:20 +00:00
Bryan Boreham
7328c3fe86
Comment about full build on first push
2017-01-06 10:54:13 +00:00
Bryan Boreham
bf288ff6f5
Warn not to delete all Weave Net pods
2017-01-06 10:30:46 +00:00
Marc Carré
ef4c4024bc
Merge pull request #2720 from weaveworks/2647-fix-test-150
...
Fix ordering bug in test #150 .
2017-01-05 15:29:58 +00:00
Marc CARRE
6f24cca4b1
Fix ordering bug in test #150 .
...
Test hard-codes a string containing '\n' and then expects echo
to interpret it as a newline, which it does not without the -e option.
This fixes flaky test runs like the below:
>>> Running /root/src/github.com/weaveworks/weave/test/150_connect_forget_2_test.sh on [138.68.153.213 138.68.149.186]
>>> Test /root/src/github.com/weaveworks/weave/test/150_connect_forget_2_test.sh finished after 12.4 secs with error: exit status 1
test #5 "direct_peers 138.68.149.186 | sort" failed:
expected "138.68.153.213\n138.68.149.186"
got "138.68.149.186\n138.68.153.213"
2017-01-05 15:02:16 +00:00
Bryan Boreham
bf59a003bb
Exec weaver from weave-kube launch rather than running in background
...
So we only have one process running inside the container after all
set-up is finished
2017-01-04 15:00:52 +00:00
Bryan Boreham
2298a40327
Fix bug which was killing all smoke-tests
...
- only fail if there is no secret password
2017-01-04 14:53:43 +00:00
Adam Harrison
61d22bb8b4
Merge pull request #2686 from weaveworks/issues/2580-allow-ips
...
Allow docker bridge to have more than one IP address
2017-01-04 14:35:48 +00:00
Adam Harrison
eb3bbff883
Merge pull request #2708 from weaveworks/weave-kube-mounts
...
Mount /etc under a different path for weave-kube
2017-01-04 10:15:54 +00:00
Adam Harrison
03c1379d1b
Merge pull request #2716 from liubog2008/fix
...
fix a bug of updating network policy
2017-01-03 17:44:58 +00:00
liubog2008
1635093341
fix a bug of updating network policy
2016-12-28 14:12:06 +08:00
Bryan Boreham
93dcc4550a
Merge pull request #2712 from luxaslabs/deprecate_maintainer_dockerfile
...
Remove the deprecated MAINTAINER field in Dockerfiles and change to "LABEL maintainer" instead
2016-12-23 16:06:41 +00:00
Bryan Boreham
ab55da47b6
Check if we have secrets before decrypting or running smoke tests
...
And enable running CircleCI on forked pull requests
2016-12-23 16:06:20 +00:00
Lucas Käldström
17971a5a3a
Remove the deprecated MAINTAINER field in Dockerfiles for LABEL maintainer instead
...
Also add https://microbadger.com/labels labels and remove LABEL fields where they already are inherited
2016-12-23 14:57:02 +02:00
Bryan Boreham
e0b90e8f02
Inline single-line function docker_bridge_ip
2016-12-23 12:15:04 +00:00
Bryan Boreham
ea014d1362
Reimplement docker_bridge_ip shell pipeline in Go
2016-12-23 12:10:26 +00:00
Bryan Boreham
6ef302b8a1
Extract FindBridgeIP to net package
2016-12-23 11:57:04 +00:00
Bryan Boreham
1e7afe3bec
Merge branch '1.8'
2016-12-23 11:35:53 +00:00
Bryan Boreham
48508044d6
Merge pull request #2703 from weaveworks/issues/2700-ip-link
...
Docs: improve IP route links
2016-12-23 11:26:52 +00:00
Bryan Boreham
a4ad66f1c8
Mount /etc under a different path for weave-kube
...
So we don't accidentally read or write the hosts's /etc.
Also move the other volumes under /host to be more consistent with
what the weave script expects.
2016-12-22 10:35:47 +00:00
Bryan Boreham
0f85a959bb
Merge branch '1.8'
2016-12-21 11:15:04 +00:00
Bryan Boreham
d9a8adda1d
Merge pull request #2706 from weaveworks/issues/2638-segfault-dp
...
Do not segfault if the datapath exists
2016-12-21 11:12:19 +00:00
Marc Carré
ef4a8648a9
Merge pull request #2707 from weaveworks/2647-fix-typo-in-sanity-checks
...
Fixed typo in sanity check of weave's version
2016-12-21 10:28:09 +00:00
Marc CARRE
8bb72aa175
Fixed typo in sanity check of weave's version (previously checking locally, now checking test host).
2016-12-21 10:03:05 +00:00
Martynas Pumputis
fa05dcf6ee
Do not segfault if the datapath exists
...
If the datapath exists when creating it, dpif.CreateDatapath
will return an empty handle which access will cause the segfault.
2016-12-20 18:16:16 +02:00
Martynas Pumputis
8affa26858
Merge pull request #2695 from weaveworks/issues/2692-consistent-npc-log
...
Change rest of npc to weave common logging
Fixes #2692
2016-12-19 16:41:27 +02:00
Martynas Pumputis
856cb48170
Merge pull request #2685 from weaveworks/issues/2480-correct-mac
...
Take peerName from weave bridge if not specified
Fixes #2480
2016-12-19 16:35:15 +02:00
Bryan Boreham
1239fca567
Docs: improve IP route links
2016-12-19 12:34:05 +00:00
Bryan Boreham
6592a9afc7
Merge branch '1.8'
2016-12-14 11:57:11 +00:00
Mathias Methner
7ffd96f425
Document how to publish prometheus metric endpoint on all interfaces
...
This is a combination of 4 commits.
The first commit's message is:
2677 docu, how to publish prometheus metric endpoint on all interfaces
This is the 2nd commit message:
2677 change docu on how to publish metrics, be more careful with publishing on all interfaces
This is the 3rd commit message:
2677 fix spelling
This is the 4th commit message:
2677 fix wrong port title and grammar
2016-12-14 11:54:56 +00:00
Bryan Boreham
906d9a47b1
Merge pull request #2696 from weaveworks/2647-import-using-absolute-paths
...
Scripts now source dependencies using relative paths
2016-12-13 17:00:58 +00:00
Marc CARRE
0dff07dc8b
Scripts now source dependencies using relative paths (previously breaking make depending on current directory).
2016-12-13 16:00:37 +00:00
Bryan Boreham
9261d17dbe
Fix option name
2016-12-13 14:59:45 +00:00
Bryan Boreham
7d8a18bd20
Change rest of npc to weave common logging
2016-12-13 13:52:48 +00:00
Bryan Boreham
29cb13cba6
Merge branch '1.8'
2016-12-13 13:34:03 +00:00
Martynas Pumputis
52f375ac1e
Merge pull request #2663 from weaveworks/issues/2389-report-mtu
...
Add MTU to connection status
Fixes #2389
2016-12-13 11:53:39 +00:00
Bryan Boreham
73f184df7e
Fix quotes in anchors
2016-12-13 11:42:20 +00:00
Bryan Boreham
bbd631f08f
weave-kube no longer needs to supply the peer address
2016-12-09 15:34:31 +00:00
Bryan Boreham
cf315fb6ba
Take peerName from weave bridge if not specified
2016-12-09 15:34:31 +00:00
Bryan Boreham
c03a2caac2
Allow docker0 to have >1 IP address
...
and log the one we end up using
2016-12-09 15:22:49 +00:00
Bryan Boreham
9c2bc0b825
Add MTU to connection status
2016-12-09 13:59:49 +00:00
Martynas Pumputis
fcda8985fb
Remove bin/setup-ci-secrets
...
It was used by Travis CI which we do not use anymore.
2016-12-08 16:22:12 +00:00
Martynas Pumputis
14082f9332
Merge branch '1.8'
2016-12-08 15:44:40 +00:00
Martynas Pumputis
83401eb245
Update release-process.md
...
git.io/weave-kube does not point to the weave-kube repo anymore.
2016-12-08 15:35:54 +00:00
Martynas Pumputis
022a98d4a4
Add release v1.8.2
2016-12-08 15:11:21 +00:00
Bryan Boreham
bb1cca713d
Merge branch '1.8'
2016-12-08 12:27:40 +00:00
Bryan Boreham
1d80a8d676
Merge pull request #2674 from weaveworks/issues/2650-fix-looping-flows
...
Detect looping flows
2016-12-08 12:27:15 +00:00
Martynas Pumputis
aa9c032176
Add sanity check to detect when receiving own packets
2016-12-08 11:38:37 +00:00
Martynas Pumputis
baa8f229f7
Detect enabling of hairpin mode on vethwe-bridge
...
Enabled hairpin mode on vethwe-bridge was one of the root causes
for installing looping flows in the fastdp mode.
Also, it confused the weave custom L2 bridge, as the bridge treats
a bounced back packet, e.g. ARP brodcast request, as a local one
(the case for "Captured a packet associated with remote host").
2016-12-08 11:37:52 +00:00
Martynas Pumputis
ab1b99a4d9
Update vishvananda/netlink vendored dependency
...
The updated version includes parsing of IFLA_PROTINFO
which is needed to get info about hairpin mode when
subscribing to link updates.
2016-12-08 10:33:22 +00:00
Adam Harrison
11ff1880e5
Merge pull request #2666 from weaveworks/issues/2633-json-events
...
Log objects via JSON for better debugging
2016-12-07 17:25:55 +00:00
Bryan Boreham
71bf040715
Add --log-level option, default to debug
2016-12-07 11:53:40 +00:00
Bryan Boreham
6a04c6c7bd
Change to weave common logging
2016-12-07 11:53:31 +00:00
Bryan Boreham
8530528dd5
Drop pod log messages to Debug level
2016-12-07 11:51:53 +00:00
Adam Harrison
e1d8992ec5
Merge branch '1.8'
...
Fixes #2673 .
2016-12-07 11:24:13 +00:00
Adam Harrison
b03311e99d
Merge pull request #2683 from weaveworks/issues/2673-expose-again
...
Re-add expose to ensure it gets run on all nodes
2016-12-07 11:23:52 +00:00
Adam Harrison
0c1138ee60
Merge pull request #2662 from weaveworks/issues/2594-setup-cni
...
Unify weave and launch.sh CNI setup
2016-12-07 11:21:25 +00:00
Bryan Boreham
8a45292e24
Log objects via JSON for better debugging
2016-12-06 17:40:17 +00:00
Bryan Boreham
d1712e9589
Re-add expose to ensure it gets run on all nodes
...
Previous change in a07e3301b1 meant that if there are no pods on
this node then the 'expose' never gets run.
2016-12-06 14:58:31 +00:00
Bryan Boreham
ec21afb426
Unify weave and launch.sh CNI setup
...
Test 830 has to run CNI plugin under sudo now
2016-12-06 11:52:09 +00:00
Bryan Boreham
882bff292e
Fix test invocation of weave again
...
Previous fix in b4a43f1b85 did not work
when built with code coverage.
Running a test script with -v causes `weave_on` to output progress
messages, so we don't want to use those commands inside `$()`
2016-12-06 11:48:48 +00:00
Adam Harrison
f3843a6b18
Merge branch '1.8'
2016-12-06 11:41:45 +00:00
Adam Harrison
597c6c111d
Merge pull request #2657 from weaveworks/remove-bridge-on-error
...
Remove weave bridge if something goes wrong when creating it
2016-12-06 11:41:29 +00:00
Adam Harrison
ac4957e15c
Merge branch '1.8'
2016-12-06 11:30:32 +00:00
Adam Harrison
f3915592b2
Merge pull request #2679 from weaveworks/expose-loop
...
Run iptables commands in a loop
2016-12-06 11:30:20 +00:00
Bryan Boreham
8a292fd9f3
Merge pull request #2678 from weaveworks/issues/2593-remove-cni-from-plugin
...
Remove CNI support from Docker plugin
2016-12-06 02:51:23 -08:00
Bryan Boreham
f34936d9be
Merge branch '1.8'
2016-12-06 10:39:50 +00:00
Bryan Boreham
d4367457a9
Merge pull request #2671 from weaveworks/document-env-vars
...
Document env-var configuration for weave-kube
2016-12-06 02:39:20 -08:00
Bryan Boreham
b4a43f1b85
Fix test running with -v flag
...
Running a test script with -v causes `weave_on` and `docker_on` to
output progress messages, so we don't want to use those commands
inside `$()`
2016-12-05 16:12:15 +00:00
Bryan Boreham
3674808244
Remove weave bridge and associated devices if something goes wrong when creating it
...
Otherwise it is left in a half-created state and the user has to run `weave reset` to continue.
2016-12-05 15:11:47 +00:00
Bryan Boreham
44cc978a94
Update CNI information
2016-12-05 14:29:07 +00:00
Bryan Boreham
f441ec2644
Document env-var configuration for weave-kube
...
E.g. how to configure the IP allocation range
2016-12-05 13:55:33 +00:00
Martynas Pumputis
0ae13a2650
Detect hairpin flows
...
The introduced "isHairpinFlow" detects whether a flow has been
created due to enabled hairpin mode.
2016-12-05 12:42:24 +00:00
Bryan Boreham
ee6596e21c
Run iptables commands in a loop
...
in case they get "temporarily unavailable" exit
2016-12-05 11:11:20 +00:00
Anita Buehrle
a63147beda
Improve wording of kube-addon page
2016-11-30 16:15:30 +00:00
Adam Harrison
cdcf5808db
Remove CNI support from Docker plugin
2016-11-30 10:43:50 +00:00
Bryan Boreham
d501c78795
Merge pull request #2659 from weaveworks/issues/2581-optional-bridge-nf
...
Optional bridge-nf detection
2016-11-28 18:09:40 -08:00
Adam Harrison
e61ddc59c4
Merge branch '1.8'
...
Fixes #2669 .
2016-11-28 11:54:03 +00:00
Adam Harrison
46e4f047de
Merge pull request #2672 from weaveworks/issues/2669-iprange-clash
...
Check whether Weave's IP range overlaps something on the host already
2016-11-28 11:53:50 +00:00
Adam Harrison
9cff5f2c5e
Merge branch '1.8'
2016-11-25 17:23:39 +00:00
Adam Harrison
5f031453d3
Remove backticks which are tripping up the markdown renderer
2016-11-25 16:55:22 +00:00
Marc CARRE
028216021f
Fixed formatting of documentation about logging of connection blocked by Weave NPC.
2016-11-25 16:00:05 +00:00
Bryan Boreham
d6544302d3
Check whether Weave's IP range overlaps something on the host already
2016-11-25 14:43:23 +00:00
Adam Harrison
bc529c5d09
Merge branch '1.8'
...
Fixes #2667 .
2016-11-25 13:10:29 +00:00
Adam Harrison
354d1ddd5c
Merge pull request #2670 from weaveworks/issues/2667-firewall-rules
...
Run GCE test VMs on a locked-down network
2016-11-25 13:09:54 +00:00
Adam Harrison
28bf4e6e95
Optional bridge-nf detection
2016-11-25 12:40:20 +00:00
Marc Carré
33b7faa17d
Merge pull request #2668 from weaveworks/fix-doc-formatting
...
Fix documentation's formatting.
2016-11-25 12:28:26 +00:00
Marc CARRE
ac731c0ff7
Fixed formatting of documentation about logging of connection blocked by Weave NPC.
2016-11-25 12:19:53 +00:00
Bryan Boreham
fd34dda6c1
Run test instances on a locked-down network
...
and open up a rule from the specific IP running the tests
2016-11-24 17:17:12 +00:00
Bryan Boreham
16fca913de
Merge branch '1.8'
2016-11-24 15:27:36 +00:00
Bryan Boreham
f989a82eb0
Merge pull request #2573 from weaveworks/2546-clarify-npc-packet-drop-no-link
...
Clarified and documented Weave NPC packet drops (w/o short URL).
2016-11-24 15:26:49 +00:00
Marc CARRE
d410ecd34c
Document logging of connection blocked by Weave NPC.
2016-11-24 14:04:43 +00:00
Marc CARRE
48569265e2
Add logging of connection blocked by Weave NPC.
2016-11-24 14:02:22 +00:00
Bryan Boreham
ad43acf843
Merge branch '1.8'
2016-11-24 10:53:59 +00:00
Bryan Boreham
71782a6aa5
Merge pull request #2661 from weaveworks/fix-700-again
...
Wait up to 30s for version check error in logs
2016-11-24 10:52:47 +00:00
Adam Harrison
6df24d1a40
Merge branch '1.8'
2016-11-23 12:37:14 +00:00
Adam Harrison
e283b0a1ce
Add release v1.8.1
2016-11-23 12:25:07 +00:00
Adam Harrison
fa15193011
Wait up to 30s for version check error in logs
2016-11-23 10:53:42 +00:00
Bryan Boreham
dff14c19f8
Don't remove base CNI plugins in test
2016-11-23 10:38:23 +00:00
Adam Harrison
6103595b9c
Merge branch '1.8'
2016-11-23 10:36:53 +00:00
Adam Harrison
01c436ae15
Merge pull request #2642 from weaveworks/fix-launch-version
...
Fix weave-kube launch.sh version usage
2016-11-23 10:36:16 +00:00
Adam Harrison
c3a2539445
Merge branch '1.8'
2016-11-22 16:17:30 +00:00
Adam Harrison
664ba8735f
Merge pull request #2643 from weaveworks/issues/2632-cni-no-check-alive
...
Don't release CNI-allocated IP address when container dies
2016-11-22 16:17:11 +00:00
Bryan Boreham
937036aa64
Simplify default version string
2016-11-22 15:43:17 +00:00
Bryan Boreham
47cdf2b755
Simplify version sed
2016-11-22 15:42:53 +00:00
Adam Harrison
ef270764f3
Merge branch '1.8'
...
Fixes #2632 .
2016-11-22 15:28:03 +00:00
Adam Harrison
a6edd40de3
Merge pull request #2658 from weaveworks/issues/2632-use-pod-status
...
Make NPC only look at IP addresses on running pods
2016-11-22 15:27:48 +00:00
Bryan Boreham
4219c2c2ab
Only look at IP addresses on pods that haven't finished
2016-11-22 13:49:28 +00:00
Bryan Boreham
4785de1a34
Merge branch '1.8'
2016-11-22 09:59:27 +00:00
Bryan Boreham
cbec624cd8
Remove CNI files when tearing down Kubernetes
2016-11-21 16:08:50 +00:00
Bryan Boreham
e7bde18f71
Merge pull request #2656 from weaveworks/add-jq-to-vagrantfile
...
Include jq in the build VM
2016-11-21 11:53:03 +00:00
Bryan Boreham
e9eeaee520
Warn user on unknown gce util command
2016-11-21 09:49:41 +00:00
Bryan Boreham
d5ec9fb38d
Fix test 700 to use resolver override
...
instead of /etc/hosts override that didn't work in netgo mode
2016-11-18 20:42:15 +00:00
Adam Harrison
233a776c41
Include jq in the build VM
...
Required to run the tests.
2016-11-18 17:59:13 +00:00
Bryan Boreham
d5f1c233bf
Remove punctuation from the end of error messages
...
to placate the linter
2016-11-18 10:40:41 +00:00
Bryan Boreham
af732d0495
Merge pull request #2529 from weaveworks/use-golang-171
...
Build container FROM golang:1.7.3
2016-11-17 15:04:12 +00:00
Marc Carré
04a87f951b
Merge pull request #2644 from weaveworks/issues/2567-tighter-iprange
...
Better value for --ipalloc-range in attach-router
2016-11-17 11:38:12 +00:00
Bryan Boreham
9cc98919fa
Adjust CNI smoke-test to cope with new plugin behaviour
2016-11-14 19:53:54 +00:00
Bryan Boreham
e42600632f
Don't release dead container's IP addresses if not asked to check it is alive.
2016-11-14 19:53:54 +00:00
Bryan Boreham
93aa3fed16
Merge branch '1.8'
2016-11-14 19:47:05 +00:00
Bryan Boreham
49e76d1486
Merge pull request #2645 from weaveworks/fix-test-700
...
Replace iptables block with resolver override
2016-11-14 19:44:26 +00:00
Adam Harrison
965bed7c4f
Replace iptables block with resolver override
2016-11-14 17:11:17 +00:00
Bryan Boreham
317c6ba04c
Better value for --ipalloc-range in attach-router
...
The previous regex matched a blank --ipalloc-range and the following
parameter, which defeated the whole point of the check.
2016-11-14 16:11:42 +00:00
Adam Harrison
41d127934b
Remove redundant GO15VENDOREXPERIMENT setting
2016-11-14 15:13:19 +00:00
Adam Harrison
915638d17a
Address linter failures
2016-11-14 15:13:19 +00:00
Adam Harrison
f73355abcc
Incorporate Docker's malformed host fix
2016-11-14 15:13:19 +00:00
Adam Harrison
8f9da95e5e
Restore golint
2016-11-14 15:13:19 +00:00
Adam Harrison
0935aa9221
Build container FROM golang:1.7.3
2016-11-14 15:13:19 +00:00
Adam Harrison
aaa073afed
Merge branch '1.8'
...
Fixes #2617 and fixes #2570 .
2016-11-14 15:11:57 +00:00
Adam Harrison
9b606fb823
Merge pull request #2637 from weaveworks/issues/2617-cni-expose
...
Remove 'weave expose' race in CNI plugin
2016-11-14 15:11:38 +00:00
Bryan Boreham
15d91c558b
Quote version string which may contain spaces, etc
2016-11-14 12:49:00 +00:00
Bryan Boreham
ffc5a78139
Add code-coverage options to weaver version call
2016-11-14 12:42:17 +00:00
Bryan Boreham
f8693074a3
Move CNI config file to the end of launch script
...
So something waiting for the config (e.g. Kubernetes) doesn't try to
talk to Weave before then (this only helps on first install, but that
tends to be when things are busiest).
2016-11-14 12:37:42 +00:00
Bryan Boreham
1629f4f3f0
Loop round iptables commands on EAGAIN
2016-11-14 12:37:42 +00:00
Bryan Boreham
10baab38d3
Extend smoke-test to include pinging
2016-11-14 12:37:42 +00:00
Bryan Boreham
e458c11e66
Weave script calls Go implementation of expose_nat
2016-11-14 12:37:42 +00:00
Bryan Boreham
a07e3301b1
Add 'weave expose' NAT iptables rules inside CNI plugin
...
This avoids a race between the plugin and the script
2016-11-14 12:37:42 +00:00
Bryan Boreham
2b4d13c5b1
Don't error on bridge address already there
2016-11-14 12:37:42 +00:00
Bryan Boreham
755e42836c
Merge branch '1.8'
2016-11-14 11:29:34 +00:00
Bryan Boreham
ad743b0e96
Merge pull request #2577 from weaveworks/2548-fix-reclaim-after-using-cni
...
Fix reclaim after using CNI; Fixes #2548 .
2016-11-14 11:28:42 +00:00
Marc CARRE
0544901357
Factorise "_" duplicates as a constant.
2016-11-11 17:00:26 +00:00
Marc CARRE
bc94633180
Re-claim IP on start-up when an existing ID has been found.
...
- Rewrote conditions to keep c.ident immutable and hopefully makes
things clearer.
- Added a case to tolerate reclaim after we have used CNI (passed CID
is “_” and existing CID is a real container ID).
2016-11-11 17:00:26 +00:00
Marc CARRE
16415404c7
Added automated test reproducing the issue.
...
test #4 "[
3e52b548e6df304c61ea5bee0af4b3515e025e7e25152c65ecae3d03c71cf52d ==
Unable to claim: address 10.32.0.3/12 is already owned by
fbe411facc8b657c5850591ab56fc40fb56160d43db0d7363a29ba3edad61134
Unable to claim: address 10.32.0.1/12 is already owned by
cf16a2bcdee8dd1ef7e5f0a611127611e67ea734f45d7526678fc3b1fc0c6f5d
3e52b548e6df304c61ea5bee0af4b3515e025e7e25152c65ecae3d03c71cf52d ]"
failed:
program terminated with code 2 instead of 0
1 of 6 tests failed in 6.499s.
2016-11-11 17:00:26 +00:00
Adam Harrison
702d12d801
Merge branch '1.8'
...
Fixes #2537 .
2016-11-11 16:14:52 +00:00
Adam Harrison
46eb01604c
Merge pull request #2565 from weaveworks/2537-fix-status-on-version-check-failures
...
Improve 'status' to handle cases when the checkpoint API is not available
2016-11-11 16:14:24 +00:00
Adam Harrison
af36682a7e
Merge branch '1.8'
2016-11-11 11:27:25 +00:00
Bryan Boreham
03d9e3db69
weaveutil now depends on plugin code
2016-11-10 17:04:10 +00:00
Marc CARRE
b03b3fccc7
Fixes 2537: status now prints 'failed to check latest version' when the checkpoint API is not available (+test).
2016-11-09 17:46:52 +00:00
Marc Carré
9414e2979d
Merge pull request #2599 from weaveworks/replace-kubectl-create-with-apply
...
Updated doc: replaced kubectl create with kubectl apply.
2016-11-07 16:31:31 +00:00
Marc CARRE
865664425b
Updated doc: replaced kubectl create with kubectl apply.
2016-11-07 16:18:40 +00:00
Adam Harrison
b060cf30f4
Add release v1.8.0
2016-11-04 15:49:36 +00:00
Marc Carré
5352ed837a
Merge pull request #2598 from weaveworks/cni-setup-remove-symlink
...
Clean up CNI symlinks from weave-kube
2016-11-04 15:28:44 +00:00
Adam Harrison
d4d54a1ff5
Clean up CNI symlinks from weave-kube
2016-11-04 14:41:34 +00:00
Adam Harrison
ea82a6715f
Merge pull request #2569 from weaveworks/weave-kube-smoke-test
...
weave-kube smoke test
2016-11-04 12:58:20 +00:00
Martynas Pumputis
d356e32bdf
Merge pull request #2588 from weaveworks/kube-npc-docs
...
Document k8s addon & prometheus metrics
2016-11-04 12:50:41 +00:00
Martynas Pumputis
6193d22d2e
Merge pull request #2595 from weaveworks/change-npc-metrics-port
...
Change default NPC metrics port
2016-11-04 12:41:25 +00:00
Adam Harrison
50c9568073
Document Prometheus metrics endpoints
2016-11-04 12:33:06 +00:00
Adam Harrison
9d05ed41b2
Change default NPC metrics port
2016-11-04 12:31:01 +00:00
Adam Harrison
e3f7e0a23a
Merge pull request #2590 from weaveworks/issues/2586-/opt/cni/bin-never-upgraded
...
Add support for atomic and versioned upgrades of CNI plugin.
2016-11-04 12:27:48 +00:00
Marc CARRE
da2f0803ce
Add support for atomic and versioned upgrades of CNI plugin.
2016-11-04 11:54:22 +00:00
Bryan Boreham
6dde5e5ee9
Add code-coverage options to weaver start
2016-11-04 10:52:36 +00:00
Bryan Boreham
494df21bdf
Disable imagePullPolicy so we test the image we just built
2016-11-04 10:52:36 +00:00
Bryan Boreham
e44bbbec63
Add smoke-test for weave-kube
2016-11-04 10:52:36 +00:00
Bryan Boreham
c19f49a284
Install Kubernetes packages and pre-pull images
...
Bump template version too
Note that we disable kubelet in the image, so you have to start it if
you want to use it.
2016-11-04 10:52:36 +00:00
Adam Harrison
d3f2c110e4
Merge pull request #2589 from weaveworks/issues/2587-cni-weaveutil
...
Fix CNI plugin calling weaveutil
2016-11-04 10:47:38 +00:00
Bryan Boreham
09628178e4
Weave-kube doesn't need to depend on plugin repo any more
2016-11-03 17:42:39 +00:00
Bryan Boreham
5630a01a8c
Implement CNI plugin via weaveutil
2016-11-03 17:42:39 +00:00
Adam Harrison
40b3a49c90
Merge pull request #2563 from weaveworks/update-test-template
...
Update CI VMs to Ubuntu 16.04 and Docker 1.11
2016-11-03 17:35:21 +00:00
Adam Harrison
431b87b94a
Merge pull request #2591 from weaveworks/reset-npc
...
Have 'weave reset' remove NPC rules
2016-11-03 15:22:46 +00:00
Adam Harrison
828c3d21d2
Recommend using the k8s addon from the CNI docs
2016-11-03 15:13:50 +00:00
Adam Harrison
f0e75481d5
Add network policy to features
2016-11-03 15:13:50 +00:00
Adam Harrison
8bb7e1cf24
Document Kubernetes Addon
2016-11-03 15:13:50 +00:00
Bryan Boreham
e117a6bd04
Have 'weave reset' remove NPC rules
2016-11-03 14:24:26 +00:00
Adam Harrison
ac44fa63c8
Fix breakage caused by #2574
2016-11-03 11:52:58 +00:00
Martynas Pumputis
bb639dbf32
Merge pull request #2585 from weaveworks/merge-weave-npc
...
Merge weave npc
2016-11-02 11:58:43 +00:00
Bryan Boreham
64c890005a
Merge pull request #2583 from damoon/fixup-74b477ac82e1ae267cf8501519f52e1f71a782dc
...
weaveworks/weave-kube:latest broken - fixup! allow to not run NPC: do not create iptables rules for NPC
2016-11-02 11:58:02 +00:00
Adam Harrison
19088ba8bc
Import from weave-npc repo
2016-11-02 11:28:59 +00:00
Martynas Pumputis
ec5f7033a4
Merge pull request #2579 from weaveworks/issues/2557-improve-metric-naming
...
Improve metric naming
2016-11-02 11:02:23 +00:00
Bryan Boreham
eb60f68df2
Report metrics on all connection states
2016-11-02 09:51:13 +00:00
David Sauer
d72e671d8b
fixup! allow to not run NPC: do not create iptables rules for NPC
2016-11-02 10:10:33 +01:00
Martynas Pumputis
3462357481
Merge pull request #2578 from weaveworks/issues/2576-metrics-on
...
Serve metrics by default, on port 6782
2016-11-02 09:08:13 +00:00
Bryan Boreham
2b4da35b1c
Remove 'total' DNS entries; let the caller add them up
2016-11-01 18:03:35 +00:00
Bryan Boreham
86d68c9875
Move total IPs in range from a state to a separate metric
2016-11-01 18:03:35 +00:00
Bryan Boreham
cfff8ee8be
Merge pull request #2568 from weaveworks/rename-conn-term-prom-metric
...
Rename weave_connection_termination_count metric
2016-11-01 18:02:55 +00:00
Bryan Boreham
af10cef5f0
Set --status-addr for metrics by default
2016-11-01 17:04:04 +00:00
Bryan Boreham
a1a42736ed
Fix hard-coded http address
2016-11-01 16:53:37 +00:00
Adam Harrison
b533a11bee
Update client-go
...
weave-npc needs some fixes from client-go master (specifically the
unversioned.LabelSelector change)
2016-11-01 16:19:43 +00:00
Bryan Boreham
afed9e9646
Merge pull request #2574 from pondohva/fix_weave_static_pod
...
allow to not run NPC: do not create iptables rules for NPC
2016-11-01 15:35:49 +00:00
Artur Gadelshin
74b477ac82
allow to not run NPC: do not create iptables rules for NPC
2016-11-01 17:32:41 +03:00
Bryan Boreham
bf74c8f108
Add dependency of weave-kube on launch.sh
2016-11-01 10:46:25 +00:00
Bryan Boreham
04c7f5283e
Reconfigure and restart docker for systemctl
2016-10-31 17:33:33 +00:00
Bryan Boreham
d1d53ba45c
Pre-install more stuff in the image.
...
Install bc and jq in the image rather than on every build.
Also pre-pull some Docker images
2016-10-31 17:33:33 +00:00
Bryan Boreham
dfadb8f189
Upgrade to Ubuntu 16.04 and Docker 1.11
...
Using Docker 1.11 since there isn't a Docker-supplied package for 1.10 on Xenial
2016-10-31 17:33:33 +00:00
Bryan Boreham
5335c133a3
Update deprecated gcloud syntax
2016-10-31 17:33:33 +00:00
Adam Harrison
8fcb5daedf
Merge pull request #2551 from weaveworks/weave-kube
...
Merge weave-kube into the Weave Net repo
2016-10-31 17:12:03 +00:00
Martynas Pumputis
ede70a78d6
Rename weave_connection_termination_count metric
...
To make it follow the Prometheus naming conventions:
https://prometheus.io/docs/practices/naming/
2016-10-31 13:23:12 +00:00
Bryan Boreham
23056cbb45
Temporarily release weave-daemonset.yaml to weave-kube repo
2016-10-31 10:59:15 +00:00
Bryan Boreham
29e9e70ac9
Add weave-kube to release script
2016-10-31 10:59:15 +00:00
Bryan Boreham
d0b711513e
Add weave-daemonset.yaml
2016-10-31 10:59:15 +00:00
Bryan Boreham
7dbee74e85
Add weave-kube image
2016-10-31 10:59:15 +00:00
Bryan Boreham
4e7a3b1805
Add kube-peers program
2016-10-31 10:59:15 +00:00
Bryan Boreham
3c7b244f18
Change image layering - plugin builds on weaver & weaver builds on weaveexec
2016-10-31 10:59:13 +00:00
Bryan Boreham
e50f5c52c5
Make templating of Dockerfiles more generic
2016-10-31 10:56:18 +00:00
Bryan Boreham
baf91658d6
Fix static linking flags
2016-10-28 14:51:26 +01:00
Adam Harrison
fda035d8d6
Merge branch '1.7'
2016-10-28 14:29:26 +01:00
Adam Harrison
a4a53e1a11
Fix broken link
2016-10-28 14:08:54 +01:00
Martynas Pumputis
aad3e52d72
Merge pull request #2564 from weaveworks/improved-dh-org-override-fix
...
Improve Dockerfile template substitution
2016-10-28 10:24:28 +01:00
Adam Harrison
cb778a9af5
Improve Dockerfile template substitution
2016-10-27 11:43:41 +01:00
Marc CARRE
3af9732c84
Merge branch '1.7'
2016-10-26 16:49:58 +01:00
Marc Carré
00e754ed9f
Merge pull request #2562 from weaveworks/build-test-runner-with-vendoring
...
Use vendoring when building test runner & Vagrantfile improvements
2016-10-26 16:44:15 +01:00
Marc CARRE
d893f44833
Vagrantfile now copies SSH key required to run smoke tests from host to guest.
2016-10-26 16:09:09 +01:00
Marc CARRE
4839f41809
Improve resolution of Dockerfile since used in both Vagrantfile and test/Vagrantfile.
2016-10-26 16:09:09 +01:00
Marc CARRE
c801409c94
Set VM's memory to 2048 MB by default.
2016-10-26 16:09:09 +01:00
Marc CARRE
1c4a01d52c
Read Go version from Dockerfile in order to keep things 'DRY'.
2016-10-26 16:09:09 +01:00
Adam Harrison
880b0a883a
Use vendoring when building test runner
2016-10-26 16:09:09 +01:00
Adam Harrison
4b77662e3b
Merge pull request #2561 from weaveworks/issues/2560-fix-dns-ipam-metrics
...
Do not expose IPAM or DNS metrics if weave does not run IPAM or DNS
2016-10-26 14:24:43 +01:00
Adam Harrison
a5ff7ab8df
Merge pull request #2475 from weaveworks/issues/2419-withnetns
...
Add a safer version of WithNetNS*
2016-10-26 13:50:34 +01:00
Adam Harrison
04a6e6d13b
Merge branch '1.7'
2016-10-26 13:47:05 +01:00
Martynas Pumputis
5c2e878c64
Do not expose IPAM or DNS metrics when weave does not run IPAM or DNS
...
Otherwise, GET /metrics will crash weaver.
2016-10-25 16:54:35 +01:00
Adam Harrison
f9bada5af8
Merge pull request #2558 from weaveworks/fix-broken-url-in-doc
...
Fixed broken link to plugin.md to weave-docker-api.md.
2016-10-24 16:57:07 +01:00
Marc CARRE
80d66f8f68
Fixed broken link to plugin.md to weave-docker-api.md.
2016-10-24 16:37:55 +01:00
Martynas Pumputis
98b35b87a9
Fix weave_connection_termination_count
...
Do not count terminations caused by connect-to-ourselves.
2016-10-24 11:37:15 +01:00
Martynas Pumputis
b1d6605e8f
Remove inaccurate Prometheus metrics
...
The metrics include:
- weave_packets_total
- weave_bytes_total
The problem with those metrics is that fastdp periodically flushes
flows including their stats thus makes the current implementation
of the metrics unreliable.
2016-10-24 11:23:10 +01:00
Martynas Pumputis
2cd3bde348
Merge pull request #2555 from weaveworks/forget-immediately
...
Recompute targets immediately after 'weave forget'
2016-10-24 10:52:14 +01:00
Bryan Boreham
f2454775b9
Merge pull request #2552 from weaveworks/issues/2550-fix-make-dockerhub-user
...
Ensure Dockerfiles obey DOCKERHUB_USER
2016-10-24 09:59:38 +01:00
Bryan Boreham
a53d1e00ee
Recompute targets immediately after 'weave forget'
2016-10-21 18:02:25 +01:00
Martynas Pumputis
523a964ac8
Merge pull request #2547 from weaveworks/prometheus-metrics
...
Prometheus metrics
2016-10-21 14:57:42 +01:00
Adam Harrison
f8cf7a1054
Ensure Dockerfiles obey DOCKERHUB_USER
2016-10-21 14:45:10 +01:00
Bryan Boreham
4d8a40c0b5
Reduce metrics mechanism to just support fastdp
2016-10-21 14:44:12 +01:00
Martynas Pumputis
9754da15d6
Encode "list-netdevs" output in JSON
2016-10-20 18:18:57 +01:00
Bryan Boreham
0458d32089
Serve metrics on a different socket to the main API
...
Serve metrics+status on status socket and api+status+metrics on api
socket; the reasoning is that metrics or status are read-only hence
may be scraped from an off-machine connection, while we don't want to
open the control port up unprotected.
2016-10-20 16:25:16 +01:00
Bryan Boreham
ee4e8eb994
Pull in updated mesh lib
2016-10-20 16:25:16 +01:00
Bryan Boreham
b8d619dde7
Add Prometheus http handler for metrics
...
Metrics are: connection counts, active IP addresses, DNS addresses,
FastDP flow metrics, connection termination count
2016-10-20 16:25:16 +01:00
Bryan Boreham
00c86fed42
Expose overlay metrics from fastdp
...
and allow them to pass through OverlaySwitch
2016-10-20 16:25:16 +01:00
Bryan Boreham
6d5af85eee
Report count of active IP addresses in status
2016-10-20 14:04:41 +01:00
Bryan Boreham
1ae2d33714
Remove old-style 'expvar' metrics
2016-10-20 13:54:42 +01:00
Bryan Boreham
71d550260f
Extract countDNSEntries function
2016-10-20 13:54:42 +01:00
Bryan Boreham
1092bae05c
Refactor: move 'unreachable' logic out of printing function
2016-10-20 13:54:42 +01:00
Martynas Pumputis
e611f04f41
Move NetDev utils from common/ to net/
2016-10-19 17:03:30 +01:00
Martynas Pumputis
3492cd93d0
Use safe version of WithNetNS
2016-10-19 16:15:59 +01:00
Martynas Pumputis
947ae11fee
Refactor NetDev utilities
...
- Make them safe by using the safe version of WithNetNS.
- Improve naming.
2016-10-19 16:07:53 +01:00
Martynas Pumputis
cdd6ed548c
Add netdev subcommands to weaveutil
...
The subcommands are going to be used with WithNetNS wrapper.
2016-10-19 16:07:53 +01:00
Martynas Pumputis
fc940d0017
Merge pull request #2549 from weaveworks/log-drops-via-nflog
...
Log dropped policy controller traffic via NFLOG
2016-10-19 11:02:28 +01:00
Bryan Boreham
b38a55ca7c
Include more context in error messages from CNI operations
2016-10-18 17:45:09 +01:00
Adam Harrison
8e739d5240
Log dropped policy controller traffic via NFLOG
...
Send blocked NEW connection attempts to NFLOG group 86 for accounting by
the weave-npc process.
2016-10-14 15:59:15 +01:00
Adam Harrison
71f8bb7e9a
Merge branch '1.7'
2016-10-11 17:02:00 +01:00
Adam Harrison
ebfaf11f4a
Add release v1.7.2
2016-10-11 11:07:18 +01:00
Matthias Radestock
4a6cec3ecc
Merge branch '1.7'
2016-10-07 12:47:04 +01:00
Matthias Radestock
1abce148a3
Merge pull request #2543 from weaveworks/issues/2527-remote-addr
...
Update Weave Mesh to bring in two fixes
Fixes #2481 via weaveworks/mesh#57
Fixes #2527 via weaveworks/mesh#60
2016-10-07 12:45:51 +01:00
Adam Harrison
e0cc7f17b2
Merge branch '1.7'
...
Fixes #2540
2016-10-07 12:24:11 +01:00
Adam Harrison
264e5c9979
Merge pull request #2541 from weaveworks/issues/2540-withnetns
...
Change namespace via nsenter, for plugin arp-config step
2016-10-07 12:20:47 +01:00
Bryan Boreham
a6a1ce5c9e
Update Weave Mesh to bring in fix of panic
2016-10-07 12:13:49 +01:00
Bryan Boreham
6ac7ab162f
Merge branch '1.7'
2016-10-06 16:42:07 +01:00
Bryan Boreham
5e660311d2
Merge pull request #2538 from weaveworks/2506-uts-release-bytes
...
inline (u)int8 array to string conversion
2016-10-06 16:41:26 +01:00
Martynas Pumputis
4a49ff3083
Replace usage of WithNetNSUnsafe in plugin/net/watcher.go with safer version
...
Unsafe version was in ConfigureARPforVeths; replacement is via `weaveutil configure-arp`
2016-10-06 15:25:05 +01:00
Martynas Pumputis
7f92c8c4c6
Add a safer version of WithNetNS*
...
The introduced functions are executing the work function via
a process which executes "nsenter --net=path weaveutil ...".
2016-10-06 15:25:05 +01:00
Matthias Radestock
85ac8177ad
inline (u)int8 array to string conversion
...
so that the code compiles regardless of the uts.Release array type,
which varies across platforms.
Fixes #2506
2016-10-06 08:57:12 +01:00
Adam Harrison
03bd1fb91d
Merge branch '1.7'
2016-10-05 16:49:33 +01:00
Adam Harrison
eb5b16614c
Add release v1.7.1
2016-10-05 15:23:25 +01:00
Adam Harrison
a5873a3970
Merge branch '1.7'
2016-10-05 15:18:26 +01:00
Adam Harrison
e48ca80dee
Disable golint as it no longer builds with 1.5.x
2016-10-05 15:16:23 +01:00
Bryan Boreham
e7c9e22350
Merge pull request #2274 from weaveworks/issues/2273-improve-doc-ci
...
Improve doc CI
2016-10-03 15:34:39 +01:00
Adam Harrison
b8e7d83f19
Rename SKIP_TESTS
2016-10-03 14:07:57 +01:00
Adam Harrison
4c304c0013
Extract install-wordepress
2016-10-03 14:01:15 +01:00
Adam Harrison
7249350757
Merge pull request #2531 from weaveworks/process-addrs
...
Add weaveutil process-addrs
2016-09-30 10:28:59 +01:00
Bryan Boreham
50a8dc1383
Add weaveutil process-addrs
...
Fetches addresses for every veth that is in a network namespace and
attached to the specified bridge. Works by iterating over every process.
2016-09-29 14:16:05 +01:00
Bryan Boreham
71491138aa
Extract function to return all current process ids
...
This implementation should be more efficient because it only uses the
names under /proc, whereas the previous implementation fetched the
full directory entry for each one, and sorted them too.
2016-09-29 14:12:02 +01:00
Bryan Boreham
ca87f8ada3
Improve comments
2016-09-29 14:06:43 +01:00
Adam Harrison
835b3f3d67
Improve script names
2016-09-29 13:01:18 +01:00
Adam Harrison
263dffeedc
Extract shared function
2016-09-29 11:45:28 +01:00
Adam Harrison
e1063944f6
Comment on GitHub PR with site changes
2016-09-29 11:45:28 +01:00
Adam Harrison
2380018457
Skip tests if PR contains only site changes
2016-09-29 11:45:28 +01:00
Adam Harrison
a9db631836
Add toggle for skipping tests
2016-09-29 11:35:01 +01:00
Adam Harrison
b45f138ff1
Propagate state between scripts
2016-09-29 11:25:34 +01:00
Adam Harrison
b239694d34
Move circle commands into shell scripts
2016-09-29 11:25:34 +01:00
Adam Harrison
0c2774f367
Add release v1.7.0
2016-09-27 14:46:35 +01:00
Bryan Boreham
ea4647bc74
Merge pull request #2524 from weaveworks/expect-npc
...
Implement `--expect-npc` flag to `create-bridge`
2016-09-27 13:41:22 +01:00
Adam Harrison
6ec21d3a58
Implement --expect-npc flag to create-bridge
...
Add a private flag for weave-kube to steer overlay traffic via the
network policy engine chain.
2016-09-27 09:23:19 +01:00
Adam Harrison
44a4a56024
Merge branch '1.6'
2016-09-21 17:14:07 +01:00
Adam Harrison
0aac614c08
Add release v1.6.2
2016-09-21 16:18:03 +01:00
Adam Harrison
2ea027d3a8
Merge branch '1.6'
2016-09-21 11:15:49 +01:00
Adam Harrison
cd4cbed5a0
Merge pull request #2501 from weaveworks/issues/2495-filter-empty-peers
...
Reject empty peers
2016-09-21 11:12:10 +01:00
Adam Harrison
69b688b357
Merge pull request #2509 from weaveworks/issues/2503-persist-peers-fix
...
Create restart.sentinel after storing the peer list
2016-09-21 10:09:05 +01:00
Adam Harrison
7a81bc2ddc
Merge pull request #2510 from weaveworks/issues/2329-fix-830-flakiness
...
Enable unsolicited ARPs in 830 test suite
2016-09-20 17:17:19 +01:00
Martynas Pumputis
cdeae04238
Create restart.sentinel after storing peer list
...
Otherwise, we risk to lose peer list when any failure happens after
the creation but before storing the list and as a consequence,
the weave container gets restarted.
2016-09-20 17:07:48 +01:00
Martynas Pumputis
6df2782d73
Update weaveworks/mesh submodule
2016-09-20 17:03:38 +01:00
Adam Harrison
3fc7efa536
Merge pull request #2498 from weaveworks/broken-link
...
fixed broken link to command line args
2016-09-20 16:40:06 +01:00
Adam Harrison
a556deec78
Merge branch '1.6'
2016-09-20 16:26:48 +01:00
Adam Harrison
71e43c2023
Merge pull request #2511 from weaveworks/issues/2340-make-640-less-flaky
...
Filter out netns of non-existing containers
2016-09-20 15:52:54 +01:00
Bryan Boreham
370f258c3a
Fix outdated option ipam-seed
2016-09-16 15:53:43 -07:00
Martynas Pumputis
9b32bc2ab3
Close opened netns
2016-09-14 16:47:40 +01:00
Martynas Pumputis
fd5e1970e1
Return nil netdev if netns of container cannot be found
...
The change applies to GetNetDevsWithPredicate. The function calls
FindNetDevs which already does the same filtering.
The change prevents from "container-addrs" (weaveutil) returning
"unable to open X process namespace" error which happens when
a container dies while the cmd is being executed.
2016-09-14 16:47:16 +01:00
Martynas Pumputis
a1de7f3eef
Enable unsolicited ARPs in 830 test case
...
Otherwise, ping (c1->c3) after the address reuse might time out.
2016-09-14 11:05:00 +01:00
Matthias Radestock
06a63db4cf
Merge branch '1.6'
2016-09-08 12:55:05 +01:00
Matthias Radestock
c720ebec02
Merge pull request #2502 from weaveworks/issues/2469-supply-subnet
...
Pass in default subnet when creating 'weave' plugin network.
Fixes #2469 .
2016-09-08 12:49:01 +01:00
Matthias Radestock
6a528409ab
Merge pull request #2504 from weaveworks/check-tx-off
...
Check current tx value before trying to set it
2016-09-08 12:32:15 +01:00
Bryan Boreham
c69e140e9e
Check current tx value before trying to set it
2016-09-08 10:20:35 +01:00
Anita Buehrle
8ed0c13645
removed broken link
2016-09-06 14:36:25 +01:00
Anita Buehrle
b635f9a994
fixed broken link to command line args
2016-09-06 14:36:25 +01:00
Bryan Boreham
ac4246e1f5
Pass in default subnet when creating 'weave' plugin network.
...
New behaviour in Docker 1.12 means it disregards a plugin-supplied
address pool that overlaps an existing route, which causes a hang as
noted in #2469 . When we pass in the subnet, Docker believes we really
do want that address range and avoids the hang.
2016-09-06 12:05:51 +01:00
Martynas Pumputis
06a325a05f
Use weaveworks/docker/pkg/mflag everywhere
2016-09-05 17:22:28 +03:00
Martynas Pumputis
68e9bbe350
Add github.com/weaveworks/docker submodule
2016-09-05 16:16:06 +03:00
Matthias Radestock
3bd9e369cd
Merge branch '1.6'
2016-09-05 12:51:30 +01:00
Matthias Radestock
3d12e8088e
Merge pull request #2491 from weaveworks/switch-ci-14.04
...
Switch CircleCI build VM to 14.04
2016-09-05 12:49:25 +01:00
Martynas Pumputis
aee35b34fe
Pin joffrey/docker-py image to 1.8.1 vsn
...
The latest image requires 1.12.x dockerd.
2016-09-05 14:30:49 +03:00
Martynas Pumputis
c06ccb3b0d
Change owner of /usr/local/go on build VM
...
Otherwise "go get -tags netgo" fails with the permission denied error.
2016-09-05 14:30:49 +03:00
Martynas Pumputis
268bb656fc
Do not fetch Google Cloud SDK
...
As it is already installed on CircleCI 14.04 build VMs
2016-09-05 14:30:49 +03:00
Martynas Pumputis
57357a728c
Merge branch '1.6'
2016-09-05 13:48:30 +03:00
Martynas Pumputis
a335c419ec
Fix typo
2016-09-05 13:27:49 +03:00
Martynas Pumputis
e263295720
Revert "Do not fetch Google Cloud SDK"
...
This reverts commit f557835ad0 .
2016-08-26 14:42:50 +01:00
Martynas Pumputis
0c854f2144
Merge pull request #2489 from weaveworks/fix-mflag-missing
...
Use mflag package from weaveworks fork until we find a better solution
2016-08-26 12:19:59 +01:00
Alfonso Acosta
bdf4debdfd
Use mflag package from weaveworks fork until we find a better solution
2016-08-26 11:07:21 +00:00
Martynas Pumputis
f557835ad0
Do not fetch Google Cloud SDK
...
As it is already installed on CircleCI 14.04 build VMs
2016-08-26 11:38:37 +01:00
Martynas Pumputis
17a7391086
Remove unused functions
2016-08-26 10:15:27 +01:00
Martynas Pumputis
e65293eb50
Merge branch '1.6'
2016-08-19 14:12:26 +01:00
Martynas Pumputis
48c9547943
Update CHANGELOG.md
2016-08-19 14:11:57 +01:00
Martynas Pumputis
caa6c6c931
Merge branch '1.6'
2016-08-19 11:22:07 +01:00
Adam Harrison
2e825242cd
Merge branch '1.6'
2016-08-18 11:32:43 +01:00
Adam Harrison
027064cbdb
Merge branch '1.6'
2016-08-18 10:56:03 +01:00
Martynas Pumputis
060f6392c7
Merge branch '1.6'
2016-08-16 18:03:00 +01:00
Bryan Boreham
a466f55d59
Merge pull request #2462 from weaveworks/note-proxy-file
...
added note about net flag
2016-08-12 16:55:57 +01:00
Adam Harrison
f686408808
Merge branch '1.6'
2016-08-10 14:44:25 +01:00
Adam Harrison
b8c57ef10f
Merge branch '1.6'
2016-08-10 13:58:53 +01:00
Adam Harrison
5cc0826ca0
Merge branch '1.6'
2016-08-10 13:16:24 +01:00
Adam Harrison
e703f2f3f2
Merge branch '1.6'
2016-08-10 11:48:31 +01:00
Adam Harrison
f544da9e19
Merge branch '1.6'
2016-08-10 10:18:01 +01:00
Adam Harrison
472eab2acd
Merge pull request #2466 from weaveworks/issues/2464-enable-create-bridge
...
Re-enable 'weave create-bridge' in fastdp mode.
2016-08-10 09:57:40 +01:00
Bryan Boreham
7a5d7fca6c
Allow 'weave create-bridge', if the user insists.
...
For example this is used when setting up CNI for Kubernetes, in
an environment where we know none of the bad consequences apply.
2016-08-08 17:20:25 +01:00
Bryan Boreham
589b45dace
Merge branch '1.6'
2016-08-03 14:34:49 +01:00
Anita Buehrle
3273d13666
gave points numbers for clarity
2016-08-02 16:40:16 -05:00
abuehrle
5fdbbf3722
wording formatting
2016-08-02 16:38:41 -05:00
abuehrle
14350ff463
added anchor to attaching containers
2016-08-02 16:35:52 -05:00
abuehrle
0b49c961a7
reconfigured note to include additional method
2016-08-02 16:30:32 -05:00
abuehrle
39b80f26ed
made terminology consistent
2016-08-02 13:15:17 -05:00
abuehrle
74b20265e4
fixed links and some titles
2016-08-02 12:59:27 -05:00
abuehrle
358fddb958
fixed broken link and title
2016-08-02 12:52:36 -05:00
abuehrle
5c8f6175b5
added note about net flag
2016-08-02 12:34:52 -05:00
Adam Harrison
83ce5875ee
Merge branch '1.6'
2016-07-28 12:52:53 +01:00
Adam Harrison
f5a30c790e
Merge branch '1.6'
2016-07-28 11:30:47 +01:00
Martynas Pumputis
34415c3c17
Merge pull request #2422 from weaveworks/log-resolvconf-errors
...
Log errors arising from reading resolv.conf
2016-07-26 18:01:33 +01:00
Matthias Radestock
6387fa8bc9
Merge branch '1.6'
2016-07-20 07:30:56 +01:00
Adam Harrison
8ec6b699b1
Merge branch '1.6'
2016-07-18 11:48:08 +01:00
Matthias Radestock
551f164ec3
Merge branch '1.6'
2016-07-12 20:47:23 +01:00
Bryan Boreham
88bf64722f
Merge branch '1.6'
2016-07-12 10:33:38 +00:00
Matthias Radestock
d9c998b5c4
Merge pull request #2386 from weaveworks/issues/354-multicast-isolation
...
Provide multicast isolation with in-container-netns iptables rules
Fixes #354 .
2016-07-12 09:46:14 +01:00
Adam Harrison
170e19c283
Merge branch '1.6'
2016-07-12 09:39:45 +01:00
Bryan Boreham
7c47a8ffb7
Log errors arising from reading resolv.conf
2016-07-11 12:08:04 +01:00
Matthias Radestock
791ab55875
Merge branch '1.6'
2016-07-09 05:42:02 +01:00
Bryan Boreham
bd1a9d020c
Merge branch '1.6'
2016-07-07 11:20:50 +00:00
Martynas Pumputis
71fd3b6b2b
Merge remote-tracking branch 'origin/1.6'
2016-07-05 17:37:50 +01:00
Bryan Boreham
f8ac27a6cc
Merge branch '1.6'
2016-07-05 13:22:25 +01:00
Matthias Radestock
954cd0b86a
Merge branch '1.6'
2016-07-04 16:27:59 +01:00
Matthias Radestock
9dedeadf15
Merge branch '1.6'
2016-07-04 16:22:42 +01:00
Matthias Radestock
6561272f8d
Merge branch '1.6'
2016-07-04 16:20:37 +01:00
Matthias Radestock
881e795db5
correct RFC3484 address selection caveat ( #2407 )
...
and move it to a more prominent location
Fixes #1710
2016-07-04 16:19:20 +01:00
Matthias Radestock
4216231ec7
Merge branch '1.6'
2016-07-04 14:30:03 +01:00
Matthias Radestock
333d5f7511
Merge pull request #2412 from weaveworks/1803-plugin-create
...
Refactor plugin to create veths in CreateEndpoint
Fixes #1803 .
2016-07-04 12:19:01 +01:00
Matthias Radestock
7be7945b29
Merge branch '1.6'
2016-07-04 10:08:43 +01:00
Bryan Boreham
afe882cd94
Use more chars from endpointID to reduce clashes in veth names
...
Import library to get max name length IFNAMSIZ
2016-07-01 16:05:02 +01:00
Matthias Radestock
5b8a359475
Merge branch '1.6'
2016-07-01 10:31:39 +01:00
Matthias Radestock
df0af203f8
Merge pull request #2416 from weaveworks/issues/2293-warn-router-down
...
Check that weave router is running before launching plugin
Fixes #2293 .
2016-07-01 10:24:15 +01:00
Matthias Radestock
5b2a4ff614
Merge branch '1.6'
2016-06-29 20:12:58 +01:00
Bryan Boreham
ceb5f8c714
Move endpoint creation into CreateEndpoint so we can return the MAC address
2016-06-29 17:38:07 +01:00
Bryan Boreham
cc3359dfe5
Merge branch '1.6'
2016-06-29 14:42:17 +01:00
Matthias Radestock
cda6785f1d
Merge remote-tracking branch 'upstream/master'
2016-06-29 05:58:29 +01:00
Matthias Radestock
cb030be4ad
Merge branch '1.6'
2016-06-29 05:57:01 +01:00
Bryan Boreham
b464ce86f7
Merge branch '1.6'
2016-06-28 13:36:10 +00:00
Adam Harrison
80b3514e24
Merge branch '1.6'
2016-06-20 16:29:29 +01:00
Adam Harrison
e33f56f9b0
Merge branch '1.6'
2016-06-20 14:53:03 +01:00
Adam Harrison
f386548890
Maintain per-subnet ACCEPT rule for multicast ingress
2016-06-17 17:19:52 +01:00
Adam Harrison
c80d87554a
Maintain per-interface DROP rule for multicast ingress
2016-06-17 16:10:13 +01:00