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

Build of Ubuntu 22.04 fails with latest packer version #9742

Closed
2 of 13 tasks
matthiasbrix opened this issue Apr 25, 2024 · 5 comments
Closed
2 of 13 tasks

Build of Ubuntu 22.04 fails with latest packer version #9742

matthiasbrix opened this issue Apr 25, 2024 · 5 comments

Comments

@matthiasbrix
Copy link

Description

Hi,

The installer script for packer fetches the latest version of packer (1.10.3) which has recently introduced the file LICENSE.txt in the downloaded archive file. This is now causing the build of the ubuntu 22 image (20240422) to fail as the unzip operation in the script install-packer.sh is being prompted with whether replacing the file LICENSE.txt is desired. I suggest adding perhaps an overwrite flag to the unzip operation

==> azure-arm.build_image: Provisioning with shell script: runner-images-ubuntu22-20240422.1/images/ubuntu/templates/../scripts/build/install-packer.sh
==> azure-arm.build_image: Downloading package from https://releases.hashicorp.com/packer/1.10.3/packer_1.10.3_linux_amd64.zip to /tmp/packer_1.10.3_linux_amd64.zip...
==> azure-arm.build_image: Package downloaded in 0 seconds
==> azure-arm.build_image: replace /usr/local/bin/LICENSE.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename:  NULL
==> azure-arm.build_image: (EOF or read error, treating as "[N]one" ...)
==> azure-arm.build_image: Provisioning step had errors: Running the cleanup provisioner, if present...
==> azure-arm.build_image: 
==> azure-arm.build_image: Deleting Virtual Machine deployment and its attatched resources...

Platforms affected

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

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

ubuntu/22-20240422
No public available.

Is it regression?

Yes

Expected behavior

No prompt but a successful unzip.

Actual behavior

Build fails

Repro steps

Just try to build ubuntu 22 image (20240422)

@SebastianClaesson
Copy link

This also affects Ubuntu 20.04 build as both installs Packer.
Seems the Unzip command requires either (-o) over-write or refresh (-f) to overwrite the existing license file under /usr/local/bin/LICENSE.txt

@Alexey-Ayupov
Copy link
Collaborator

Hello @matthiasbrix. We aware of the problem and are working on it.

@mikhailkoliada
Copy link
Contributor

Fixed, please sync your main!

@matthiasbrix
Copy link
Author

@mikhailkoliada - just need a new release with the fix :). Thanks.

@mikhailkoliada
Copy link
Contributor

@matthiasbrix we do not support building from releases, so if it fails no fixes will be provided, the one should always use main to build their own images.

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

4 participants