Commit Graph

3866 Commits

Author SHA1 Message Date
Matthias Radestock
91d3497f7d parallelise 'reduce' 2017-06-05 08:44:17 +01:00
Matthias Radestock
6eaffb44e0 fix bug: handle short-lived ebpf-tracked connections again
This got broken in #2559.

The problem here is similar to #2551.
2017-06-04 18:42:54 +01:00
Matthias Radestock
f574162f64 Merge pull request #2559 from weaveworks/simplify-connection-join
simplify connection join
2017-06-04 16:30:09 +01:00
Matthias Radestock
30c38a958f remove blatant falsehoods from comments 2017-06-04 16:23:03 +01:00
Matthias Radestock
ebcf9dcf10 refactor: rename ShortLivedConnectionJoin to ConnectionJoin
since it's dealing with *all* connections, not just short-lived ones.
2017-06-04 16:10:21 +01:00
Matthias Radestock
9bc7b30f0f extract and expand endpoint procspied filter
The filter needs to exclude both procspied and eBPF-tracked endpoints,
since both will be picked up by the process topology.
2017-06-04 16:10:21 +01:00
Matthias Radestock
707add13a3 refactor: simplify some filters 2017-06-04 16:10:21 +01:00
Matthias Radestock
ee0736df69 refactor: extract constant mapEndpoint2IP 2017-06-04 16:10:21 +01:00
Matthias Radestock
6697f4a897 refactor: declosure ShortLivedConnectionJoin 2017-06-04 16:10:21 +01:00
Matthias Radestock
b29602f33a Merge pull request #2557 from weaveworks/dont-read-all-of-proc
don't read all of /proc when probe.proc.spy=false
2017-06-04 14:48:54 +01:00
Alfonso Acosta
e4f5537529 Merge pull request #2535 from weaveworks/2441-enable-ebpf-by-default
Enable eBPF tracking by default
2017-06-04 15:46:07 +02:00
Matthias Radestock
ff4a4c08ce refactor: remove pointless optimisation 2017-06-04 10:36:55 +01:00
Matthias Radestock
59f777a066 don't read all of /proc when probe.proc.spy=false
Previously we were doing the reading even though we weren't looking at
the result.
2017-06-02 14:01:25 +01:00
Alfonso Acosta
b2e6b97aa8 Fix ebpf-connection checking 2017-05-31 15:10:52 +00:00
Alfonso Acosta
71e035665b Adjust integration tests 2017-05-31 10:04:52 +00:00
Alfonso Acosta
7ca8749b18 Enable eBPF tracking by default 2017-05-31 10:04:52 +00:00
Matthias Radestock
06bb5157f8 Merge pull request #2548 from weaveworks/nodeset-unsorted-foreach
optimise: don't sort in NodeSet.ForEach
2017-05-30 14:54:13 +01:00
Matthias Radestock
6679c42c0e optimise: don't sort in NodeSet.ForEach
It's unnecessary, and none of the other ps.Map derived structures do
it.
2017-05-30 13:42:18 +01:00
Matthias Radestock
2c5709b5ae Merge pull request #2547 from weaveworks/do-not-encode-empty-maps
encode empty ps.Maps as nil
2017-05-29 18:31:08 +01:00
Matthias Radestock
94a11ff2e8 encode empty ps.Maps as nil
every little helps
2017-05-29 17:50:55 +01:00
Matthias Radestock
e2bccd1d64 Merge pull request #2546 from weaveworks/use_map_helpers
Use map helpers
2017-05-29 16:49:30 +01:00
Matthias Radestock
29f2af11d9 introduce mapKeys helper 2017-05-29 14:08:26 +01:00
Matthias Radestock
87d91c55d9 use mapToString where possible 2017-05-29 14:08:26 +01:00
Matthias Radestock
f09be95a43 use mapEqual where possible 2017-05-29 14:08:26 +01:00
Matthias Radestock
b703f4d9bd add copyreport to .gitignore 2017-05-29 11:07:33 +01:00
Alfonso Acosta
7f7192cf3e Merge pull request #2541 from weaveworks/2536-close-ebpf-tracker-cleanly
Close eBPF tracker cleanly
2017-05-27 08:15:30 +02:00
Matthias Radestock
a132398bfa Merge pull request #2542 from weaveworks/copyreport
add copyreport utility
2017-05-26 16:21:09 +01:00
Matthias Radestock
fa0f4a4d59 add copyreport utility
useful for codec and report structure experiments
2017-05-26 15:33:15 +01:00
Matthias Radestock
eb8695965a refactor: move report file reading 2017-05-26 15:30:17 +01:00
Alfonso Acosta
c70e357998 Bump github.com/weaveworks/tcptracer-bpf/ and github.com/iovisor/gobpf/ 2017-05-26 04:44:06 +00:00
Matthias Radestock
be0297d488 Merge pull request #2539 from weaveworks/simplify-connection-tracker-init
Simplify connection tracker init and fix procfs scan fallback
2017-05-26 00:06:38 +01:00
Matthias Radestock
b52b2078ca refactor: remove unnecessary conditional
we always have a flowWalker when not using ebpf
2017-05-25 23:04:45 +01:00
Matthias Radestock
b80a51bc39 cosmetic: remove outdated comment
we now do correctly fall back to proc scanning when eBPF fails
2017-05-25 23:04:45 +01:00
Matthias Radestock
a6cc8ece4f simplify connection tracker initialization
- eliminate the code duplication when falling back to procfs scanning
- trim some superfluous comments

Also fix a bug in the procvess: when falling back to procfs scanning
in ReportConnections, the scanner was given a "--any-nat" param, which
is wrong.
2017-05-25 23:02:19 +01:00
Alfonso Acosta
0ddb9cb9cc Merge pull request #2538 from weaveworks/2537-guard-against-null-ds-store
Guard against null DaemonSet store
2017-05-24 16:50:51 +02:00
Alfonso Acosta
0aec26653b Guard against null DaemonSet store 2017-05-24 11:36:26 +00:00
Alfonso Acosta
1b6a2fb3e5 Merge pull request #2531 from weaveworks/release-1.4
Release 1.4.0
2017-05-24 00:37:26 +02:00
Alfonso Acosta
1bc80767a5 Release 1.4.0 v1.4.0 2017-05-22 16:27:44 +00:00
Alfonso Acosta
a7d14e762a Merge pull request #2533 from kinvolk/alban/shfmt-2
shfmt: fix shell formatting (again - PR to master)
2017-05-22 18:25:36 +02:00
Alban Crequy
bd4130fb53 Merge commit 'd901f2b9cf6b0840b37285a9c8157bfc9ff2da76' into alban/shfmt-2 2017-05-22 17:27:54 +02:00
Alban Crequy
d901f2b9cf Squashed 'tools/' changes from 9e32194..0d6d4da
0d6d4da Run shfmt 1.3 on the code.
5cdba32 Add sudo
c322ca8 circle.yml: Install shfmt binary.
e59c225 Install shfmt 1.3 binary.
30706e6 Install pyhcl in the build container.
960d222 Merge pull request #97 from kinvolk/alban/update-shfmt-3
1d535c7 shellcheck: fix escaping issue
5542498 Merge pull request #96 from kinvolk/alban/update-shfmt-2
32f7cc5 shfmt: fix coding style
09f72af lint: print the diff in case of error
571c7d7 Merge pull request #95 from kinvolk/alban/update-shfmt
bead6ed Update for latest shfmt
b08dc4d Update for latest shfmt (#94)
2ed8aaa Add no-race argument to test script (#92)
80dd78e Merge pull request #91 from weaveworks/upgrade-go-1.8.1
08dcd0d Please ./lint as shfmt changed its rules between 1.0.0 and 1.3.0.
a8bc9ab Upgrade default Go version to 1.8.1.
41c5622 Merge pull request #90 from weaveworks/build-golang-service-conf
e8ebdd5 broaden imagetag regex to fix haskell build image
ba3fbfa Merge pull request #89 from weaveworks/build-golang-service-conf
e506f1b Fix up test script for updated shfmt
9216db8 Add stuff for service-conf build to build-goland image
66a9a93 Merge pull request #88 from weaveworks/haskell-image
cb3e3a2 shfmt
74a5239 Haskell build image
4ccd42b Trying circle quay login
b2c295f Merge branch 'common-build'
0ac746f Trim quay prefix in circle script
c405b31 Merge pull request #87 from weaveworks/common-build
9672d7c Push build images to quay as they have sane robot accounts
a2bf112 Review feedback
fef9b7d Add protobuf tools
10a77ea Update readme
254f266 Don't need the image name in
ffb59fc Adding a weaveworks/build-golang image with tags
b817368 Update min Weave Net docker version
cf87ca3 Merge pull request #86 from weaveworks/lock-kubeadm-version
3ae6919 Add example of custom SSH private key to tf_ssh's usage.
cf8bd8a Add example of custom SSH private key to tf_ansi's usage.
c7d3370 Lock kubeadm's Kubernetes version.
faaaa6f Merge pull request #84 from weaveworks/centos-rhel
ef552e7 Select weave-kube YAML URL based on K8S version.
b4c1198 Upgrade default kubernetes_version to 1.6.1.
b82805e Use a fixed version of kubeadm.
f33888b Factorise and make kubeconfig option optional.
f7b8b89 Install EPEL repo for CentOS.
615917a Fix error in decrypting AWS access key and secret.
86f97b4 Add CentOS 7 AMI and username for AWS via Terraform.
eafd810 Add tf_ansi example with Ansible variables.
2b05787 Skip setup of Docker over TCP for CentOS/RHEL.
84c420b Add docker-ce role for CentOS/RHEL.
00a820c Add setup_weave-net_debug.yml playbook for user issues' debugging.
3eae480 Upgrade default kubernetes_version to 1.5.4.
753921c Allow injection of Docker installation role.
e1ff90d Fix kubectl taint command for 1.5.
b989e97 Fix typo in kubectl taint for single node K8S cluster.
541f58d Remove 'install_recommends: no' for ethtool.
c3f9711 Make Ansible role docker-from-get.docker.com work on RHEL/CentOS.
038c0ae Add frequently used OS images, for convenience.
d30649f Add --insecure-registry to docker.conf
1dd9218 shfmt -i 4 -w push-images
6de96ac Add option to not push docker hub images
310f53d Add push-images script from cortex
8641381 Add port 6443 to kubeadm join commands for K8S 1.6+.
50bf0bc Force type of K8S token to string.
08ab1c0 Remove trailing whitespaces.
ae9efb8 Enable testing against K8S release candidates.

git-subtree-dir: tools
git-subtree-split: 0d6d4da992a24351e88da92f002a14c65d59f34e
2017-05-22 17:27:54 +02:00
Alfonso Acosta
cb0afade3e Use shfmt v1.3.0 instead of gopkg.in's v1
"inspired" by 1ba9d6d82c
2017-05-22 17:27:35 +02:00
Alban Crequy
0096688415 shfmt: fix shell formatting
Symptoms:
```
extras/dialer/time-scope-probe-cgroup:31:18: arithmetic expressions must consist of names and numbers
extras/dialer/time-scope-probe-cgroup: run shfmt -i 4 -w extras/dialer/time-scope-probe-cgroup
extras/dialer/time-scope-probe-proc:28:18: arithmetic expressions must consist of names and numbers
extras/dialer/time-scope-probe-proc: run shfmt -i 4 -w extras/dialer/time-scope-probe-proc
extras/in_parallel.sh:29:16: arithmetic expressions must consist of names and numbers
extras/in_parallel.sh: run shfmt -i 4 -w extras/in_parallel.sh
```

Visible on https://circleci.com/gh/kinvolk/scope/980
2017-05-22 17:27:35 +02:00
Alfonso Acosta
0ee3a3fa8e Merge pull request #2526 from weaveworks/mike/k8s/add-daemonsets
Add daemonsets
2017-05-22 11:26:38 +02:00
Mike Lang
c0751cd4e2 probe/kubernetes: Propagate errors in getting label selectors 2017-05-19 15:06:53 -07:00
Mike Lang
3aa4a676dd Add new view for daemonsets 2017-05-19 15:06:53 -07:00
Mike Lang
d4a5360d4c k8s probe: Collect info on daemonsets for new DaemonSet topology 2017-05-19 15:06:51 -07:00
Mike Lang
c60731b043 Add report topology for daemonsets 2017-05-19 15:00:01 -07:00
Alfonso Acosta
708c0890eb Merge pull request #2518 from kinvolk/alban/fdinstall
handle fdinstall events from tcptracer-bpf (aka "accept before kretprobe" issue)
2017-05-19 15:52:54 +02:00
Alban Crequy
b761b5e52b integration tests: better log messages 2017-05-19 14:49:38 +02:00