Create bpf stop file differently

Somehow the /proc/pid/root thing is not creating a file that can be
seen inside the container any more.
This commit is contained in:
Bryan Boreham
2018-08-24 22:45:41 +00:00
parent c1b1ee2a1b
commit efd4bbd5be

View File

@@ -20,8 +20,7 @@ has_container "$HOST1" nginx
has_container "$HOST1" client
has_connection containers "$HOST1" client nginx
# shellcheck disable=SC2016
run_on "$HOST1" 'echo stop | sudo tee /proc/$(pidof scope-probe)/root/var/run/scope/debug-bpf'
docker_on "$HOST1" exec weavescope sh -c "echo stop > /var/run/scope/debug-bpf"
sleep 5
server_on "$HOST1" "nginx2"
@@ -37,8 +36,7 @@ has_connection containers "$HOST1" client2 nginx2
exec 3>&1
assert_raises "docker_on $HOST1 logs weavescope 2>&1 | grep 'ebpf tracker died, restarting it' || (docker_on $HOST1 logs weavescope 2>&3 ; false)"
# shellcheck disable=SC2016
run_on "$HOST1" 'echo stop | sudo tee /proc/$(pidof scope-probe)/root/var/run/scope/debug-bpf'
docker_on "$HOST1" exec weavescope sh -c "echo stop > /var/run/scope/debug-bpf"
sleep 5
server_on "$HOST1" "nginx3"