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
7ebf3d7a88
Don't crash when dockerCli is nil
2016-08-03 14:28:05 +01:00
Adam Harrison
0c14e5135a
Delint (spelling error)
2016-07-28 11:48:14 +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
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
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
Bryan Boreham
e5c23bf9f5
Don't crash if docker API is disabled by params
2016-07-05 13:02:59 +01:00
Bryan Boreham
d72d3af36e
Remove deprecated -awsvpc option
2016-06-28 13:35:47 +00: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
Matthias Radestock
b00e7d088e
Merge pull request #2372 from weaveworks/issues/2310-more-checkpoint
...
Add kernel version, Docker version and awsvpc setting to checkpoint info
Fixes #2310
2016-06-20 03:15:25 +01:00
Matthias Radestock
0abfdf4efb
Merge branch '1.5'
2016-06-17 15:07:34 +01:00
Bryan Boreham
ddd039761d
Handle Docker daemon named 'dockerd'
2016-06-17 13:05:35 +01:00
Adam Harrison
f4798fadf8
Merge pull request #2374 from weaveworks/issues/1726-plugin-arp
...
Perform arp configuration for plugin-connected containers
2016-06-17 10:19:53 +01:00
Adam Harrison
27e7ec08d4
Observe resolv.conf changes
2016-06-16 16:55:40 +01:00
Bryan Boreham
c71c630cf6
Use driver name to detect 'our' endpoints
...
so we don't have to remember all the endpoint IDs, or load them up
after a restart.
2016-06-14 17:52:45 +01:00
Bryan Boreham
1fe5c65fd4
Add kernel version, Docker version and awsvpc setting to checkpoint info
2016-06-14 12:24:37 +01:00
Bryan Boreham
e1edce84d9
Extract checkForUpdates to its own file
2016-06-14 10:33:46 +01:00
Bryan Boreham
b32da8d69f
Report a couple of options that are incompatible with --awsvpc
2016-06-13 16:53:27 +01:00
Bryan Boreham
37fd54f20b
Perform AWSVPC checks for attach in script rather than in weaveutil
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
Matthias Radestock
7ffbeead8d
Merge pull request #2327 from weaveworks/issues/1960-mcast-option
...
Add an option to disable multicast route per-network
Fixes #1960 .
2016-06-06 15:49:09 +01:00
Adam Harrison
9b6154cf63
Merge pull request #2331 from weaveworks/issues/2320-plugin-warning
...
Augment warning on active plugin endpoints
2016-06-03 16:17:31 +01:00
Adam Harrison
4b758dd130
Implement weave launch --resume
2016-06-03 13:53:07 +01:00
Bryan Boreham
cbf4a0facd
Move warning on plugin active into Go code
2016-06-02 17:19:51 +01:00
Bryan Boreham
a1c3cba363
Invert multicast option in plugin
...
Now it's off by default, and there is an option to enable the
multicast route per-network.
We turn it on for the `weave` network created when we start the plugin.
2016-06-02 12:52:30 +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
Adam Harrison
f02b78ed73
Merge branch '1.5'
...
Closes #2282
2016-05-26 16:16:54 +01:00
Bryan Boreham
cda1084777
Check validity of IP subnets
...
Be more consistent about this - check in the same way whether at startup
or during allocation.
2016-05-26 14:31:17 +00:00
Bryan Boreham
2702b85ee5
Improve veth name construction; use a constant instead of "ethwe"
2016-05-25 17:34:13 +01:00
Bryan Boreham
161446d55d
Move error detection for attach() into Go
2016-05-25 17:34:13 +01:00
Bryan Boreham
ac14b19db8
Move attach() and detach() from shell script to Go
2016-05-25 17:34:13 +01:00
Matthias Radestock
ac0f284c5f
Merge branch '1.5'
2016-05-07 14:43:04 +01:00
Adam Harrison
260b416cd7
Include interface name in container-addrs output
2016-05-06 14:12:50 +01:00
Matthias Radestock
b6647741b5
Merge pull request #2162 from weaveworks/issues/2034-log-rest-api
...
Add LogHandler for logging REST API calls at server side
Fixes #2034
2016-05-04 12:39:11 +01:00
Martynas Pumputis
9dd1fbba39
Add LoggingHTTPHandler for logging REST requests at the server-side
2016-05-03 15:40:37 +01:00
Matthias Radestock
03afb54cdd
remove cruft
2016-04-29 10:03:23 +01:00
Adam Harrison
e6f031a3c9
Merge pull request #2218 from weaveworks/1.6-upgradeathon
...
Upgrade vendored libs
2016-04-28 10:13:44 +01:00
Matthias Radestock
7cc2a1fe38
refactor: more descriptive function name
2016-04-26 17:33:04 +01:00
Bryan Boreham
15054393fb
Update profile package to latest version
2016-04-26 14:57:04 +01:00
Martynas Pumputis
849edb1768
Add allocator.PeerGone
...
The function is registered within the mesh gc and it is responsible
for removing gone nicknames (#2057 ).
2016-04-22 17:29:27 +01:00
Adam Harrison
b9340ada3e
Improve IPAM status wording
2016-04-15 13:39:55 +01:00
Bryan Boreham
02516361c7
Merge pull request #2155 from weaveworks/issues/2065-rationalise-ipam-concepts
...
Rationalise IPAM concepts
2016-04-14 17:33:27 +01:00
Adam Harrison
c3ecbc9d48
Implement unified --ipalloc-init parameter
2016-04-14 12:46:03 +01:00
Bryan Boreham
358342aa4f
Use a data volume container for BoltDB files.
...
We provide a very small image to use for this container.
Also we add an empty weavedata.db file to weave image so it doesn't crash when run without volume override
2016-04-13 16:07:55 +01:00
Martynas Pumputis
928a693491
Extend version summary in the weave status report
...
The extended version summary includes info about a new available
version in the case the checkpoint is enabled.
2016-04-12 22:32:18 +01:00
Bryan Boreham
c12a52d20e
Better log and status messages for Paxos observer
2016-04-07 12:50:52 +01:00
Bryan Boreham
b7d49cdeb7
Merge pull request #2117 from weaveworks/2113-wait-for-dp
...
wait for datapath device to be ready
2016-04-01 12:13:21 +02:00