Skip to content

Conversation

@girodav
Copy link
Contributor

@girodav girodav commented Jun 27, 2022

System tests using the Terraform deployer fail on M1 Macbooks, due to the change of architecture from intel/x86 to M1/ARM.

The installation of the google cloud SDK within the container fails with the following error:

#6 13.66 Preparing to unpack .../google-cloud-sdk_370.0.0-0_all.deb ...
#6 13.66 Unpacking google-cloud-sdk (370.0.0-0) ...
#6 22.80 Setting up google-cloud-sdk (370.0.0-0) ...
#6 22.81 qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
#6 22.81 dpkg: error processing package google-cloud-sdk (--configure):

The reason is that, since no platform version is specifically defined, an ARM-related image is downloaded, and they do not have that library (see also https://stackoverflow.com/a/71611002 for reference)

Forcing linux/amd64 as platform version in the Dockerfile fixes the issue.

@mtojek mtojek requested a review from a team June 27, 2022 12:08
@mtojek mtojek marked this pull request as ready for review June 27, 2022 12:08
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-06-27T12:03:30.269+0000

  • Duration: 29 min 17 sec

Test stats 🧪

Test Results
Failed 0
Passed 742
Skipped 0
Total 742

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link
Collaborator

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (31/31) 💚
Files 66.071% (74/112) 👍
Classes 61.146% (96/157) 👍
Methods 49.126% (309/629) 👍
Lines 33.068% (2784/8419) 👍
Conditionals 100.0% (0/0) 💚

@mtojek mtojek merged commit aed8c7d into elastic:main Jun 27, 2022
@mtojek
Copy link
Contributor

mtojek commented Jun 27, 2022

Merged, thanks! I'm convinced that it will help many folks :)

@girodav girodav deleted the fix-terraform-deployer-m1 branch June 28, 2022 10:08
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

Successfully merging this pull request may close these issues.

3 participants