Skip to content

platform: linux/amd64 config is ignored. dokken image shows aarch64.Β #288

@sfdcfluong

Description

@sfdcfluong

πŸ‘» Brief Description

platform: linux/amd64 config is ignored. dokken image shows aarch64.
https://kitchen.ci/docs/drivers/dokken/#platform

Version

Environment

Macos ventura Darwin Kernel Version 21.6.0: Sun Nov 6 23:31:13 PST 2022; root:xnu-8020.240.14~1/RELEASE_ARM64_T6000 arm64

image

Scenario

My chef recipe adds a yum repo and updates a package but I get No candidate version available for <package>. Probably because of the architecture: aarch64.

# kitchen login
uname -a 
Linux dokken 5.10.124-linuxkit #1 SMP PREEMPT Thu Jun 30 08:18:26 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

Steps to Reproduce

I can't really provide this in a usable fashion because my current chef recipe specifies an internal yum repo.

Expected Result

[What are you expecting to happen as the consequence of above reproduction steps?]

Actual Result

note: this works just fine with kitchen-docker but I can't get this to work with kitcken-dokken... I suspect the platform aarch64 is the problem.

         * yum_package[docker-ce] action upgrade
           * No candidate version available for docker-ce
           ================================================================================
           Error executing action `upgrade` on resource 'yum_package[docker-ce]'
           ================================================================================
           
           Chef::Exceptions::Package
           -------------------------
           No candidate version available for docker-ce

βž• Additional context

here's what my kitchen.yml looks like:

---
# https://kitchen.ci/docs/drivers/dokken/
driver:
  name: dokken
  platform: linux/amd64

provisioner:
  name: dokken

transport:
  name: dokken

verifier:
  name: inspec

platforms:
  - name: centos-7
    driver:
      platform: linux/amd64
      privileged: true
      userns_host: true
      pid_one_command: /usr/lib/systemd/systemd
      volumes:
        - /sys/fs/cgroup:/sys/fs/cgroup:ro # required by systemd

suites:
  - name: default
    run_list:
      - recipe[my_recipe::default]
    attributes: { kitchen: true }
    verifier:
      inspec_tests:
        - test/integration/default

Metadata

Metadata

Assignees

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