4809 Commits

Author SHA1 Message Date
Bryan Boreham
bf35031617 Add version 1.9.0 v1.9.0 2018-04-16 16:40:51 +00:00
Matthias Radestock
4b85be0d7e Merge pull request #3141 from kinvolk/schu/workaround-ubuntu-kernel-oops
Workaround Ubuntu kernel oops

Fixes #3131
2018-04-16 07:56:02 +01:00
Matthias Radestock
82cd367379 Merge pull request #3139 from weaveworks/3127-no-truncate
do not truncate tables

Fixes #3127.
2018-04-15 21:49:19 +01:00
Bryan Boreham
994493b2e0 Merge pull request #3143 from weaveworks/unsafe-add-children
Use unsafe merge in joinResults.addChildAndChildren()
2018-04-15 21:46:23 +01:00
Bryan Boreham
e1c418884e Comment inconsistency between calls in joinResults 2018-04-15 09:39:43 +00:00
Bryan Boreham
3711876194 Use unsafe merge in joinResults.addChildAndChildren(), for performance 2018-04-15 09:39:21 +00:00
Michael Schubert
5d036c5ac4 ebpf: add tests for isKernelSupported() 2018-04-13 17:17:51 +02:00
Michael Schubert
c75700fe04 ebpf: check for known faulty Ubuntu kernel
The Ubuntu Xenial update to kernel 4.4.0-119.143 from 4.4.0-116.140 did
include a regression in the eBPF code. A basic `bpf_map_lookup_elem`
call as found in the tcptracer-bpf library used by Scope leads to a
kernel panic. As a result, Scope / the system crashes during startup
when the tcptracer is initialized. The Scope bug report can be found
here:

https://github.com/weaveworks/scope/issues/3131

To avoid crashes and gently fallback to procfs (as Scope already does
for systems not supporting eBPF), update `isKernelSupported()` and
explicitly check for Ubuntu Kernel versions with the problem.

Once the bug is fixed and an update published, the `abiNumber` check in
`isKernelSupported()` can and should be updated with an upper limit.

The Ubuntu bug report can be found here:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763454
2018-04-13 17:17:51 +02:00
Ilya Dmitrichenko
b8dae7768d Merge pull request #3140 from dholbach/docker-for-mac-fix
Minimal fix to make scope start with Docker for Mac again.
2018-04-13 10:28:14 +01:00
Bryan Boreham
b7b778934c Merge pull request #3138 from weaveworks/single-owner-nodeset
Use single-owner code path to accumulate children when rendering
2018-04-13 09:34:30 +01:00
Bryan Boreham
7a03bc03f8 Use faster code to accumulate children when rendering
Make sure all the Children NodeSets are not shared with any other
nodes, then we can use the non-persistent add path.
2018-04-13 07:44:21 +00:00
Daniel Holbach
f8f3b3dc2d Minimal fix to make scope start with Docker for Mac again.
@dglaubman found that recent versions of Docker for Mac (Docker version
18.03.0-ce, build 0520e24) don't write out
${HOME}/Library/Containers/com.docker.docker/Data/database any more.

@foot confirmed this. A fresh installation of Docker for Mac (Version
18.03.0-ce-mac60 (23751), Channel: stable) did not create the file.

The result was that installations which had this leftover file could start
scope, whereas newer couldn't. The fix simply changes this check to a path
which actually exists.

Thanks @dglaubman and @foot for the analysis and confirmation.

Fixes #3064
2018-04-13 08:17:23 +02:00
Matthias Radestock
36ea7907e4 export less & comment more
to make the linter happy
2018-04-12 17:24:29 +01:00
Matthias Radestock
24672ed046 do not truncate tables
Limiting env vars, docker&k8s labels, and weave net connection entries
to 20 is problematic because

- the truncation is arbitrary - there is a good chance that if you
care about a specific entry it won't be there

- the truncation is not consistent - different entries get truncated
at different times

- some of the rendering logic depends on specific labels, for example
namespace filtering of containers depends on the
`io.kubernetes.pod.namespace` label.

In practice, there should never be a huge number of labels, or Weave
Net connection entries. So there is no need to truncate them.

That leaves env vars. These are of limited use, so we now omit them by
default. If they are included they are included in full, so they are
actually useful.

Fixes #3127
2018-04-12 17:13:58 +01:00
Bryan Boreham
593952cd6e Move report creation outside of timing loop 2018-04-12 10:02:50 +00:00
Bryan Boreham
e2b4b3edf6 Merge pull request #3135 from weaveworks/map-one
Simplify Map.Render()
2018-04-10 16:10:57 +01:00
Bryan Boreham
7e63d0fd19 Comment 2018-04-10 13:25:54 +00:00
Filip Barl
c86e93199f Update yarn.lock 2018-04-10 10:09:33 +02:00
Filip Barl
e8f423a337 Merge pull request #3134 from weaveworks/use-json-stable-stringify
Don't update route if it hasn't changed
2018-04-09 20:44:16 +02:00
Filip Barl
30c99d0e28 Merge pull request #3136 from weaveworks/161-switch-to-theme-cyan-colors
Switch to theme cyan colors
2018-04-09 16:52:46 +02:00
Filip Barl
52c4da32af Switch to theme cyan colors. 2018-04-09 16:10:31 +02:00
Bryan Boreham
dd087cff01 Use joinResults to accumulate nodes in Map.Render()
joinResults grew out of a special case of Map.Render(), so now we
merge the two lines back together and have just one way to accumulate
results and remap adjacencies.
2018-04-09 13:16:40 +00:00
Bryan Boreham
e3539a8d92 MapFunc is now Node->Node
Save time creating a map for the results which contains at most one entry
2018-04-09 13:16:40 +00:00
Bryan Boreham
ced27b298c Turn Map2Parent into a Renderer
This is the last MapFunc which returns multiple Nodes, so by turning
it into a Renderer we open the door to simplifing every other MapFunc.
2018-04-09 13:16:40 +00:00
Filip Barl
99e4870d99 Don't update route if it hasn't changed. 2018-04-09 09:42:43 +02:00
Filip Barl
c938a5ffa4 Bump ui-components to v0.4.51 2018-04-05 17:16:17 +02:00
Bryan Boreham
9873ab2ea7 Merge pull request #3129 from weaveworks/fix-latestmap-printf
Fix format string to work for all types
2018-04-05 15:44:19 +01:00
Matthias Radestock
e36081ac22 Merge pull request #3128 from doodlesbykumbi/patch-1
documentation fix: project for openshift installation
2018-04-05 11:35:50 +01:00
Bryan Boreham
27cf8f3b06 Fix format string to work for all types 2018-04-05 08:18:52 +00:00
doodlesbykumbi
3ac9b6c06a fix: project for openshift installation 2018-04-05 01:38:58 +01:00
Matthias Radestock
805572d70e refactor: inline single-use constant 2018-04-02 13:50:22 +01:00
Matthias Radestock
e852b18e42 refactor: remove unused constant 2018-04-02 13:48:29 +01:00
Matthias Radestock
fd3ac19c02 refactor: remove dead code 2018-04-02 13:27:51 +01:00
Matthias Radestock
3a8cad1803 Merge pull request #3126 from weaveworks/3083-no-failed-pods
don't show Failed pods

Fixes #3083.
2018-04-02 11:49:10 +01:00
Matthias Radestock
feae4f4fcf don't show Failed pods
these are not alive, and Scope generally only shows the living, not
the dead.
2018-04-02 11:03:25 +01:00
Matthias Radestock
27fb3571e1 refactor: remove StateDeleted from map keys
since it is a map value, not a key.
2018-04-02 11:03:01 +01:00
Filip Barl
3090cdcfe5 Merge pull request #3124 from weaveworks/bump-ui-components-to-0-4-48
Bump ui-components
2018-03-28 16:43:16 +02:00
Filip Barl
9f0b359199 Bump ui-components to v0.4.49 2018-03-28 12:18:09 +02:00
Filip Barl
7838f3063b Bump ui-components to v0.4.48 2018-03-28 11:42:58 +02:00
Matthias Radestock
012ee77b20 Merge pull request #3121 from weaveworks/3113-shortcut
make shortcut reports work (again)
2018-03-25 12:43:34 +01:00
Matthias Radestock
076acdb319 send shortcut reports on all container state changes
This got broken in cec750049f.
2018-03-25 09:08:45 +01:00
Matthias Radestock
eaafe4db6f copy Shortcut property in Report.Copy()
This was causing shortcut reports to be delivered as normal reports.

This got broken in 0ecb908c22, when Report.BackwardCompatible(),
which does a Copy(), was introduced in the publishing path.

Fixes #3113.
2018-03-25 09:02:36 +01:00
Filip Barl
5f8da6d077 Merge pull request #3116 from weaveworks/3115-enforce-theme-colors
Enforce theme colors
2018-03-22 15:51:43 +01:00
Roland Schilter
a5b4b7c4ca Fix eslint error 2018-03-21 11:31:42 -07:00
Sidney Wijngaarde
b22b3d6784 Adds link datatype to ui (#3105) 2018-03-21 10:41:38 -07:00
Filip Barl
109bc21b57 Add styled components linting. 2018-03-21 16:01:15 +01:00
Filip Barl
631077b68a Use colors from ui-components theme. 2018-03-21 15:49:52 +01:00
Filip Barl
3d55b23d1b Bump ui-components to v0.4.42 2018-03-21 15:20:59 +01:00
Filip Barl
cdb3b99712 Include .sass-lint.yml in Dockerfile. 2018-03-21 15:18:30 +01:00
Filip Barl
f12146042c Simplified internal Scope color variables. 2018-03-21 12:29:49 +01:00