-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
🗣️ Foreword
Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.
👻 Brief Description
Unable to converge an Amazon Linux 2 container and getting the following error
STDERR: Failed to get D-Bus connection: No such file or directory
Version
kitchen-dokken (2.8.2)
docker-api (~> 1.33)
lockfile (~> 2.1)
test-kitchen (>= 1.15, < 3)
Environment
- OS Ubuntu 22.04
- Docker version 20.10.23, build 7155243
Scenario
Trying, unsuccessfully, to converge an Amazon Linux 2 Docker container
Steps to Reproduce
Here is my config:
driver:
name: dokken
chef_version: 17.10.0
chef_image: doximity/cinc
chef_binary: /opt/chef/bin/cinc-client
env:
- AWS_REGION=<%= ENV['AWS_REGION'] %>
- AWS_ACCESS_KEY_ID=<%= ENV['AWS_ACCESS_KEY_ID'] %>
- AWS_SECRET_ACCESS_KEY=<%= ENV['AWS_SECRET_ACCESS_KEY'] %>
- AWS_SESSION_TOKEN=<%= ENV['AWS_SESSION_TOKEN'] %>
transport:
name: dokken
provisioner:
name: dokken
product_version: 14.999
deprecations_as_errors: false
nodes_path: test/fixtures/nodes
roles_path: test/fixtures/roles
environments_path: test/fixtures/environments
client_rb:
environment: kitchen
verifier:
name: inspec
platforms:
- name: amazonlinux
driver:
image: dokken/amazonlinux-2
privileged: true
pid_one_command: /usr/lib/systemd/systemd
cgroupns_host: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
The above platforms
configuration is based on https://kitchen.ci/docs/drivers/dokken/#cgroupns_host but I'm still getting the following full error:
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of ["/usr/bin/systemctl", "--system", "show", "-p", "UnitFileState", "-p", "ActiveState", "sensu-agent"] ----
STDOUT:
STDERR: Failed to get D-Bus connection: No such file or directory
---- End output of ["/usr/bin/systemctl", "--system", "show", "-p", "UnitFileState", "-p", "ActiveState", "sensu-agent"] ----
Ran ["/usr/bin/systemctl", "--system", "show", "-p", "UnitFileState", "-p", "ActiveState", "sensu-agent"] returned 1
Expected Result
I expect the container to spin up and converge correctly
Actual Result
I shared the error message above
Metadata
Metadata
Assignees
Labels
No labels