<p>I am running Kubernetes 1.17 cluster with Calico CNI running on containerd. my servers are running CentOS 8, all my nodes I am getting this log message. how to stop these messages?</p>

<pre><code>Mar  8 21:15:48 node03 systemd[1]: Removed slice libcontainer_14289_systemd_test_default.slice.
Mar  8 21:15:48 node03 containerd[1400]: time="2020-03-08T21:15:48.641993033-04:00" level=info msg="ExecSync for "a5e553ee2fd117b0724f56fd9606031f187f4ca0aa468c31f90690f305f49a89" returns with exit code 0"
Mar  8 21:15:50 node03 containerd[1400]: time="2020-03-08T21:15:50.606510411-04:00" level=info msg="ExecSync for "a5e553ee2fd117b0724f56fd9606031f187f4ca0aa468c31f90690f305f49a89" with command [/bin/calico-node -felix-live -bird-live] and timeout 1 (s)"
Mar  8 21:15:50 node03 systemd[1]: libcontainer-14399-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.
Mar  8 21:15:50 node03 systemd[1]: libcontainer-14399-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.
Mar  8 21:15:50 node03 systemd[1]: Created slice libcontainer_14399_systemd_test_default.slice.
Mar  8 21:15:50 node03 systemd[1]: Removed slice libcontainer_14399_systemd_test_default.slice.
Mar  8 21:15:50 node03 systemd[1]: libcontainer-14405-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.
Mar  8 21:15:50 node03 systemd[1]: libcontainer-14405-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.
Mar  8 21:15:50 node03 systemd[1]: Created slice libcontainer_14405_systemd_test_default.slice.
Mar  8 21:15:50 node03 systemd[1]: Removed slice libcontainer_14405_systemd_test_default.slice.
Mar  8 21:15:50 node03 systemd[1]: libcontainer-14411-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.
Mar  8 21:15:50 node03 systemd[1]: libcontainer-14411-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.
Mar  8 21:15:50 node03 systemd[1]: Created slice libcontainer_14411_systemd_test_default.slice.
Mar  8 21:15:50 node03 systemd[1]: Removed slice libcontainer_14411_systemd_test_default.slice.
Mar  8 21:15:50 node03 systemd[1]: libcontainer-14417-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.
Mar  8 21:15:50 node03 systemd[1]: libcontainer-14417-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.
Mar  8 21:15:50 node03 systemd[1]: Created slice libcontainer_14417_systemd_test_default.slice.
Mar  8 21:15:50 node03 systemd[1]: Removed slice libcontainer_14417_systemd_test_default.slice.
Mar  8 21:15:50 node03 systemd[1]: libcontainer-14437-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.
Mar  8 21:15:50 node03 systemd[1]: libcontainer-14437-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.
Mar  8 21:15:50 node03 systemd[1]: Created slice libcontainer_14437_systemd_test_default.slice.
Mar  8 21:15:50 node03 systemd[1]: Removed slice libcontainer_14437_systemd_test_default.slice.
Mar  8 21:15:50 node03 containerd[1400]: time="2020-03-08T21:15:50.775530563-04:00" level=info msg="Exec process "1f990c60ac0163d4a69c3ac6d2c1c2c53458d872e3d7e950cb89bcf2365c4601" exits with exit code 0 and error &lt;nil&gt;"
Mar  8 21:15:50 node03 containerd[1400]: time="2020-03-08T21:15:50.775615176-04:00" level=info msg="Finish piping "stdout" of container exec "1f990c60ac0163d4a69c3ac6d2c1c2c53458d872e3d7e950cb89bcf2365c4601""
</code></pre>

sfgroups
<p>There is already opened issue on Github, more details can be found <a href="https://github.com/kubernetes/kubernetes/issues/71887" rel="nofollow noreferrer">here</a>.</p>
<p>This issue is related with <code>cgroup-driver</code>. In newest Kubernetes version is set to <code>systemd</code> instead of <code>cgroupfs</code>.</p>
<p>One workaround is to configure <code>rsyslog</code>. Steps are well sescribed on <a href="https://www.ibm.com/support/pages/recurring-messages-complain-scope-libcontainer-nnnnn-has-no-pids-refusing" rel="nofollow noreferrer">this site</a>. Below short version:</p>
<pre><code>$ cd /etc/rsyslog.d
</code></pre>
<p>Create a file <code>ignore-systemd-session-slice.conf</code> with content:</p>
<pre><code>if ($programname == &quot;systemd&quot;) and ($msg contains &quot;_systemd_test_default.slice&quot; or $msg contains &quot;systemd-test-default-dependencies.scope&quot;) then {
  stop
}
</code></pre>
<p>After that service rsyslog must be restarted.</p>
<pre><code>$ service rsyslog restart
</code></pre>
<p>Another way is to use <code>cgroupfs</code> as <code>cgroup-driver</code>.
This also was discussed on <a href="https://github.com/moby/moby/issues/30628" rel="nofollow noreferrer">this Github thread</a>.</p>
<hr />
<p>added these to ignore the logs</p>
<p><code>cat  /etc/rsyslog.d/ignore-systemd-session-slice.conf</code> file</p>
<pre><code>if ($programname == &quot;systemd&quot;) and ($msg contains &quot;_systemd_test_default.slice&quot; or $msg contains &quot;systemd-test-default-dependencies.scope&quot; or $msg contains &quot; Failed to get system container stats for&quot;) then {
  stop
}
if ($programname == &quot;kubelet&quot;) and ($msg contains &quot; Failed to get system container stats for&quot; or $msg contains &quot;test_default.slice&quot;) then {
  stop
}

if ($programname == &quot;systemd&quot;) and ($msg contains &quot;Starting Session&quot; or $msg contains &quot;Started Session&quot; or $msg contains &quot;Created slice&quot; or $msg contains &quot;Starting user-&quot; or $msg contains &quot;Starting User Slice of&quot; or $msg contains &quot;Removed session&quot; or $msg contains &quot;Removed slice User Slice of&quot; or $msg contains &quot;Stopping User Slice of&quot;) then {
        stop
}
if ($programname == &quot;containerd&quot;) and ($msg regex &quot;Exec process.*with exit code 0&quot; or $msg regex &quot;ExecSync for.*with exit code 0&quot; or $msg contains &quot;Finish piping&quot;) then {
  stop
}
</code></pre>
