The seccomp arg filting PR for mknod introduced a change to disable kernel rate limiting in an effort to make debugging output more robust (since the kernel will sometimes throwaway valuable information). Unfortunately, this results in output that is too large and the CI tests fail. Eg: https://travis-ci.org/snapcore/snapd/builds/223540921. Here is a snippet of the output:
2017-04-19 13:36:01 Error executing linode:ubuntu-14.04-64:tests/main/snapd-reexec :
-----
+ '[' '' = 0 ']'
+ echo 'Ensure we re-exec by default'
Ensure we re-exec by default
+ snap list
2017/04/19 13:35:59.295076 main.go:237: WARNING: cannot create syslog logger
2017/04/19 13:35:59.431711 main.go:237: WARNING: cannot create syslog logger
Name Version Rev Developer Notes
core 16-2 1736 canonical -
+ MATCH 'DEBUG: restarting into'
+ journalctl
error: pattern not found, got:
-- Logs begin at Wed 2017-04-19 13:31:24 UTC, end at Wed 2017-04-19 13:31:25 UTC. --
Apr 19 13:31:24 ubuntu kernel: audit: type=1400 audit(1492608684.195:6094): apparmor="DENIED" operation="accept" profile="snap.network-bind-consumer.network-consumer" pid=16384 comm="python3" laddr=127.0.0.1 lport=8081 family="inet" sock_type="stream" protocol=6 requested_mask="accept" denied_mask="accept"
Apr 19 13:31:24 ubuntu kernel: audit: type=1400 audit(1492608684.195:6095): apparmor="DENIED" operation="accept" profile="snap.network-bind-consumer.network-consumer" pid=16384 comm="python3" laddr=127.0.0.1 lport=8081 family="inet" sock_type="stream" protocol=6 requested_mask="accept" denied_mask="accept"
... <thousands of DENIED messages>
It isn’t clear to me, but it looks like this is either highlighting a legitimate problem in the test, network-bind-consumer doesn’t have the correct interfaces or network-bind-consumer is programmed to just slam the network and retry a gagillion times instead of failing gracefully.
I’m bringing up this topic here because I will be reverting the disabling kernel rate limiting in the PR that was triggering this and will reference this topic in the code as a TODO to address in the future.