fix: Add _initialize_package_installation for Fedora#4474
Merged
LiliDeng merged 2 commits intoMay 19, 2026
Conversation
- Clean and refresh dnf metadata cache before first package install - Prevents stale metadata failures on fresh VMs Signed-off-by: Bala Konda Reddy M <bala12352@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a Fedora-specific _initialize_package_installation() hook to refresh DNF metadata before the first package installation, aiming to reduce intermittent package install failures on freshly provisioned Fedora (e.g., Rawhide) nodes.
Changes:
- Add Fedora override of
_initialize_package_installation()to rundnf clean metadataanddnf makecachebefore first package operation. - Add retry behavior around the initialization to tolerate transient failures.
Signed-off-by: Bala Konda Reddy M <bala12352@gmail.com>
LiliDeng
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add
_initialize_package_installation()override in the Fedora class to refresh DNF metadata cache before the first package installation. On freshly provisioned Fedora VMs, package installations can fail due to stale DNF metadata. Seen intermittent failures during daily runs for Fedora Rawhide.This mirrors the existing pattern in the Debian class which runs
apt-get updatebefore first package install.Changes
dnf clean metadatato remove stale cachednf makecacheto download fresh repository metadataRelated Issue
Type of Change
Checklist
Test Validation
Key Test Cases:
verify_network_interface_reload_via_ip_link
Impacted LISA Features:
NetworkInterface
Tested Azure Marketplace Images:
Test Results