Tom Wilkie
c06d4d1b00
Add GET /ip handler to return all IPAM mappings.
2017-03-10 11:39:47 +00:00
Tom Wilkie
203a3cfdd1
Remove test runner; it now live in build-tools.git
2015-10-23 13:02:00 +00:00
Tom Wilkie
5b8ce8ebae
Expose some tls functions from the proxy for use elsewhere.
2015-10-13 14:56:11 +00:00
Tom Wilkie
e5316221bb
Review feedback
2015-10-01 14:14:15 +00:00
Tom Wilkie
357174e351
DNS lookups should not be case sensitive.
...
- On-the-wire gossip messages are sorted case sensitive, but in memory they are sorted case-insensitive.
- Add test for case insensitive match on multiple names.
2015-10-01 12:19:49 +00:00
Tom Wilkie
5fc2f3236e
Build GCE template on demand
2015-10-01 11:49:31 +00:00
Tom Wilkie
58dec7334b
Merge branch '1.1'
2015-10-01 08:23:15 +00:00
Tom Wilkie
0b7af28c86
Typo in Makefile.
2015-10-01 08:21:55 +00:00
Tom Wilkie
11d93b1883
Fix races in TestRecursiveCompress
2015-09-30 15:51:07 +00:00
Tom Wilkie
19cb1ae8e1
Merge branch '1.1'
2015-09-30 15:06:26 +00:00
Tom Wilkie
db46204ff9
Disable 160_claim test.
2015-09-30 14:22:24 +00:00
Tom Wilkie
f3dc681f61
Only clean weave packages.
2015-09-30 10:15:50 +00:00
Tom Wilkie
62f62e1fd5
tools.git is now called build-tools.git
2015-09-30 08:21:19 +00:00
Tom Wilkie
f3360e61e1
Remove cover tool, this lives in tools.git now.
2015-09-30 08:21:12 +00:00
Tom Wilkie
5208dcd67e
Review feedback
...
- Use git submodule for tools.
- Update Makefile to use submodules.
- Put submodule at tools/
- Tidy up some obsolete references to tools in .gitignore.
2015-09-30 08:21:08 +00:00
Tom Wilkie
6f7d4a7a01
Use lint from tools.git
...
- Do lint first, on circle.
2015-09-30 08:20:56 +00:00
Tom Wilkie
958a3bbd99
Use test script from tools.git
2015-09-30 07:42:43 +00:00
Tom Wilkie
5e7b527af2
Make publish from the right place.
2015-09-29 11:02:46 +00:00
Tom Wilkie
50cd716220
Review feedback.
2015-09-29 07:46:00 +00:00
Tom Wilkie
2b4fd738da
Review feedback
2015-09-28 09:05:10 +00:00
Tom Wilkie
f9de6df426
Publish latest images from CI on successful builds.
...
This time rebuild without insturmentation first.
2015-09-28 08:27:21 +00:00
Tom Wilkie
8ee409d9bd
Run tests in a separate container.
2015-09-25 06:19:00 +00:00
Tom Wilkie
b31eb3db82
Merge remote-tracking branch 'upstream/1.1'
2015-09-24 03:54:09 +00:00
Tom Wilkie
011f96c6a7
New test image using docker 1.8
2015-09-24 03:42:44 +00:00
Tom Wilkie
c7b4136d31
Update for docker/machine PR #1729
2015-09-24 03:25:30 +00:00
Tom Wilkie
6e06ce2af1
New test image using docker 1.8
2015-09-22 05:31:26 +00:00
Tom Wilkie
5860492a38
Make weave build under go1.5; use our build flags for go get, and force stuff to be static.
2015-09-07 14:45:17 +00:00
Tom Wilkie
95379b0c5a
Add works.weave.role=system label to weave containers.
2015-08-27 12:22:34 +00:00
Tom Wilkie
914c88454d
Review feedback
2015-08-25 16:53:21 +00:00
Tom Wilkie
46363f4129
Make reverse dns lookups honor tombstones.
2015-08-25 12:01:09 +00:00
Tom Wilkie
58ae0cd113
Pass docker bridge ip to dns server, and filter it out of upstream dns ips.
2015-08-24 16:00:26 +00:00
Tom Wilkie
4809c113b3
Update comment.
2015-08-24 15:43:31 +00:00
Tom Wilkie
8516ab7c69
Unify logic to tell if DNS response is too big.
2015-08-21 12:39:12 +00:00
Tom Wilkie
8a7821a15b
Publish latest images from CI on successful builds.
2015-08-20 14:20:32 +00:00
Tom Wilkie
67f974923b
Test for recursive DNS queries & compression.
...
Note this doesn't test the golang resolver, where the original error
was found, as I can't find a way to point the golang resolver at a
custom dns server during a test. It does check that a compressed
response from an upstream server is correctly handled.
2015-08-17 18:25:36 +01:00
Tom Wilkie
4f00dab4c4
Compress recursive answers if they are too big.
2015-08-17 18:25:26 +01:00
Tom Wilkie
d220542491
Add sudo apt-get update to circle.yml
2015-08-17 13:37:41 +00:00
Tom Wilkie
5fbcb3f905
Add sudo apt-get update to circle.yml
2015-08-17 08:49:40 +00:00
Tom Wilkie
45293fdcac
Move ListVar into common, so it can be reused elsewhere.
2015-08-12 11:35:57 +00:00
Tom Wilkie
6a5044fc70
Make nameserver logging more consistent.
2015-08-11 11:32:19 +00:00
Tom Wilkie
7fa568872c
Ensure we delete the fqdn is the container fails to start.
2015-08-11 11:32:17 +00:00
Tom Wilkie
c2d5b35cd6
Add test for negative DNS queries
2015-08-10 13:13:12 +00:00
Tom Wilkie
073836905a
Return NXDOMAIN when we don't have entries, and drop the non-authoritative special case for recursive dns.
2015-08-10 12:19:21 +00:00
Tom Wilkie
f241e15ec1
Review feedback
2015-08-04 11:00:32 +00:00
Tom Wilkie
881ece3553
Add note to explain dns shuffle effects.
2015-08-04 10:47:36 +00:00
Tom Wilkie
a87be89095
Typos. Honestly
2015-07-30 11:07:17 +00:00
Tom Wilkie
5c9a13d343
Shard 600_proxy_docker_py into 4.
2015-07-30 10:38:02 +00:00
Tom Wilkie
bfe07fc71a
Give each shard 5 VMs
2015-07-30 10:32:16 +00:00
Tom Wilkie
fa95b67c92
Add summary to bottom of test runner output.
...
Also, don't sort tests by #hosts when run sequentially, and fix typo in run_all.sh.
Fixes #1240
2015-07-30 10:29:05 +00:00
Tom Wilkie
669a0db528
Run integration tests in parallel when possible.
2015-07-29 17:28:58 +00:00
Tom Wilkie
6fe69590c4
Add coverage to proxy for integration tests.
2015-07-29 12:06:29 +00:00
Tom Wilkie
4df3d7f150
Reduce the amount of parallelism in the ipam tests
2015-07-29 10:13:02 +00:00
Tom Wilkie
51128a6705
Parallelise the copying of /etc/hosts.
2015-07-29 09:58:51 +00:00
Tom Wilkie
e7676979ee
Parallelise the copying of imaages etc
2015-07-29 09:58:05 +00:00
Tom Wilkie
da36c78942
Reduce the number of times gcs.sh ssh's into the VMs
2015-07-29 09:41:57 +00:00
Tom Wilkie
db6ee9954c
Allow users to set dns listen address so we can run the weave router in the host net namespace.
2015-07-28 14:49:09 +00:00
Tom Wilkie
88144ac7f8
Review feedback
2015-07-28 14:16:38 +00:00
Tom Wilkie
da7ac78694
Don't try and init the ring if the IP address is not in our range.
2015-07-28 14:12:42 +00:00
Tom Wilkie
a12d63bb12
Make ipam test less stressful, so it doesn't timeout.
2015-07-22 12:53:27 +00:00
Tom Wilkie
062a25a032
Make unit test timeout 8mins.
2015-07-22 12:19:12 +00:00
Tom Wilkie
9e6d08c606
Put 2m timeout on all unit tests.
2015-07-22 11:56:39 +00:00
Tom Wilkie
2980586e76
Put timeout on nameserver test to try and expose #1203
2015-07-21 09:25:04 +00:00
Tom Wilkie
a9dae46110
When running unit tests, output coverage for imported modules.
2015-07-20 15:47:07 +00:00
Tom Wilkie
9131b46263
Flush gossip messages after each turn, to ensure there isn't a build up of pending messages.
2015-07-20 14:36:40 +00:00
Tom Wilkie
4e29dba5cd
Make Gossip DNS reject gossip messages if clockskew > tombstoneTimeout / 2
2015-07-20 13:12:07 +00:00
Tom Wilkie
1a4b38a10c
Don't delete all the non-tombstone entries every 10mins!
2015-07-20 12:03:46 +00:00
Tom Wilkie
9ab2da8deb
Add GET /name handler to return all dns entries (including tombstones) for debugging.
...
Also, make Address marshall into json as an IP string, not a number.
2015-07-20 12:03:33 +00:00
Tom Wilkie
5baddb83cb
Comment out failing test until we figure out what to do.
2015-07-20 09:45:02 +00:00
Tom Wilkie
a3d32068d2
Correctly stop the test gossip router to prevent complaints of data races in subsequent tests.
2015-07-17 13:48:39 +00:00
Tom Wilkie
25c9180fdf
Don't swallow errors in the docker client.
2015-07-17 12:35:12 +00:00
Tom Wilkie
66e58937ca
Make nameserver.checkAndPanic look for dups, call it more often.
2015-07-17 10:19:25 +00:00
Tom Wilkie
e2deff09a6
Nameserver: log when peer goes away.
2015-07-17 09:36:44 +00:00
Tom Wilkie
db77570779
Test is too long
2015-07-16 13:40:39 +00:00
Tom Wilkie
6e5995964d
Make 210_dns_cross_hosts_test.sh excercise gossip dns tombstones.
...
Also, make gce.sh less verbose, and do the env dance correctly.
2015-07-16 12:48:00 +00:00
Tom Wilkie
73210b6a70
Make sure DNS Gossip converges correctly.
...
- Abide by gossip interface (return nil, not empty gossip) so gossip converges!
- Make sure we don't say an old entry version is new to us; add some more tests.
- Add dns test for 3 (or N) hosts
- Extend mock gossip router to ensure reconsumption off diffs yield nil
- Don't increment version when re-adding existing entry.
2015-07-15 15:54:52 +00:00
Tom Wilkie
9df7358ded
Add pprof handler to weaver.
2015-07-15 15:10:22 +00:00
Tom Wilkie
91395d6728
Use Msg.Copy!
2015-07-15 11:05:36 +00:00
Tom Wilkie
fa73240812
Copy dns requests and give them a fresh id when doing recursive queries.
2015-07-14 16:44:21 +00:00
Tom Wilkie
361ed1b4a6
Resolve unqualified domains in the weave.local domain.
2015-07-14 16:05:41 +00:00
Tom Wilkie
8b061fd555
Gossip-based DNS embedded in the router.
...
- Nameserver holds a sorted list of (hostname, peer, container id, ip) tuples.
- Entries are gossiped using topology gossip / broadcast - only new/updated entries
are propogated as expected.
- Entries for a given peer are removed when the connection to the peer is lost.
- Entries are tombstoned when containers die. Tombstones are kept for 10mins,
as they do not need to survive partition, only gossip propagation delay.
2015-07-14 16:00:38 +00:00
Tom Wilkie
01f7201a9e
Remove legacy WeaveDNS code.
2015-07-14 16:00:28 +00:00
Tom Wilkie
f7739ef04c
Don't fail if docker rmi fails
2015-07-14 14:50:39 +00:00
Tom Wilkie
499d65e715
Build cover tool by default, and do go get -t for tests, irregardless of $SLOW
2015-07-14 10:50:34 +00:00
Tom Wilkie
13f1239a3e
Various improvements to unit test running
...
- units.sh should exit on error.
- Add race detector to unit test runner.
- Use local testing/cover/cover tool in gen_coverage_report.sh and units.sh
- Use the scheduler to parallelise the unit tests.
- Make test run id a string and differentiate between unit runs and integration runs in the scheduler.
- Pipe circle env vars through to build container so we can detect when to use the scheduler
- Add python requests to the weave build container.
- Quote test names in urls, make flask handle url segments with slashes in.
2015-07-13 09:33:52 +00:00
Tom Wilkie
32b2ec4038
Run unit tests in circle and include their coverage in the report. Report coveralls.io from Circle.
2015-07-10 18:19:50 +00:00
Tom Wilkie
f8718dcc5d
Remove duplication of coverage stanza in weave script.
2015-07-10 16:35:46 +00:00
Tom Wilkie
f5186e74c0
Review feedback
2015-07-10 15:33:00 +00:00
Tom Wilkie
bf814739ba
Reduce repetition in Makefile.
2015-07-10 15:03:54 +00:00
Tom Wilkie
00a7490a1d
Code coverage for smoke tests.
...
Allow non-circle people to build coverage reports.
2015-07-10 14:45:14 +00:00
Tom Wilkie
89ad7e1ba2
Move test gossip router out of ipam code for use in gossip dns code.
2015-07-08 15:03:13 +00:00
Tom Wilkie
c8718d85dc
Extend router/peers.go to allow multiple OnGC callbacks, and call the callbacks outside of the peers lock.
2015-07-08 14:47:02 +00:00
Tom Wilkie
56863c3d0e
Ensure bin/lint doesn't complain about removed files when used as a git precommit script.
2015-07-08 14:43:21 +00:00
Tom Wilkie
4fdb14293b
Move ipam/address to net/address
2015-07-07 10:33:20 +00:00
Tom Wilkie
c4565f6ed3
Make proxy listen on /var/run/weave.sock
2015-06-26 15:08:21 +00:00
Tom Wilkie
7780ac1078
Fix gce.sh destory timeouts.
2015-06-24 17:13:37 +00:00
Tom Wilkie
74c391f19c
Update gce.sh make_template command, and build a fresh template.
2015-06-23 14:48:48 +01:00
Tom Wilkie
3b4a47a961
Update gce.sh make_template command, and build a fresh template.
2015-06-23 13:07:09 +00:00
Tom Wilkie
332a1bf58d
Checkin the assert.sh script, so we can expose test run time.
2015-05-29 11:48:49 +00:00
Tom Wilkie
3642dc5514
Add some timeouts to the circle/gce tests.
2015-05-29 11:29:43 +00:00
Tom Wilkie
28781ef08c
Don't pull weavebuild container from docker hub if you don't have a cached version, build it.
2015-05-29 11:28:58 +00:00