故障指路-系统日志-systemd: Scope libcontainer-19274-systemd-test-default-dependencies.scope has no PIDs. Refusing


  • 参考文档
https://my.oschina.net/u/4339825/blog/3318910
https://stackoverflow.com/questions/60593671/kubernetes-1-7-calico-log-message-calico-node-felix-live-bird-live-and-timeou
  • 系统大量刷如下日志
tail -f /var/log/messages
systemd: Scope libcontainer-19274-systemd-test-default-dependencies.scope has no PIDs. Refusing
  • 直接翻译问题原因
There is already opened issue on Github, more details can be found here.

This issue is related with cgroup-driver. In newest Kubernetes version is set to systemd instead of cgroupfs.

One workaround is to configure rsyslog. Steps are well sescribed on this site. Below short version:
## 翻译
问题原因跟cgroup-driver有关,最新版本的kubernetes配置cgroup-driver为systemd,而不是cgroupfs
  • 解决办法
cd /etc/rsyslog.d

vim ignore-systemd-session-slice.conf
## 添加如下内容
if ($programname == "systemd") and ($msg contains "_systemd_test_default.slice" or$msg contains "systemd-test-default-dependencies.scope") then {
  stop
}

## 重启rsyslog服务
service rsyslog restart


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM