Commit Graph

3843 Commits

Author SHA1 Message Date
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
Alban Crequy
4613819cb9 integration test: accept before kretprobe 2017-05-19 14:49:38 +02:00
Alban Crequy
d715ccc391 ebpf: handle fd_install events from tcptracer-bpf
Since https://github.com/weaveworks/tcptracer-bpf/pull/39, tcptracer-bpf
can generate "fd_install" events when a process installs a new file
descriptor in its fd table. Those events must be requested explicitely
on a per-pid basis with tracer.AddFdInstallWatcher(pid).

This is useful to know about "accept" events that would otherwise be
missed because kretprobes are not triggered for functions that were
called before the installation of the kretprobe.

This patch find all the processes that are currently blocked on an
accept() syscall during the EbpfTracker initialization.
feedInitialConnections() will use tracer.AddFdInstallWatcher() to
subscribe to fd_install  events. When a fd_install event is received,
synthesise an accept event with the connection tuple and the network
namespace (from /proc).
2017-05-19 14:49:38 +02:00
Alban Crequy
1fb4ce728b vendor: update tcptracer-bpf
This includes https://github.com/weaveworks/tcptracer-bpf/pull/39
2017-05-19 14:14:26 +02:00
Alfonso Acosta
dbdb648ada Merge pull request #2527 from weaveworks/2494-track-non-natted-shortlived-conns
Let conntrack track non-NATed short-lived connections
2017-05-19 01:42:02 +02:00
Alfonso Acosta
6e6f246771 Merge pull request #2528 from weaveworks/re-enable-pod-shortcut-reports
Re-enable pod shortcut reports
2017-05-19 01:41:36 +02:00
Alfonso Acosta
1063a7bf39 Remove test debugging 2017-05-18 20:31:56 +00:00
Alfonso Acosta
7491031769 Add integration test 2017-05-18 20:28:28 +00:00
Alfonso Acosta
2d6034a2e5 Re-enable pod shortcut reports 2017-05-18 10:21:32 +00:00
Alfonso Acosta
7497c7d432 Let conntrack track non-NATed short-lived connections 2017-05-16 23:15:16 +00:00
Alfonso Acosta
5079c114bc Merge pull request #2507 from kinvolk/alban/perf-map-fixes
ebpf connection tracker: perf map fixes
2017-05-16 21:57:42 +02:00
Matthias Radestock
61007dccb6 Merge pull request #2522 from weaveworks/namespace-default-all
show all namespaces by default
2017-05-16 17:51:37 +01:00
Filip Barl
a585514d90 Hide container images status for pseudo nodes. (#2520) 2017-05-16 15:51:57 +01:00
Matthias Radestock
f7bba52979 show all namespaces by default
There is nothing special about the "default" namespace, and selecting
it by default means we only show a partial view of the system, which
is hard to spot, especially for novice users.
2017-05-16 09:54:28 +01:00
Matthias Radestock
bf02eb0cc7 fix typos in usage info 2017-05-16 09:15:42 +01:00
Mike Lang
783070163d Merge pull request #2521 from Preskton/master
Breaking out some Azure-based services from "The Internet" (#1876)
2017-05-15 14:09:54 -07:00
preston_doster_tc
ed9c369f50 Standardized formatting. 2017-05-15 15:27:48 -05:00
preston_doster_tc
0f1c2f1cb7 Corrected spacing. 2017-05-15 13:32:39 -05:00
preston_doster_tc
df58f55782 Added Azure endpoints so they show up as individual nodes instead of under 'The Internet'. 2017-05-15 13:27:06 -05:00
Filip Barl
5935a32d0a Canvas zoom control (#2513)
* Added a zoom slider control in the bottom-right corner.

* Made the control vertical and added the buttons.

* Adjusted the styles and borders.

* Trying to fix Webpack

* Hide zoom control when there is no content.

* Polished the code.
2017-05-15 11:49:12 +02:00
Alfonso Acosta
963a41107c Merge pull request #2516 from kinvolk/ckuehl/add-documentation-for-multicolumn-tables
Add multicolumn-table documentation
2017-05-12 15:46:19 +02:00
Alfonso Acosta
f065092622 Merge pull request #2519 from weaveworks/2497-udpate-k8s-install-instructions-encore
Update install documents (again)
2017-05-12 12:37:25 +02:00
Alfonso Acosta
7409e2d844 Review feedback 2017-05-12 10:21:35 +00:00
Alfonso Acosta
6331662239 Update install documents (again) 2017-05-12 09:47:43 +00:00