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.04 is not available #90

Open
yxyj1919 opened this issue Dec 30, 2024 · 2 comments
Open

Ubuntu 22.04.04 is not available #90

yxyj1919 opened this issue Dec 30, 2024 · 2 comments
Assignees

Comments

@yxyj1919
Copy link

What steps did you take and what happened:
I was trying to build the template with Ubnuntu 22.04. The job failed due to 22.04.04 is not available

make run-artifacts-container KUBERNETES_VERSION=v1.27.11+vmware.1-fips.1 ARTIFACTS_CONTAINER_PORT=9091 

make build-node-image OS_TARGET=ubuntu-2204-efi KUBERNETES_VERSION=v1.27.11+vmware.1-fips.1 TKR_SUFFIX=changwbyoi HOST_IP=192.168.100.247 IMAGE_ARTIFACTS_PATH=/home/admin/image ARTIFACTS_CONTAINER_PORT=9091 PACKER_HTTP_PORT=8082
==> vsphere-iso.vsphere: Trying https://releases.ubuntu.com/22.04.4/ubuntu-22.04.4-live-server-amd64.iso
==> vsphere-iso.vsphere: Trying https://releases.ubuntu.com/22.04.4/ubuntu-22.04.4-live-server-amd64.iso?checksum=sha256%3A45f873de9f8cb637345d6e66a583762730bbea30277ef7b32c9c3bd6700a32b2
==> vsphere-iso.vsphere: Download failed bad response code: 404
==> vsphere-iso.vsphere: error downloading ISO: [bad response code: 404]
==> vsphere-iso.vsphere: error downloading ISO: [bad response code: 404]
==> vsphere-iso.vsphere: Step "StepDownload" failed
Build 'vsphere-iso.vsphere' errored after 4 seconds 898 milliseconds: error downloading ISO: [bad response code: 404]

I tried to access the URL https://releases.ubuntu.com/ and confirmed that the 22.04.04 is not available at this momoment.

What did you expect to happen:
Complete the template build job

Is there anything else you would like to add?
No

Value How to Obtain
Commit ID 9e95fdd4bb991b0a0ab4b6dfdf79f45d793077b8 Run git log -1
Kubernetes Version Kubernetes version that you are trying to build the image
OS Type OS Type and version that you are trying to build the image
@galop
Copy link
Contributor

galop commented Jan 2, 2025

You can override the ISO path. Here is how-to.
Create a json containing below values.

{
    "iso_url": "https://old-releases.ubuntu.com/releases/jammy/ubuntu-22.04.4-live-server-amd64.iso",
    "iso_checksum": "9bc6028870aef3f74f4e16b900008179e78b130e6b0b9a140635434a46aa98b0"
}

Then modify your build-node-image command to include a parameter ADDITIONAL_PACKER_VARIABLE_FILES with path to above json. Example below:

ADDITIONAL_PACKER_VARIABLE_FILES=path/of/input.json make build-node-image OS_TARGET=ubuntu-2204-efi KUBERNETES_VERSION=v1.27.11+vmware.1-fips.1 TKR_SUFFIX=changwbyoi HOST_IP=192.168.100.247 IMAGE_ARTIFACTS_PATH=/home/admin/image ARTIFACTS_CONTAINER_PORT=9091 PACKER_HTTP_PORT=8082

@galop galop self-assigned this Jan 2, 2025
@yxyj1919
Copy link
Author

yxyj1919 commented Jan 2, 2025

Thanks for your update.
The workaround is working. Only one thing needs to modify.
The iso_checksum is 45f873de9f8cb637345d6e66a583762730bbea30277ef7b32c9c3bd6700a32b2
https://old-releases.ubuntu.com/releases/jammy/SHA256SUMS

{
    "iso_url": "https://old-releases.ubuntu.com/releases/jammy/ubuntu-22.04.4-live-server-amd64.iso",
    "iso_checksum": "45f873de9f8cb637345d6e66a583762730bbea30277ef7b32c9c3bd6700a32b2"
}

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