Skip to content

Add fedora base repo to get qemu-user-static package#1240

Merged
openshift-merge-bot[bot] merged 1 commit into
crc-org:release-4.21from
praveenkumar:use_fedora_base
Jun 8, 2026
Merged

Add fedora base repo to get qemu-user-static package#1240
openshift-merge-bot[bot] merged 1 commit into
crc-org:release-4.21from
praveenkumar:use_fedora_base

Conversation

@praveenkumar

@praveenkumar praveenkumar commented Jun 8, 2026

Copy link
Copy Markdown
Member

By default qemu-user-static package is part of base repo and doesn't get include to update repo until it have and update. For F44 it is observed that there is no update to this package so install fails since only update repo is checked. This PR make sure both base and update repo is enabled before downloading that package.

Summary by CodeRabbit

  • Bug Fixes
    • Improved Fedora repository configuration for aarch64 disk creation.

By default qemu-user-static package is part of base repo and doesn't
get include to update repo until it have and update. For F44 it is
observed that there is no update to this package so install fails since
only update repo is checked. This PR make sure both base and update repo
is enabled before downloading that package.
@openshift-ci openshift-ci Bot requested review from anjannath and cfergeau June 8, 2026 10:20
@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

This PR updates the Fedora repository configuration for aarch64 systems when downloading qemu-user-static-x86. The change switches from using the Fedora updates repository (fedora-updates.repo) to the base Fedora repository (fedora.repo), updating both the repository file generation and all guest operations that reference it.

Changes

Fedora Repo Configuration for aarch64

Layer / File(s) Summary
Fedora repo file generation
createdisk.sh
Replace the heredoc that generates /tmp/fedora-updates.repo with one that generates /tmp/fedora.repo for the base Fedora 44 repository instead of the updates channel.
Guest repo operations
createdisk.sh
Update all guest operations to upload the new /tmp/fedora.repo file, move it into /etc/yum.repos.d, execute dnf download for qemu-user-static-x86, and then remove the installed repo file.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • crc-org/snc#1223: Both PRs modify the createdisk.sh aarch64 (non-okd) logic for Fedora yum repo configuration used when installing guest packages.
  • crc-org/snc#1125: Both PRs modify the aarch64 (non-okd) path to change how qemu-user-static-x86 is handled in relation to Fedora repo setup and download flow.
  • crc-org/snc#1119: Both PRs modify the same aarch64 (non-okd) flow for qemu-user-static-x86, changing how the temporary Fedora repo is configured and used.

Suggested labels

lgtm, approved

Suggested reviewers

  • cfergeau
  • anjannath

Poem

🐰 From updates we leap, to the base repo we go,
For qemu-user-static on aarch64's flow—
One little switch makes the packages align,
Fedora's foundation, now perfectly fine! 🎯

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding the Fedora base repository to access the qemu-user-static package, which is the core objective of the PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@praveenkumar

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
createdisk.sh (1)

153-169: ⚠️ Potential issue | 🟠 Major

Fix Fedora repo GPG verification: gpgcheck=1 is set but gpgkey= isn’t.
In createdisk.sh (lines 153-169), the generated /tmp/fedora.repo sets gpgcheck=1 for both [fedora] and [fedora-updates] but omits gpgkey=. Fedora’s standard repo stanzas include gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch. Without that (or preinstalled keys), the dnf download on line 172 may fail when verifying package signatures (repo_gpgcheck=0 only disables metadata signature checking). Add gpgkey= to both stanzas (or install/provide Fedora GPG keys before the dnf download; otherwise gpgcheck=0).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@createdisk.sh` around lines 153 - 169, The generated /tmp/fedora.repo in
createdisk.sh sets gpgcheck=1 for [fedora] and [fedora-updates] but omits the
gpgkey, causing dnf download (line 172) to fail signature verification; update
the repo stanzas in createdisk.sh to include a gpgkey entry (e.g.,
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch) for both [fedora]
and [fedora-updates], or alternatively ensure the Fedora RPM GPG keys are
installed/provisioned before the dnf download, or set gpgcheck=0 if you
deliberately want to disable package signature checks. Ensure the change targets
the cat > /tmp/fedora.repo block so the correct repo file is written.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@createdisk.sh`:
- Around line 153-169: The generated /tmp/fedora.repo in createdisk.sh sets
gpgcheck=1 for [fedora] and [fedora-updates] but omits the gpgkey, causing dnf
download (line 172) to fail signature verification; update the repo stanzas in
createdisk.sh to include a gpgkey entry (e.g.,
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch) for both [fedora]
and [fedora-updates], or alternatively ensure the Fedora RPM GPG keys are
installed/provisioned before the dnf download, or set gpgcheck=0 if you
deliberately want to disable package signature checks. Ensure the change targets
the cat > /tmp/fedora.repo block so the correct repo file is written.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c0d65f42-c7c3-4917-8378-9e64c58de84a

📥 Commits

Reviewing files that changed from the base of the PR and between d0dfa25 and 1e753bf.

📒 Files selected for processing (1)
  • createdisk.sh

@cfergeau cfergeau left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@openshift-ci

openshift-ci Bot commented Jun 8, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cfergeau

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

The pull request process is described 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

@openshift-ci openshift-ci Bot added the approved label Jun 8, 2026
@openshift-merge-bot openshift-merge-bot Bot merged commit 72ee47c into crc-org:release-4.21 Jun 8, 2026
5 checks passed
@praveenkumar

Copy link
Copy Markdown
Member Author

/cherry-pick release-4.22

@praveenkumar

Copy link
Copy Markdown
Member Author

/cherry-pick master

@openshift-cherrypick-robot

Copy link
Copy Markdown

@praveenkumar: new pull request created: #1241

Details

In response to this:

/cherry-pick release-4.22

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.

@openshift-cherrypick-robot

Copy link
Copy Markdown

@praveenkumar: new pull request created: #1242

Details

In response to this:

/cherry-pick master

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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants