test-kitchen / dokken-images

Minimal Docker Images for testing
https://kitchen.ci
Other
26 stars 30 forks source link

Run-List doesn't execute for centos-stream-9 when using Podman or Colima instead of Docker Desktop #119

Open koldrid opened 9 months ago

koldrid commented 9 months ago

:speaking_head: 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.

:ghost: Brief Description

Recently changed from Docker Desktop for Mac due to licensing to use Podman or Colima. We have been testing our cookbooks with centos-stream-9 and Docker Desktop and everything has been fine. Once we migrated to Podman and then Colima thinking this was a bug with those replacements Test-Kitchen looks to have completed successfully after setup but looking at the output nothing 'Chef-wise' is done on the host. It's like you passed the host an empty runlist. Decided to try the Oracle 7 image and it worked as expected, run-list was executed with both Podman and Colima.

Version

Latest Dokken Images Test Kitchen version: 3.6.0 kitchen-dokken (2.20.3)

Environment

M2 MacBook Pro Chef Workstation 23.12.1055

Scenario

Trying to get the Centos Stream 9 image to work

Steps to Reproduce

Expected Result

Runlist to be executed

Actual Result

Test-Kitchen completes successfully without error and the runlist is not executed.

:heavy_plus_sign: Additional context

kitchen setup centos -----> Starting Test Kitchen (v3.6.0) -----> Creating ... /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/lockfile-2.1.3/lib/lockfile.rb:308: warning: finalizer references object to be finalized /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/lockfile-2.1.3/lib/lockfile.rb:308: warning: finalizer references object to be finalized Creating kitchen sandbox at /Users/koldrid/.dokken/kitchen_sandbox/72a21bdce4-default-centos-stream-9 Creating verifier sandbox at /Users/koldrid/.dokken/verifier_sandbox/72a21bdce4-default-centos-stream-9 Building work image.. Creating container 72a21bdce4-default-centos-stream-9 Finished creating (0m1.07s). -----> Converging ... Creating kitchen sandbox in /Users/koldrid/.dokken/kitchen_sandbox/72a21bdce4-default-centos-stream-9 Preparing dna.json Resolving cookbook dependencies with Berkshelf 8.0.9... Removing non-cookbook files before transfer Preparing data_bags Preparing environments Preparing roles Preparing validation.pem Preparing client.rb Finished converging (0m4.15s). -----> Setting up ... Finished setting up (0m0.00s). -----> Test Kitchen is finished. (0m6.06s)

docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 067c275498fb 72a21bdce4-default-centos-stream-9:latest "/usr/lib/systemd/sy…" 2 minutes ago Exited (255) About a minute ago 72a21bdce4-default-centos-stream-9 b197c00adffe chef/chef:18.2.7 "true" 18 hours ago Created chef-18.2.7-linux-amd64

koldrid commented 9 months ago

After some more testing it looks like it fails on Oracle 9 as well. However Centos Stream 8 and Oracle 8 work fine.