Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tensho opened this issue Aug 11, 2022 · 0 comments
Open

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

Tensho opened this issue Aug 11, 2022 · 0 comments

Comments

@Tensho
Copy link

Tensho commented Aug 11, 2022

👻 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

🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant