Commit Graph
5276 Commits
Author SHA1 Message Date
Bryan Boreham 31e8d8f79e Clarified rules and made SRC and DST consistent
Matching up examples to rules to code was hard, so I added letters
(A), (B) etc.

This helped to track down various inconsistencies.  Now SRC and DST
NAT are symmetrical, and the code is quite similar, apart from
replacing the source vs destination of an adjacency.
2019-01-11 16:15:10 +00:00
Bryan Boreham 49fe4a687e Store modified 'from' node 2018-12-24 12:52:04 +00:00
Bryan Boreham 39721d8619 Fix up NAT mapper test
- Add SRC and DST NAT flag in status.
- The port number was wrong from host1's perspective - it should see
  the mapped port on host2 not the real port inside the container.
- Add nodes at the other end of the connection, like the real probe does.
- Pass the local host name to MakeEndpointNodeID as it would be on the real probe.
2018-11-28 13:24:10 +00:00
Bryan Boreham d22b65ea5c Better NAT mapping
Deal separately with SRC vs DST mapping.
Includes detailed rationale.
2018-11-28 13:24:10 +00:00
Bryan Boreham ceafa6c1d0 Use flags to check for NAT in conntrack data 2018-11-28 12:41:31 +00:00
Bryan Boreham 85df164dc7 Stop special-casing the Docker bridge in Kubernetes mode
In the case targeted, Kubernetes uses a bridge named 'cbr0'.

The 'docker0' bridge should be locally-scoped in most cases, and
exceptionally users can turn that off with --probe.docker.bridge=""
2018-11-28 10:43:54 +00:00
Bryan Boreham 86bcb1153b Add function to subtract an entry from an IDList 2018-11-28 10:42:06 +00:00
Simon 78fab88d3a Merge pull request #3450 from weaveworks/3449-upgrade-to-styled-components-3
Upgrades to styled-components 3
2018-11-27 10:51:56 +01:00
Simon Howe 3db843f12d Upgrades to styled-components 3
- Keeps up w/ ui-cmp
2018-11-27 09:03:28 +01:00
Filip Barl 13767f52de Merge pull request #3447 from weaveworks/move-notion-questions-to-faq
Populate FAQ with more questions from Weave Cloud Notion's knowledge base
2018-11-26 15:06:41 +01:00
Filip Barl f66308482c Populate FAQ with more questions from Weave Cloud Notion's knowledge base. 2018-11-26 14:48:19 +01:00
Bryan Boreham 38b086d1b9 Merge pull request #3445 from weaveworks/dont-look-for-blank-volume-claims
Don't look for blank volume claims when rendering
2018-11-26 13:37:11 +00:00
Bryan Boreham 5e674079c0 Merge pull request #3436 from dholbach/remove-dcos-guide-link
Remove reference to non-existant DC/OS guide
2018-11-26 13:36:19 +00:00
Bryan Boreham 74bfb89368 Merge pull request #3444 from weaveworks/tag-topology-in-all-modes
Add TopologyTagger in all modes
2018-11-26 13:35:44 +00:00
Daniel Holbach ff7965d495 Merge pull request #3417 from weaveworks/add-faq-doc
Start off FAQ document
2018-11-26 13:01:17 +01:00
Bryan Boreham c2b17f2bbc Add TopologyTagger in all modes
It is essential for rendering many node types, so lift it out of the
condition on Kubernetes cluster mode.
2018-11-26 11:57:21 +00:00
Bryan Boreham 5c9b0f179d Don't look for blank volume claims
If a pod has no VolumeClaim set, just move on to the next pod.
Eliminates small waste of time.
2018-11-26 11:53:06 +00:00
Daniel Holbach dca56f73ce it's not env variables, it's cli arguments 2018-11-23 15:54:52 +01:00
Daniel Holbach 905729af83 Start off FAQ document
@fbarl and I talked about having a FAQ doc for Scope, where we can list
  tid-bits of information to work with Scope.

  Started off the doc with a piece that was discussed in #3406.

Signed-off-by: Daniel Holbach <daniel@weave.works>
2018-11-23 15:32:49 +01:00
Bryan Boreham b452040d7b Merge pull request #3441 from weaveworks/release-1.10
Release 1.10.1
2018-11-23 14:07:55 +00:00
Bryan Boreham ad3a063a12 Release 1.10.1 v1.10.1 2018-11-23 13:49:03 +00:00
Satyam Zode 323720869f Merge pull request #3439 from weaveworks/fix-ui-build
UI Build: stop deleting static ui files when building external ui
2018-11-23 19:03:40 +05:30
Bryan Boreham f157132622 UI Build: stop deleting static ui files when building external ui
This can cause an empty static UI if things build in an unfortunate
order.
2018-11-23 12:25:22 +00:00
Bryan Boreham 3cf50b4511 Merge pull request #3437 from weaveworks/release-1.10
Release 1.10
2018-11-22 13:47:18 +00:00
Bryan Boreham dc15123093 Release 1.10 v1.10.0 2018-11-22 13:07:52 +00:00
Daniel Holbach 21820cb60a Remove reference to non-existant DC/OS guide
Signed-off-by: Daniel Holbach <daniel@weave.works>
2018-11-22 12:35:03 +01:00
Bryan Boreham 476ef275e6 Merge pull request #3298 from weaveworks/conntrack-netlink-upstream
Probe: use netlink to talk to conntrack
2018-11-20 11:14:56 +00:00
Bryan Boreham 2e7dff5bab Merge pull request #3432 from weaveworks/move-hideous-hack
Move "hideous hack" for Kubernetes service network from probe to app
2018-11-19 16:54:37 +00:00
Bryan Boreham 94dbee2124 Move "hideous hack" for Kubernetes service network from probe to app
This avoids side-effects from reporting Kubernetes from a
cluster-level probe, and removes a lie from the probe data.

Rather than do the work every time the probe sends a report, we do it
every time the app renders endpoints, which should be once per merged
report set.
2018-11-19 14:54:20 +00:00
Filip Barl 3ed393218d Merge pull request #3431 from weaveworks/bump-ui-components-to-0-15-2
Bump ui-components to v0.15.2
2018-11-15 15:40:05 +01:00
Filip Barl 9fda9b9315 Bump ui-components to v0.15.2. 2018-11-15 15:23:48 +01:00
Simon a53b95f64a Merge pull request #3426 from weaveworks/upgrade-to-font-awesome-5-again
Upgrade to font-awesome 5
2018-11-15 10:15:29 +01:00
Simon Howe 0c6a91687e Don't have node_modules/font-awesome anymore 2018-11-14 18:05:02 +01:00
Simon Howe cac3b2783e Upgrade to ui-cmp that has fa5 2018-11-14 16:43:20 +01:00
Bryan Boreham c732fee433 Don't add closed connections to 'activeFlows' 2018-11-14 15:34:58 +00:00
Bryan Boreham 4457bef918 Update typetypetype/conntrack package
From revision 1ea26629 to 9d9dd841, to bring in a couple of bug fixes
and some performance improvements.
2018-11-14 15:34:58 +00:00
Bryan Boreham 95ce2cb1a8 Add build constraint on Linux-only features
Split Reporter into Linux and non-Linux parts, and stubbed it out for
non-Linux targets.
2018-11-14 15:34:58 +00:00
Bryan Boreham 01ef6a104d Eliminate connectionTrackerConfig struct 2018-11-14 15:34:58 +00:00
Bryan Boreham e3d42676a3 Add back some parts of the original cli code 2018-11-14 15:34:58 +00:00
Bryan Boreham 71c59e87d1 Update comment 2018-11-14 15:34:58 +00:00
Bryan Boreham f4dc368955 Don't buffer TIME_WAIT flows on conntrack start-up
When the probe first starts we should only be interested in active
connections, and if the loop re-starts it's probably because too many
connections are opening and closing to keep up with, so it's good to
drop any that are already closed then too.

Refactor the code so `handleFlow` is only called on events, and handle
the initial list of connections directly.
2018-11-14 15:34:58 +00:00
Bryan Boreham c627802664 Refactor: remove some code that is now unnecessary
- don't need another wrapper round `conntrack.Connections()`
- logPipe() was only for the command-line conntrack
- nobody closes the `event` chan now, so no need to pre-check for quit
2018-11-14 15:34:58 +00:00
Bryan Boreham a29e9fa27a Update to match upstream conntrack library 2018-11-14 15:34:57 +00:00
Bryan Boreham 5420692a39 Vendor github.com/typetypetype/conntrack 2018-11-14 15:34:57 +00:00
Bryan Boreham b9405bcc4b Remove our own copy of the upstream library 2018-11-14 15:34:57 +00:00
Bryan Boreham 73f35fd6d9 Handle nat status from conntrack via netlink
Replacement for the --any-nat command-line parameter
2018-11-14 15:34:57 +00:00
Bryan Boreham ed6a010330 Decode conntrack status from netlink 2018-11-14 15:34:57 +00:00
Bryan Boreham 3314e1f0c7 Move constants to headers.go to be more like upstream 2018-11-14 15:34:57 +00:00
Bryan Boreham 7a68b5bdb0 Use Nfgenmsg from unix package instead of declaring locally 2018-11-14 15:34:57 +00:00
Bryan Boreham 8b04ef7359 Move conntrack code out to client.go to match upstream 2018-11-14 15:34:57 +00:00