Skip to content

lab2: import a pinned Fedora 42 qcow2 image - #1054

Open
fjvbn2003 wants to merge 1 commit into
kubevirt:mainfrom
fjvbn2003:lab2-fedora-image
Open

fjvbn2003 wants to merge 1 commit into
kubevirt:mainfrom
fjvbn2003:lab2-fedora-image

Conversation

@fjvbn2003

Copy link
Copy Markdown

What this PR does / why we need it:

Lab 2 (CDI) imports a Fedora 40 cloud image from download.fedoraproject.org. Fedora 40 is EOL and the file moved to the archive, so the URL now redirects to a 404 and the DataVolume import fails. This is the second time the lab URL has rotted (the issue was opened for the Fedora 37 URL).

This PR switches the DataVolume to the Fedora 42 Generic qcow2 image on archives.fedoraproject.org:

https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/42/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-42-1.1.x86_64.qcow2

Why this one:

  • Archived releases are kept permanently (releases/20, 30 and 37 are still there), so the URL should not 404 again when the next release goes EOL. A current-release URL (for example Fedora 44 on download.fedoraproject.org) would move to the archive about a year from now.
  • qcow2 avoids xz decompression in the importer, which is slow (xz decompression extremely slow for non-trivial images containerized-data-importer#4276).
  • The Generic image is the KVM/OpenStack cloud image with cloud-init and the fedora user the later lab steps use. Its virtual size is 5 GiB, the same as before, so the 5Gi request is unchanged.

I also updated the lab text, which still said "Fedora37". The only other fedoraproject.org download URLs in the repo are in old blog posts, which I left alone.

If you would rather track the latest release, I am happy to switch to the Fedora 44 qcow2 instead.

Does this PR fix any issue?:

Fixes #948

Special notes for your reviewer:

What was checked locally (2026-10-30):

  • Old URL: 302 to a mirror, then 404.
  • New URL: HTTP/1.1 200, Content-Length: 532217856, Accept-Ranges: bytes. The length matches the size in the release's Fedora-Cloud-42-1.1-x86_64-CHECKSUM file.
  • curl -r 0-3 returns 206 with QFI\xfb, the qcow2 magic. The qcow2 header gives a virtual size of 5368709120 bytes (5 GiB).

Not done: I did not run the lab end to end (CDI import, VM boot, ssh) on a cluster for this change.

Prepared with help from Claude (AI), including the local test described above.

@kubevirt-prow kubevirt-prow Bot added do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Oct 29, 2026
@kubevirt-prow

kubevirt-prow Bot commented Oct 29, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign davidvossel for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-prow

kubevirt-prow Bot commented Oct 29, 2026

Copy link
Copy Markdown

Hi @fjvbn2003. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

The Fedora 40 raw.xz URL used by the CDI lab now returns 404 because
Fedora 40 reached end of life and its images moved to the archive.

Point the DataVolume at the Fedora 42 Generic qcow2 image on
archives.fedoraproject.org. Archived releases are kept there
permanently, so the URL should not rot again when the next Fedora
release goes EOL. The qcow2 image also avoids decompressing xz in the
importer, which is slow (see the CDI issue linked in the PR).
Its virtual size is 5 GiB, so the 5Gi request stays the same.

Also update the lab text, which still mentioned Fedora 37.

Assisted-by: Claude <[email protected]>
Signed-off-by: YoungjuKim <[email protected]>
@kubevirt-prow kubevirt-prow Bot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Oct 29, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Labs - Experiment with CDI Outdated

1 participant