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

Ubuntu 22.04 failing to create image #11407

Open
2 of 16 tasks
PottsSG opened this issue Jan 16, 2025 · 6 comments
Open
2 of 16 tasks

Ubuntu 22.04 failing to create image #11407

PottsSG opened this issue Jan 16, 2025 · 6 comments

Comments

@PottsSG
Copy link

PottsSG commented Jan 16, 2025

Description

During the Ubuntu 22.04 image generation, the latest version of Helm is installed as one of the tools. This fails to install and fails the image generation.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

The version of runner-images pulled is:
Date: Thu Jan 16 18:43:53 2025 +0100; Commit: f27bce4

Where a recent successful build was:
Date: Fri Jan 10 16:33:35 2025 +0530; Commit: 8085da9

It is suspected that the change in the latest Helm is the issue though, not runner images. Registering the issue here in case the only solution is to pin the last working version rather than depending on Helm to fix their release.

https://github.com/helm/helm/releases (3.17 released one day ago, tagged as Latest)

Is it regression?

No

Expected behavior

Succeed and continue with the next tool:

...
2025-01-11T01:27:24Z azure-arm.build_image: Downloading https://get.helm.sh/helm-v3.16.4-linux-amd64.tar.gz
2025-01-11T01:27:24Z azure-arm.build_image: Verifying checksum... Done.
2025-01-11T01:27:24Z azure-arm.build_image: Preparing to install helm into /usr/local/bin
2025-01-11T01:27:24Z azure-arm.build_image: helm installed into /usr/local/bin/helm
2025-01-11T01:27:29Z azure-arm.build_image: Performing checksum verification
2025-01-11T01:27:29Z azure-arm.build_image: Checksum verification passed
2025-01-11T01:27:31Z azure-arm.build_image: v5.5.0
2025-01-11T01:27:31Z azure-arm.build_image: kustomize installed to /home/packer/kustomize
2025-01-11T01:27:32Z azure-arm.build_image: Pester v5.7.1
...

Actual behavior

The image generation logs a failure and stops:

...
2025-01-16T17:28:54Z azure-arm.build_image: Downloading https://get.helm.sh/helm-v3.17.0-linux-amd64.tar.gz
2025-01-16T17:28:54Z azure-arm.build_image: Verifying checksum... Done.
2025-01-16T17:28:55Z azure-arm.build_image: Preparing to install helm into /usr/local/bin
2025-01-16T17:28:55Z azure-arm.build_image: helm installed into /usr/local/bin/helm
2025-01-16T17:28:59Z azure-arm.build_image: File name linux-amd64 not found in release body
2025-01-16T17:28:59Z azure-arm.build_image: Provisioning step had errors: Running the cleanup provisioner, if present...
...

Repro steps

Generate an Ubuntu 22.04 image.

@subir0071
Copy link
Contributor

Hi @PottsSG - Thanks for letting us know about the issue. We are looking into it.

@obeyda
Copy link

obeyda commented Jan 16, 2025

Hi, I am getting the same issue.
This is related to the get_checksum_from_github_release call before installing minikube.

https://github.com/actions/runner-images/blob/main/images/ubuntu/scripts/helpers/install.sh#L155-L158

The latest release of minikube doesn't have the Binary Checksums like other releases

I'll be fixing the minikube version to v1.34.0 for now.


Edit:
When trying to fix to v1.34.0, I found a minor bug in https://github.com/actions/runner-images/blob/main/images/ubuntu/scripts/helpers/install.sh : get_github_releases_by_version()

If the version arg is wrong (like I did when I set it to v1.34.0 instead of 1.34.0) we'll have an error when trying to print the error msg here:

        echo "Available versions: $(echo "$json" | jq -r '.tag_name')" >&2

the fix is simple:

        echo "Available versions: $(echo "$json" | jq -r '.[] | .tag_name')" >&2

@jsloan117
Copy link

This appears to be affecting all versions of Ubuntu, not just 20.04.

@cvisavisma
Copy link

cvisavisma commented Jan 17, 2025

Can confirm this affects as well building image for Ubuntu 24.04:

azure-arm.build_image: Downloading https://get.helm.sh/helm-v3.17.0-linux-amd64.tar.gz
azure-arm.build_image: Verifying checksum... Done.
azure-arm.build_image: Preparing to install helm into /usr/local/bin
azure-arm.build_image: helm installed into /usr/local/bin/helm
azure-arm.build_image: File name linux-amd64 not found in release body
azure-arm.build_image: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
azure-arm.build_image: Step "StepProvision" failed

@angaaruriakhil
Copy link

We are having the same issue with Ubuntu 22.04.

Same error as above comment.

helm installed into /usr/local/bin/helm
File name linux-amd64 not found in release body

@j-mie
Copy link

j-mie commented Jan 17, 2025

Impacting us with 24.04 too - I've filed a bug with Minikube, in the meantime you can fix this by changing latest to v1.34.0:

-curl -fsSL -O https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
+curl -fsSL -O https://storage.googleapis.com/minikube/releases/v1.34.0/minikube-linux-amd64

-minikube_hash=$(get_checksum_from_github_release "kubernetes/minikube" "linux-amd64" "latest" "SHA256")
+minikube_hash=$(get_checksum_from_github_release "kubernetes/minikube" "linux-amd64" "1.34.0" "SHA256")

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

No branches or pull requests

7 participants