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

Kitchen breaks with Amazon ARM instances and Workstation #530

Closed
thheinen opened this issue Sep 16, 2020 · 4 comments
Closed

Kitchen breaks with Amazon ARM instances and Workstation #530

thheinen opened this issue Sep 16, 2020 · 4 comments

Comments

@thheinen
Copy link
Contributor

👻 Brief Description

Kitchen fails with Amazon ARM instances, if Chef Workstation is selected as provisioner.

This issue is intended to help people out who run into this problem and to supply a workaround until Chef Workstation ARM packages are available.

Version

2.6.0

Environment

  • Cloud: AWS
  • Region: eu-west-1
  • Instance: t4g.nano
  • AMI: Amazon Linux 2 (ARM) ami-028f419d2bf90fe5d

Scenario

Using TK with ARM-based machines to save money ;)

Steps to Reproduce

  1. create a t4g.nano instance with recent Amazon2 ARM AMI
  2. try converging against it and an error appears

Expected Result

Converged machine

Actual Result

       Preparing data_bags
       Preparing solo.rb
       el 7 aarch64
       Getting information for chef-workstation stable latest for el...
       downloading https://omnitruck.chef.io/stable/chef-workstation/metadata?v=latest&p=el&pv=7&m=aarch64
         to file /tmp/kitchen/metadata.txt
       trying wget...
       ERROR 404
       Omnitruck artifact does not exist for version latest on platform el

The expected URL https://omnitruck.chef.io/stable/chef-workstation/metadata?v=latest&p=amazon&pv=2&m=aarch64 is returning 404 as there are no Chef Workstation ARM packages yet. This is known and documented in chef/chef-workstation#1280

Workaround is to just use Chef Client:

platforms:
  - name: amazon-arm
    provisioner:
      product_name: chef
    driver:
      instance_type: t4g.nano # or other types from c6g, m6g, r6g etc
      image_search:
       owner-id: 137112412989
       name: amzn2-ami-hvm-2.0.*-arm64-gp2
@thheinen thheinen changed the title Kitchen fails to detect Amazon Linux2 (ARM) properly. Kitchen breaks with Amazon ARM instances and Workstation Nov 12, 2020
@tas50
Copy link
Member

tas50 commented Jan 11, 2021

@tecracer-theinen Should this be in the Test Kitchen repo or the kitchen-ec2 repo?

@thheinen
Copy link
Contributor Author

True, that should be kitchen-ec2. Apologies.

@tas50 tas50 transferred this issue from test-kitchen/test-kitchen Jan 11, 2021
@tas50
Copy link
Member

tas50 commented Jan 11, 2021

No worries @tecracer-theinen. I moved it to the correct repo so we can track it directly in the driver

@tas50
Copy link
Member

tas50 commented Jan 11, 2021

@tecracer-theinen This is actually something we can't fix via Test Kitchen. If you're provisioning Chef Workstation you need to be on a platform that Workstation supports. We don't currently support arm installs of Workstation so this is failing where we'd expect it to. You should be able to provision with the chef-client without issues since we produce arm builds there.

@tas50 tas50 closed this as completed Jan 11, 2021
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

2 participants