故障指路-系統日志-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