Skip to content

Can't open /opt/kitchen/run_command #280

@Tensho

Description

@Tensho

👻 Brief Description

I have quite an old Chef (12) and nodes (Ubuntu 14.04) setup. After migrating to Apple M1 MacBook and installing the latest Chef Workstation (as ChefDK is deprecated) via Homebrew, the kitchen-docker (another one deprecated thing) driver stopped to download Docker images for the new platform (arm64), because they're absent in Omnitruck (example). I switched to kitchen-dokken, however, Kitchen can't converge cookbook due to the next error:

sh: 0: Can't open /opt/kitchen/run_command

Version

Chef Workstation

$ chef -v
Chef Workstation version: 22.7.1006
Chef Infra Client version: 17.10.0
Chef InSpec version: 4.56.20
Chef CLI version: 5.6.1
Chef Habitat version: 1.6.420
Test Kitchen version: 3.3.1
Cookstyle version: 7.32.1

Kitchen-Dokken

$ chef exec gem list | grep kitchen-dokken
kitchen-dokken (2.17.2)

Environment

OS: MacOS Monterey 12.5 (Chip Apple M1)
Docker: 20.10.17, build 100c701

Kitchen

# kitchen.yml
driver:
  name: dokken
  chef_version: 12.21.3

transport:
  name: dokken

provisioner:
  name: dokken

platforms:
  - name: ubuntu-14.04

Steps to Reproduce

Take any cookbook, add kitchen.yml and try to converge it with the specified environment:

  1. chef exec kitchen create
  2. chef exec kitchen converge

Expected Result

Converge should pass successfully.

Actual Result

$ chef exec kitchen converge abc
-----> Starting Test Kitchen (v3.3.1)
Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead!
Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead!
-----> Converging <abc-ubuntu-1404>...
       Creating kitchen sandbox in /Users/tensho/.dokken/kitchen_sandbox/deadbeef-abc-ubuntu-1404
       Preparing dna.json
       Resolving cookbook dependencies with Berkshelf 8.0.2...
       Removing non-cookbook files before transfer
       Preparing roles
       Preparing validation.pem
       Preparing client.rb
       sh: 0: Can't open /opt/kitchen/run_command
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Converge failed on instance <abc-ubuntu-1404>.  Please see .kitchen/logs/abc-ubuntu-1404.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

➕ Additional context

🤷

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions