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
Bryan Boreham
03d9e3db69
weaveutil now depends on plugin code
2016-11-10 17:04:10 +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
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
Bryan Boreham
e117a6bd04
Have 'weave reset' remove NPC rules
2016-11-03 14:24:26 +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
Bryan Boreham
eb60f68df2
Report metrics on all connection states
2016-11-02 09:51: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
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
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
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
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
Bryan Boreham
4d8a40c0b5
Reduce metrics mechanism to just support fastdp
2016-10-21 14:44:12 +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
Bryan Boreham
b38a55ca7c
Include more context in error messages from CNI operations
2016-10-18 17:45:09 +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
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
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
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
Bryan Boreham
370f258c3a
Fix outdated option ipam-seed
2016-09-16 15:53:43 -07:00
Bryan Boreham
c69e140e9e
Check current tx value before trying to set it
2016-09-08 10:20:35 +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
Bryan Boreham
3162009325
Refactor: move bridge veth creation into 'init_bridge'
2016-08-17 17:33:34 +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
Bryan Boreham
c79b6a8bd7
Merge pull request #2460 from weaveworks/issues/2427-detect-peerid-clashes
...
Detect and report peer name collisions
2016-08-12 16:52:56 +01:00
Bryan Boreham
0cbf5ca130
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-10 10:00:17 +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
081b95dfd0
CNI plugin assigns an IP to the bridge by itself
...
No need to call `weave expose` before use.
2016-08-08 15:28:26 +01:00
Bryan Boreham
38958049f4
Remove -f flag from 'docker tag' commands
...
This flag was deprecated in Docker 1.10 and removed in Docker 1.12.
2016-08-04 17:03:35 +01:00
Bryan Boreham
589b45dace
Merge branch '1.6'
2016-08-03 14:34:49 +01:00
Bryan Boreham
7ebf3d7a88
Don't crash when dockerCli is nil
2016-08-03 14:28:05 +01:00
Bryan Boreham
88bf64722f
Merge branch '1.6'
2016-07-12 10:33:38 +00:00
Bryan Boreham
c1483dbf1f
Merge pull request #2418 from weaveworks/issues/2388-weave-ps
...
Fix "weave ps"; fixes #2388
2016-07-12 11:04:00 +01:00
Bryan Boreham
7c47a8ffb7
Log errors arising from reading resolv.conf
2016-07-11 12:08:04 +01:00
Bryan Boreham
bd1a9d020c
Merge branch '1.6'
2016-07-07 11:20:50 +00:00
Bryan Boreham
f8ac27a6cc
Merge branch '1.6'
2016-07-05 13:22:25 +01:00
Bryan Boreham
e5c23bf9f5
Don't crash if docker API is disabled by params
2016-07-05 13:02:59 +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
Bryan Boreham
53b8c804f2
Launch the whole of weave to avoid tripping over plugin-only test
2016-07-01 10:17:05 +01:00
Bryan Boreham
7d0aaea6e8
Move 'ODP miss' log from every miss to specific places
...
Added log lines for packets that we will broadcast;
Added log lines for flows we don't know how to handle;
Moved the line for when we expect to insert a flow down to the miss-handler;
Packets handled by the bridge already have their own logging via --pktdebug
2016-07-01 10:12:53 +01:00
Bryan Boreham
45a66ac517
Extend 'mac associated with other peer' error info
2016-06-30 18:02:39 +01:00
Bryan Boreham
087d948941
Check that weave router is running before launching plugin
2016-06-30 12:02:52 +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
Bryan Boreham
f1ca4854b8
Merge pull request #2409 from weaveworks/issues/2381-awsvpc-fix-attach-router
...
Fix re-attaching of weave router in awsvpc mode
2016-06-29 14:41:14 +01:00
Bryan Boreham
b464ce86f7
Merge branch '1.6'
2016-06-28 13:36:10 +00:00
Bryan Boreham
d72d3af36e
Remove deprecated -awsvpc option
2016-06-28 13:35:47 +00:00
Bryan Boreham
c12e909882
Document what is sent in checkpoint request
2016-06-20 03:13:10 +01:00
Bryan Boreham
f86ade6568
Squash up the code via 'defer'
2016-06-17 16:52:17 +01:00
Bryan Boreham
81fa4059df
Use buffered writer for http headers
2016-06-17 16:52:17 +01:00
Bryan Boreham
63314beb2a
Remove plugin sockets in 'weave reset'
2016-06-17 15:17:13 +01:00
Bryan Boreham
2d0be34a93
Fix check to see if plugin is running
2016-06-17 15:17:13 +01:00
Bryan Boreham
56c275a9bf
Copy Docker's response code through for raw stream.
...
This means when Docker says "101 UPGRADED" the proxy will say the
same, instead of "200 OK". Docker 1.12 barfs if you do that.
2016-06-17 13:07:04 +01:00
Bryan Boreham
ddd039761d
Handle Docker daemon named 'dockerd'
2016-06-17 13:05:35 +01:00
Bryan Boreham
adda1c459c
Fix plugin filter - truncate Docker ID to 12 chars
2016-06-16 18:03:45 +01:00
Bryan Boreham
7182ec0463
Merge pull request #2338 from weaveworks/awsvpc-docs
...
awsvpc docs
2016-06-15 16:59:54 +01:00
Bryan Boreham
425f17aab1
Mention that 'weave launch' now waits
2016-06-15 16:58:05 +01:00
Bryan Boreham
3494cc39c1
Expand description surrounding link to awsvpc mode
2016-06-15 16:58:05 +01:00
Bryan Boreham
2face0f318
Publish weavedb container from release script
2016-06-15 15:50:37 +01:00
Bryan Boreham
bb203a2d18
Merge branch '1.5'
2016-06-15 13:50:47 +01:00
Bryan Boreham
95b42a532a
Merge pull request #2367 from weaveworks/issues/2290-own-image
...
Use our own ubuntu image
2016-06-15 13:50:26 +01:00
Bryan Boreham
08e2c5c14e
Fix link for 'docker run' docs
2016-06-15 13:48:25 +01:00