Commit Graph
7356 Commits
Author SHA1 Message Date
Michael Bridgen 35c09f37b9 Added logging.go, required by prior changes 2014-10-20 18:27:24 +01:00
Michael Bridgen 55d21d0ec1 Replaced another log.Printf
(in a file I hadn't noticed)
2014-10-20 18:22:25 +01:00
Michael Bridgen 337919d741 Replaced ad-hoc printf with log levels 2014-10-20 18:18:16 +01:00
Michael Bridgen d3d07deec6 Changed local domain handling
1. The local domain is now ".weave.local", which is safer from TLD
 pollution
 2. If the name given for an IP isn't a subdomain of the local domain,
 ignore it
2014-10-20 18:11:14 +01:00
Bryan Boreham 1b0066cc98 Commented on stop-gap data structure 2014-10-20 17:51:00 +01:00
Bryan Boreham bce06d2e9b Wait for interface in main 2014-10-20 17:26:11 +01:00
Bryan Boreham b8a06521c0 Extract interface util functions to their own file 2014-10-20 17:21:35 +01:00
Bryan Boreham 3af058481e Support returning AAAA records from delegated DNS queries 2014-10-20 17:18:17 +01:00
Bryan Boreham 624db7bdff Replace hard-coded 4 with const for channel size 2014-10-20 16:59:39 +01:00
Bryan Boreham b2dc08fd25 forgot to remove 'dns' 2014-10-20 16:00:56 +01:00
Bryan Boreham 9cfb93ab7b Simplified algorithm in checkInFlightQueries() 2014-10-20 15:43:13 +01:00
Bryan Boreham 217e5e921e Extract checkInFlightQueries method 2014-10-20 15:19:11 +01:00
Bryan Boreham 81c5690329 Hoist WriteMsg calls up 2014-10-20 15:00:59 +01:00
Bryan Boreham dcce09de52 Clean up some code-review issues 2014-10-20 14:21:29 +01:00
Bryan Boreham 8e2af9eec5 Tidy up exported/non-exported fields 2014-10-20 12:41:40 +01:00
Michael Bridgen a3cede3027 Tidied up a few printfs 2014-10-17 15:24:51 +01:00
Michael Bridgen 9606628edd Merge pull request #129 from squaremo/use_lxc_docker
Switched to lxc-docker (from docker.io)
2014-10-17 15:16:50 +01:00
Michael Bridgen 380f2eb6b9 Switched to lxc-container (from docker.io)
lxc-docker is the docker-maintained package, which is rather more
current than the Ubuntu one.
2014-10-17 15:14:24 +01:00
Bryan Boreham fe236e95db Work round change in Docker 1.3 where 'Pulling' messages are included in 'docker run' output 2014-10-17 12:38:37 +01:00
Michael Bridgen 9d1f2023b5 Documented the more egregious limitations 2014-10-17 12:29:43 +01:00
Michael Bridgen 8c0c252bf7 Made watch=true the default
It's now left out of the entrypoint arguments, so can be supplied as
an argument when running it.
2014-10-17 11:05:56 +01:00
Michael Bridgen 0eac2e60ed Added README 2014-10-16 17:46:46 +01:00
Bryan Boreham c6a74d23e0 Print out command-line args, for debugging 2014-10-16 17:21:15 +01:00
Michael Bridgen 0749460652 Moved updater into server
While we're only reacting to containers going away, it's more
convenient to bundle the docker events watcher into the server.

I've added a flag to switch it on; and switched it on by default in
the container.

I also implemented `Zone.DeleteRecordsFor(ident)`, which removes all
records for a particular container.

One minor change to the structure of the code is that the Zone is now
constructed *outside* the server, and given to it and the updater.
2014-10-16 15:38:32 +01:00
Michael Bridgen 0fb4bce24d Put both image builds in docker/Makefile 2014-10-16 12:35:05 +01:00
Michael Bridgen d8c31fb150 Simplified args and added minimal event handling 2014-10-16 12:35:05 +01:00
Michael Bridgen 4949f34461 Added container updates watcher 2014-10-16 12:35:05 +01:00
Michael Bridgen ac35f919b2 Merge remote-tracking branch 'bb/master' 2014-10-16 12:34:42 +01:00
Bryan Boreham 6e5900654a Merge pull request #125 from zettio/123_udp_garbage
LGTM; closes #123
2014-10-16 10:15:45 +01:00
Matthias Radestock 4ddfc47448 don't trip over truncated udp packets
and log such events, plus any other errors during decoding, nicely,
including the connection on which this occured.

Closes #123.
2014-10-15 21:03:15 +01:00
Bryan Boreham e8ec9e84ce clarify messages used on connection errors 2014-10-15 19:34:43 +01:00
Matthias Radestock 0dc8fd842c Merge branch 'master' of github.com:zettio/weave 2014-10-15 15:57:21 +01:00
Matthias Radestock d1de3eac3e log something when we drop a UDP packet 2014-10-15 15:56:23 +01:00
Matthias Radestock 5acefd5d23 refactor: reduce indent 2014-10-15 15:55:44 +01:00
Matthias Radestock 4ffd15206b remove outdated comment 2014-10-15 15:41:29 +01:00
rade c8a5bcc793 Merge pull request #121 from squaremo/vagrant_dev
A Vagrant file for developing on other-than-Linux

Closes #119.
2014-10-15 15:28:45 +01:00
Matthias Radestock a587fef9c4 fix package name following move 2014-10-15 15:20:49 +01:00
Matthias Radestock e2fd1fda31 move router code 2014-10-15 15:07:42 +01:00
Michael Bridgen 4c7fb5ce91 Added hook for local vagrant config
If there's a file Vagrantfile.local, run that too. This can be used to
e.g., add the weavedns directory as a synced folder too.
2014-10-15 00:32:06 +01:00
Michael Bridgen 5f824e3bfd Added minimal vagrantfile
This makes an Ubuntu-based vagrant image that has
 - docker installed
 - go tools installed
 - weave dependencies installed
 - $GOPATH set to ~
 - the local working directory mapped as a synced folder into the
   right place in $GOPATH

So one should be able to

    $ vagrant up
    $ vagrant ssh
    vagrant$ cd src/github.com/zettio/weave
    vagrant$ make -C weaver
2014-10-14 18:45:22 +01:00
Bryan Boreham 6e3e7dcd68 Support DELETE function 2014-10-14 17:01:13 +01:00
Bryan Boreham 11ec66111a Check duplicate add 2014-10-14 17:00:14 +01:00
Bryan Boreham 4709f852c3 Better error reporting 2014-10-14 16:59:00 +01:00
Bryan Boreham 6d32ac80b7 Better error reporting 2014-10-14 16:50:20 +01:00
Bryan Boreham ff540265a9 Better error-checking 2014-10-14 16:49:27 +01:00
Bryan Boreham 10772f8289 Better error-checking 2014-10-14 16:12:50 +01:00
Bryan Boreham bc87c7c94b Initial Zone tests 2014-10-14 16:06:25 +01:00
Bryan Boreham 8ebc06315c Detect duplicate add 2014-10-14 16:06:08 +01:00
rade 0f364f7e47 Merge pull request #114 from squaremo/decimate_readme
Remove content duplicated in gh-pages site

Addresses part of issue #86.
2014-10-14 15:35:32 +01:00
Bryan Boreham 9bd464a003 Make putForm more generic 2014-10-14 15:23:20 +01:00