Commit Graph

  • 0ccf19e488 Merge pull request #561 from dpw/random-mac rade 2015-04-15 15:43:57 +01:00
  • a1db1e11f5 Make the first byte of the generated bridge MAC more random David Wragg 2015-04-15 14:19:28 +01:00
  • 2eb13f0020 Merge pull request #558 from awh/weave_ps_includes_exposed_addresses rade 2015-04-15 12:01:30 +01:00
  • cbbe3cc122 Include weave exposed addresses in ps output Adam Harrison 2015-04-14 14:22:02 +01:00
  • ab49eb42fb Merge pull request #555 from rade/478_more_discriminate_connectivity rade 2015-04-15 11:48:23 +01:00
  • 339f85cbcb get rid of Router.NormalisePeerAddr There was only one call site left and it always gets invoked with an ip:port, so normalisation is a no-op. Matthias Radestock 2015-04-14 13:18:40 +01:00
  • 290d5443cc more discriminate connectivity If a peer was specified on the command line w/o a port, then do not connect to it if we have inbound connections from that IP. Matthias Radestock 2015-04-14 08:48:56 +01:00
  • 9bd2afc6c3 Merge pull request #560 from rade/include_remote_address_in_connection_logging rade 2015-04-15 11:23:26 +01:00
  • 9478696d1a update example output in docs Matthias Radestock 2015-04-15 11:17:30 +01:00
  • 5415e3a60a drop "Peer " prefix in Peers section of status it's redundant and the output looks much better w/o it Matthias Radestock 2015-04-15 11:09:35 +01:00
  • f0998d6196 declutter status' reconnects section Matthias Radestock 2015-04-15 10:56:29 +01:00
  • f6def13ea9 change style for connections in status' reconnects section to match how they are shown in the logs Matthias Radestock 2015-04-15 10:55:14 +01:00
  • b1fd1334b4 always include the remote address in connection log entries in addition to the peer name Matthias Radestock 2015-04-14 22:14:29 +01:00
  • 74b3bf8299 pass on args in multiweave launch <args>... Matthias Radestock 2015-04-14 19:22:01 +01:00
  • f9ea3f54d1 Merge branch 'bboreham-make-tests-stop' Matthias Radestock 2015-04-14 18:03:42 +01:00
  • 8c6c14c6d3 Accumulate any errors from go test commands so we can report overall status Bryan Boreham 2015-04-14 14:13:47 +01:00
  • 31775a8b84 cosmetic Matthias Radestock 2015-04-14 17:58:13 +01:00
  • 973996184d fix bug Matthias Radestock 2015-04-14 13:27:10 +01:00
  • d334b903e4 Merge pull request #556 from rade/do_not_duplicate_router_config Bryan Boreham 2015-04-14 12:58:05 +01:00
  • 798bfeb0a7 make the Router include the RouterConfig rather than copying the bulk of it Matthias Radestock 2015-04-14 11:28:36 +01:00
  • 9b29d2ecc5 Merge pull request #554 from dpw/main-routerconfig rade 2015-04-14 10:57:43 +01:00
  • 961801b792 refactor: shrink function by extracting helpers Matthias Radestock 2015-04-14 06:38:58 +01:00
  • ae00582212 Reintroduce a bufSzMB variable David Wragg 2015-04-13 22:29:19 +01:00
  • 1213935030 Pull forward the declaration of the RouterConfig in main() David Wragg 2015-04-13 21:09:42 +01:00
  • c2972b7558 cosmetic: remove dead code Matthias Radestock 2015-04-13 21:28:07 +01:00
  • 9833747fd9 Merge pull request #553 from dpw/makefile-cleanups rade 2015-04-13 21:05:32 +01:00
  • 1328f8bec7 Use $(@D) rather than $(shell dirname $@) David Wragg 2015-04-13 20:39:01 +01:00
  • 433d406d83 Use $(@D) rather than $(shell dirname $@) David Wragg 2015-04-13 20:39:01 +01:00
  • bc9bb9e4ae tempfile is a deprecated debianism David Wragg 2015-04-13 20:37:12 +01:00
  • 805005e632 weave status no longer complains about missing weaveDNS Matthias Radestock 2015-04-13 18:28:52 +01:00
  • 202f536e07 refactor: extract some helpers in order to shrink main() Matthias Radestock 2015-04-13 16:03:49 +01:00
  • b062facbe9 refactor: inline Matthias Radestock 2015-04-13 15:56:52 +01:00
  • a80b8eacac Merge pull request #552 from bboreham/status-conn-errors rade 2015-04-13 15:46:09 +01:00
  • 8ab14ea1c6 don't crash this got broken in a93a09dd35 Matthias Radestock 2015-04-13 15:37:44 +01:00
  • 3db4e86564 remove established connections from ConnectionMaker state This got broken in 6409a8647c The issue is that for successful connections nothing ever sets attempting=false, so we need some other means of removing such entries. Matthias Radestock 2015-04-13 14:59:32 +01:00
  • 8ad244e0f9 Let ConnectionMaker report the reason the connection broke Bryan Boreham 2015-04-13 14:21:59 +01:00
  • f8ec56ea79 Move connection shutdown logging into shutdown() Bryan Boreham 2015-04-13 14:21:11 +01:00
  • 7f434d71e1 Merge pull request #532 from inercia/weave-225-fix-2 Adam Harrison 2015-04-13 14:20:40 +01:00
  • 29b3b91423 Merge pull request #501 from inercia/weave-225-fix-1 Adam Harrison 2015-04-13 14:19:47 +01:00
  • 01af41c837 Disable Vagrant 1.7 per host insecure key replacement Adam Harrison 2015-04-13 11:43:01 +01:00
  • fe58a63996 Merge pull request #550 from rade/549_forget_as_given Adam Harrison 2015-04-13 10:38:52 +01:00
  • 272e63643c make weave port configurable via WEAVE_PORT We cannot just leave that to the -port parameter since that only controls the container internal port weave is listening on (and uses as the default destination port for outbound connections). Also, we need the port for connection tracking cleanup during stop and reset. Matthias Radestock 2015-04-12 21:58:20 +01:00
  • a93a09dd35 remember user-supplied peer addresses as given rather than post name resolution. This way we can forget them as given even when name resolution has changed or fails. Matthias Radestock 2015-04-12 20:44:12 +01:00
  • 1275bb24e5 exclude stale info from ConnectionMaker.String() This got broken in 7bd0f7dbae. Matthias Radestock 2015-04-12 12:23:32 +01:00
  • 6409a8647c simplify connection logic slightly There is no need to remove entries from cm.targets that are in ourConnectedTargets. None of these targets will be in validTargets (since addTarget filters anything in ourConnectedTargets), so they will be removed a few lines further down anyway... Matthias Radestock 2015-04-12 12:11:27 +01:00
  • 21102d3615 refactor: extract router configuration the param list of NewRouter was getting a bit long Matthias Radestock 2015-04-12 10:46:46 +01:00
  • e89e3adc69 cosmetic: more consistent param/arg/var ordering re Port Matthias Radestock 2015-04-12 10:45:49 +01:00
  • 065b632f91 significantly reduce time for test dns servers to shut down by setting the ReadTimeout to 100ms instead of the default 2s. Matthias Radestock 2015-04-11 20:52:51 +01:00
  • e0bba10ead better handling of test multicast listener initialisation errors We handle that error explicitly in all cases and point out the common cause, namely the absence of a default multicast interface. Matthias Radestock 2015-04-11 20:22:41 +01:00
  • bb99b21248 tiny refactor: make use of helper function Matthias Radestock 2015-04-11 19:09:41 +01:00
  • 85971193a8 simplify check for --local Matthias Radestock 2015-04-11 17:58:26 +01:00
  • 59ae50eb4e don't rely on docker inspect for determining container death Docker can take a while to notice & record the death of containers, so we perform a more direct check instead. Matthias Radestock 2015-04-11 12:24:09 +01:00
  • f433d26d1f fix typo Matthias Radestock 2015-04-11 12:23:57 +01:00
  • cd81101508 Merge pull request #546 from rade/awh-handle_signals_without_tty rade 2015-04-11 11:55:46 +01:00
  • 338d577fb7 Implement weaveexec signal proxy Adam Harrison 2015-04-07 17:11:59 +01:00
  • 39b9034fef there is no need for multiweave to use --local Matthias Radestock 2015-04-11 00:18:42 +01:00
  • 363814db5c simplify "need to run as root" condition Matthias Radestock 2015-04-11 00:07:23 +01:00
  • c2042d52f8 Merge pull request #545 from rade/errordeveloper-issue_540 rade 2015-04-10 23:03:03 +01:00
  • 35d32bd03a Only check kernel version and ip command in local mode (close #540) Ilya Dmitrichenko 2015-04-10 16:14:49 +01:00
  • 8fcd56bc68 Merge branch 'bboreham-543-fix-fieldvalidator' Matthias Radestock 2015-04-10 22:43:26 +01:00
  • d228a4450a Make sure FieldValidator methods act on the object we pass in. Added a unit test for FieldValidator Bryan Boreham 2015-04-10 17:04:57 +01:00
  • d19d485d39 refactor: make LocalPeer.Router "private" nothing outside LocalPeer should access it Matthias Radestock 2015-04-10 21:56:00 +01:00
  • 7d51f8751b gofmt David Wragg 2015-04-10 20:55:27 +01:00
  • 551c1d2925 Merge pull request #541 from abligh/support-unix-domain-control-socket rade 2015-04-10 20:39:11 +01:00
  • 9699b4ce1a Support using a unix domain socket for the HTTP control interface. Alex Bligh 2015-04-10 16:02:30 +01:00
  • 3a83570005 Merge pull request #526 from bboreham/extend-ps rade 2015-04-10 15:57:53 +01:00
  • f88ce6e798 don't mention defaults twice in usage go's flag package already shows the default values, so we only need to mention them when they are determined later. Matthias Radestock 2015-04-10 15:38:11 +01:00
  • 0799d9f70b shorten connection timeout for http interactions with containers Matthias Radestock 2015-04-10 15:33:11 +01:00
  • db302a0d3d Merge pull request #539 from abligh/make-iface-mandatory rade 2015-04-10 15:22:07 +01:00
  • 24bd7151e2 Error if neither -iface or -name is specified Alex Bligh 2015-04-10 14:59:57 +01:00
  • 10bd84a460 Document name-list option to weave ps Bryan Boreham 2015-04-10 15:08:35 +01:00
  • 0540e41ffd Merge pull request #537 from bboreham/master rade 2015-04-10 14:51:30 +01:00
  • d32f328c24 Simplify printing Bryan Boreham 2015-04-10 14:46:31 +01:00
  • c13980af4b Merge pull request #536 from dpw/535-golang142 rade 2015-04-10 14:10:46 +01:00
  • bd8cb02f17 Merge pull request #534 from abligh/select-ports-on-cli rade 2015-04-10 13:54:41 +01:00
  • 162b056784 Docker needs golang 1.4.2 to build, so we do too David Wragg 2015-04-10 12:45:27 +01:00
  • 12d88eac23 Add options to set ports on weaver command line Alex Bligh 2015-04-09 12:27:27 +01:00
  • f3d20111d8 eliminate dependency on LocalPeer.Router (from things outside LocalPeer) Matthias Radestock 2015-04-10 10:51:40 +01:00
  • 2ba8f34132 Merge pull request #521 from rade/517_lower_topology_periodic_gossip_complexity Bryan Boreham 2015-04-10 10:08:23 +01:00
  • bb9e26b4ae Merge pull request #528 from 'bboreham/name_change' David Wragg 2015-04-10 08:03:38 +01:00
  • ff657d1512 Merge pull request #533 from abligh/fix-dockerless-ip-address rade 2015-04-09 21:45:38 +01:00
  • 26d9c37dd2 Fix dockerless.txt Alex Bligh 2015-04-09 21:11:18 +01:00
  • 12c97b4fc5 topology-sensitive random selection of gossip neighbours Matthias Radestock 2015-04-06 11:06:04 +01:00
  • 642cc3f00e Change release GitHub user name from zettio to weaveworks Bryan Boreham 2015-04-09 17:27:53 +01:00
  • 7811e2b470 Improved log messages Alvaro Saurin 2015-04-09 16:01:38 +02:00
  • 5d5b101707 Set locally resolved queries as Authoritative Alvaro Saurin 2015-04-09 16:00:42 +02:00
  • 186481052d Catch unsupported queries by using the cache Alvaro Saurin 2015-04-09 15:59:59 +02:00
  • 2474adb2c5 Do not modify the TTL stored in the cache when getting a reply from the cache Alvaro Saurin 2015-04-09 15:58:40 +02:00
  • 6f545a4296 Fix for negative TTLs by using a different lookups set depending on the value stored in the cache. Alvaro Saurin 2015-04-09 15:53:56 +02:00
  • a4fd0b571d Row back on Docker image names until we do a release under the weaveworks name Bryan Boreham 2015-04-09 11:46:08 +01:00
  • f5362289cf switch to a more efficient GC for gossip senders Matthias Radestock 2015-04-06 11:04:38 +01:00
  • 40d127d9a4 make connection heartbeating independent of periodic gossip This was a convenient but rather suspect coupling. In particular, it will break if the period gossip logic changes s.t. it no longer sends gossip on all connections every interval. Matthias Radestock 2015-04-06 10:59:07 +01:00
  • 067ba6d970 Fix all zettio.github.io links too Bryan Boreham 2015-04-09 11:39:55 +01:00
  • cec1efbcef Merge pull request #530 from rade/529_eliminate_connection_add_remove_race Bryan Boreham 2015-04-09 10:36:27 +01:00
  • e639007b62 eliminate AddConnection/RemoveConnection race We were invoking AddConnection in a separate goroutine, and this could result in RemoveConnection getting invoked first, resulting in bogus entries in our connection map, which would effectively prevent connectivity to the other peer until the stale entry got removed through a lost tie break. And if, per chance, the remote end ran into exactly the same race condition, then connectivity between that peer and ourself was broken permanently. Matthias Radestock 2015-04-09 06:34:35 +01:00
  • 56f5c749e1 optimise broadcast route calculation ...by obtaining our connection set just once. This also guards against potential locking issues, since we no longer obtain the required lock on our local peer while holding a lock on Peers. Matthias Radestock 2015-04-08 21:54:45 +01:00
  • ec30bdaf3d explain kernel settings that need changing Matthias Radestock 2015-04-08 18:33:39 +01:00
  • 74dae2abb4 Allow multiweave to be run from any directory David Wragg 2015-04-08 18:16:10 +01:00
  • 8a82f368d0 Update repository name from zettio to weaveworks Bryan Boreham 2015-04-08 16:35:52 +01:00
  • 13f3439a06 Allow container names to be supplied to 'weave ps' Bryan Boreham 2015-04-08 15:38:23 +01:00