containers / containers/nri-plugins

failed to create DBus connection: dial unix /var/run/dbus/system_bus_socket: connect : no such file or directory

Open
#346 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
114
Forks
44
Avg merge
1d 8h
Merged PRs (30d)
20

Description

### Bug Description

hello , not sure what im doing wrong but i have

[root@bada-bing-workerbm-0 cbis-admin]# runc -v
runc version 1.1.12
commit: v1.1.12-0-g51d5e94
spec: 1.0.2-dev
go: go1.21.9
libseccomp: 2.5.2

and
[root@bada-bing-workerbm-0 cbis-admin]# containerd --version
containerd github.com/containerd/containerd v1.7.16 83031836b2cf55637d7abf847b17134c51b38e53

(upgraded from containerd containerd.io 1.6.31 by just untar containerd-1.7.16-linux-amd64.tar.gz , hope its good enough )

after installing all nri pods failing with
[root@bada-bing-workerbm-0 cbis-admin]# kubectl logs nri-resource-policy-balloons-kssz7 -n kube-system
Defaulted container "nri-resource-policy-balloons" out of: nri-resource-policy-balloons, patch-runtime (init)
time="2024-07-01T06:54:07Z" level=info msg="setting up D-Bus connection..."
time="2024-07-01T06:54:07Z" level=fatal msg="failed to autodetect container runtime: failed to create DBus connection: dial unix /var/run/dbus/system_bus_socket: connect
: no such file or directory"
[root@bada-bing-workerbm-0 cbis-admin]#

[root@bada-bing-workerbm-0 cbis-admin]# kubectl logs nri-resource-policy-balloons-kssz7 -n kube-system -c patch-runtime
time="2024-07-01T06:53:49Z" level=info msg="setting up D-Bus connection..."
time="2024-07-01T06:53:49Z" level=info msg="looking for active runtime units on D-Bus..."
time="2024-07-01T06:53:49Z" level=info msg="found containerd.service..."
time="2024-07-01T06:53:49Z" level=info msg="enabling NRI in containerd configuration..."
time="2024-07-01T06:53:49Z" level=info msg="restarting D-Bus unit containerd.service..."
time="2024-07-01T06:53:50Z" level=info msg="enabled NRI for containerd.service"
[root@bada-bing-workerbm-0 cbis-admin]#

any idea what am i missing ?

Contributor guide

Open the contributing guide

Research direction

Start with the nri-resource-policy-balloons and patch-runtime container logs, then inspect the reported /var/run/dbus/system_bus_socket failure and the containerd.service interaction. Determine the missing prerequisite or configuration difference between the successful patch-runtime step and the failing plugin, and document a reproducible fix or the required environment assumptions.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes, linux
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.