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
Martynas Pumputis
d3795d4e74
Merge pull request #2774 from weaveworks/update-ipam-doc
...
Update IPAM documentation.
2017-02-16 12:09:08 +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
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
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
Martynas Pumputis
86f716c38c
Add fastdp-crypto docs
2017-02-10 14:49:47 +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
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
Martynas Pumputis
dff5b6d3f1
Merge pull request #2694 from weaveworks/2647-testing-mvp
...
Testing MVP
Fixes #2647
2017-02-08 16:25:56 +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
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
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
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
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
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
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
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
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
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
Martynas Pumputis
bb639dbf32
Merge pull request #2585 from weaveworks/merge-weave-npc
...
Merge weave npc
2016-11-02 11:58:43 +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
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
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
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
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
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
Martynas Pumputis
523a964ac8
Merge pull request #2547 from weaveworks/prometheus-metrics
...
Prometheus metrics
2016-10-21 14:57:42 +01:00
Martynas Pumputis
9754da15d6
Encode "list-netdevs" output in JSON
2016-10-20 18:18:57 +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
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
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
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
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
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
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
Martynas Pumputis
11f56031f1
Add release v1.6.1
2016-08-18 17:39:46 +01:00
Martynas Pumputis
c2083cbce0
Derive the bridge MAC from concatenated multiple sources
...
The sources include:
- /etc/machine-id (generated by "systemd-machine-id-setup") or
/var/lib/dbus/machine-id (generated by "dbus-uuidgen").
- /sys/class/dmi/id/product_uuid.
- /sys/hypervisor/uuid.
The product of the concatenation should produce an unique identifier
which is stable across reboots.
2016-08-11 12:01:35 +01:00
Martynas Pumputis
4157d9298d
Update vendored weaveworks/mesh
2016-08-11 12:01:20 +01:00
Martynas Pumputis
e8d823d66b
Do not fail launching the proxy if unable to detect dockerd
2016-07-28 12:53:44 +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
Martynas Pumputis
fd0a7efa23
Fix "weave ps" output when weave is not running
...
The #2418 has changed a behaviour of "weave ps" which outputs
"Link not found" in the case of weave not running. The previous
behaviour was to output an empty line.
2016-07-14 15:15:14 +01:00
Martynas Pumputis
71fd3b6b2b
Merge remote-tracking branch 'origin/1.6'
2016-07-05 17:37:50 +01:00
Martynas Pumputis
93c60395f6
Merge pull request #2417 from weaveworks/issues/1852-less-logging
...
Move 'ODP miss' log from every miss to specific places
Fixes #1852
2016-07-05 17:34:57 +01:00
Martynas Pumputis
0861d05522
Address PR comments
...
- Do not re-enter the root netns when querying weave bridge.
- Enter the root netns when constructing the predicate.
2016-07-05 15:12:39 +01:00
Martynas Pumputis
89221f117b
Denote WithNetNS* functions with unsafe
...
Please see https://github.com/weaveworks/weave/issues/2388#issuecomment-228365069
for more details.
2016-07-05 15:12:39 +01:00
Martynas Pumputis
7f5c37ef1e
Fix "weave ps"
...
Make sure that any network namespace changes happens at the end of
the cmd invocation. Otherwise, we are risking to end up in a situation
in which OS scheduling threads are in a "wrong" namespace.
See WithNetNS for more details.
2016-07-05 15:12:39 +01:00
Martynas Pumputis
05baa566c6
Refactor common.GetBridgeNetDev
...
- Optimize. Use LinkByName instead of iterating over list of available
links. Linux does not support interfaces with the same names.
- Remove unnecessary indirection in utility functions which return
common.NetDev.
2016-07-05 15:12:39 +01:00
Martynas Pumputis
6319860230
Change the order of awsvpc initialization
...
We want to setup the necessary arp settings as soon as possible
and before we re-insert DNS entries. Otherwise, the announced
containers might not be reachable.
Also, do not try to reclaim for weave:expose inside populate_router,
because we do expose before calling it.
2016-06-29 11:15:56 +01:00
Martynas Pumputis
58caf38f07
Fix re-attaching of weave router in awsvpc mode
...
In order to re-attach the router and make it work in awsvpc mode,
the following has to be done:
- expose_ip on the router
- adjusting arp settings
- restoring host routes
To detect that we run in awsvpc mode, we inspect cmd parameters
of the weave router instead of GET'ing /ipinfo/tracker. This is so,
because the HTTP server started by the router might not be running
at the time of restoration.
2016-06-29 11:15:49 +01:00
Martynas Pumputis
804f4ad971
Add check-datapath to weaveutil
...
The utility is used to check whether a datapath can be created.
2016-06-20 03:24:30 +01:00
Martynas Pumputis
24d9a00f47
Add check-datapath to weaveutil
...
The utility is used to check whether a datapath can be created.
2016-06-20 03:20:46 +01:00
Martynas Pumputis
85c1a31e5c
Merge pull request #2383 from weaveworks/proxy-buffer
...
Use buffered writer for http headers
2016-06-17 17:29:39 +01:00
Martynas Pumputis
73a393823a
Merge pull request #2370 from weaveworks/awsvpc-clashes
...
Report a couple of options that are incompatible with --awsvpc
2016-06-14 10:12:37 +01:00
Martynas Pumputis
df5508c0f3
Check CIDRs before attaching a container in proxy
...
If any cidr is invalid, a user will get the following error:
"docker: Error response from daemon: invalid WEAVE_CIDR: $CIDR".
2016-06-13 14:54:16 +01:00
Martynas Pumputis
8569cbd4a3
Force transferring of IPAM ranges in a case of Shutdown
...
If no peer for transfer is found, we transfer them to
mesh.UnknownPeerName to notify the ring update tracker.
Makes the awsvpc tracker to remove local entries from
the VPC route table when the last peer calls "weave reset".
2016-06-10 11:51:31 +01:00
Martynas Pumputis
fb9b4ddec0
Enable AWSVPC
...
This requires the following additional steps:
- Setting proxy_arp on on the bridge, because that's how we do
the routing (check the comment at the place where we set it on).
- Disable ARP requests queueing, because it introduces unnecessary
delay for the first ARP request resulting in a high latency of
the first packet (on t2.micro machines I've encountered ~700ms
latency). Also, the queue is bounded, so we might risking to drop
the requests.
2016-06-08 16:44:54 +01:00
Martynas Pumputis
7670fed72c
Add AWSVPC setup routines to the attach script
...
When running in the AWSVPC mode, we need to do the following:
- Keep the HW TX offloading on.
- Check that the allocated address belongs to the default subnet,
because only one subnet is allowed and it should be the default one.
If it is not possible to determine whether AWSVPC is on, we ignore
all the steps, because the attachment routines have to work
regardless whether the router is running and the AWSVPC detection
is done by querying the /ipinfo/tracker endpoint served by
the router.
2016-06-08 16:44:54 +01:00
Martynas Pumputis
de2a70861c
Add GET /ipinfo/tracker
...
The endpoint returns the name of tracker. It is used to determine
whether the router is running a tracker.
2016-06-08 16:44:54 +01:00
Martynas Pumputis
9fc7be83c8
Create a Tracker when starting the router
...
The tracker's HandleUpdate method is called by the ring update routines.
In addition, we add a dummy overlay for AWSVPC to make `weave (status|
report)` to produce reasonable reports which includes AWS hosts
connection state.
2016-06-08 16:44:54 +01:00
Martynas Pumputis
c260536429
Add AWSVPC Tracker
...
The tracker is responsible for managing the AWSVPC route tables
which is used to implement the underlay routing based on VPC.
2016-06-08 16:44:54 +01:00
Martynas Pumputis
59b3a3c8c5
Add the Tracker interface
...
An instance of the interface must implement the HandleUpdate method
which (in the future) will be called when any change to the IPAM ring
occurs.
2016-06-08 16:44:54 +01:00
Martynas Pumputis
49f2e208c3
Make ClaimForPeers to claim CIDR-aligned ranges
2016-06-08 16:44:54 +01:00
Martynas Pumputis
2266868648
Add the range.CIDRs functions
2016-06-08 16:44:54 +01:00
Martynas Pumputis
f50fbc002e
Change ipam Universe from Range to CIDR
...
There was no code to initialize it as anything else, and this lets us
bake in an assumption that it will always be a CIDR.
2016-06-01 17:06:31 +01:00
Martynas Pumputis
f0109c1920
Merge pull request #2307 from weaveworks/issues/1940-remove-proxy-attach-dep
...
Move container attachment from sh to Go
2016-05-26 10:11:02 +01:00
Martynas Pumputis
c63619bf7d
Merge remote-tracking branch 'origin/1.5'
2016-05-25 17:09:48 +01:00
Martynas Pumputis
d9d1956e0c
Merge pull request #2313 from weaveworks/cni-gratuitous-arp
...
Send out arp update from CNI plugin
2016-05-25 17:06:10 +01:00