openEuler SP upgrade failure case collection — metadata fetch failure (measured DNS failure shape), incomplete repo sets, and the kernel retention cap
Verification scope
Section titled “Verification scope”This page’s evidence comes in two tracks: measured track (E2/E3) — one VM-measured metadata fetch failure (openeuler-p2-first-hour-vm.log, a DNS resolution failure shape) and the successful re-run after mirror pinning (openeuler-dnf-history-rollback.log, openeuler-oemaker-custom-iso.log), offline repo-set reading (the VM 381 full log set), and installonly_limit=3 (VM measured); framework track — the SP upgrade flow references this site’s existing SP upgrade page. The actual SP upgrade run was not executed in this environment (the VM keeps its baseline snapshot); the case collection is organized around fault classes.
Case 1: stuck on repodata — metadata fetch failure (measured sample: DNS resolution failure shape)
Section titled “Case 1: stuck on repodata — metadata fetch failure (measured sample: DNS resolution failure shape)”Symptom: dnf update / makecache hangs for a long time and then reportsError: Failed to download metadata for repository 'OS': Curl error (6): Couldn't resolve host name for https://repo.openeuler.org/... … https://mirrors.openeuler.org/metalink?repo=24.03LTS_SP4/... [Could not resolve host]Localization: one measured sample on this site was a VM DNS resolution failure shape (`openeuler-p2-first-hour-vm.log`, Curl error 6); "intermittent timeouts on 302 redirects" is the class's common shape (common community reports, not this site's recording). The successful re-run output after mirror pinning is in `evidence/logs/openeuler-dnf-history-rollback.log`Fix: pin baseurl to a reachable mirror — sed -i -e 's|^metalink|#metalink|' \ -e 's|^baseurl=https://repo.openeuler.org|baseurl=https://mirrors.huaweicloud.com/openeuler|' \ /etc/yum.repos.d/openEuler.repo && dnf clean metadata && dnf makecachePrevention: bake the mirror repo into provisioning templates (Kickstart %post) directly; CI/migration tools likewiseCase 2: silent failures from an incomplete repo set
Section titled “Case 2: silent failures from an incomplete repo set”Symptom A: "dnf update shows no updates" — the update repo is disabled/trimmed (common on minimal images)Symptom B: audit scripts report a flood of false-positive extras — only the DVD source is attached, so every newer package in the update repo reads "no such repo"Localization: verify repo by repo with dnf repolist (this site's container verification: the default set is 7 repos — including the debuginfo/source helper repos)Fix: enable/complete the update repo as needed; for audit scenarios, complete the repo set first and only then run repoquery --extras (the reading method is in the migration audit page)Prevention: bring the repo baseline into configuration management; item one on the pre-upgrade checklistCase 3: the kernel rollback window narrowed by installonly_limit
Section titled “Case 3: the kernel rollback window narrowed by installonly_limit”Symptom: after frequent dnf update, GRUB only shows the current kernel — the rollback window is goneLocalization: /etc/dnf/dnf.conf's installonly_limit=3 (openEuler default, VM measured)Fix/Prevention: on machines depending on out-of-tree modules (dkms/commercial drivers), raise the limit (e.g. 5): installonly_limit=5 and understand the retention semantics = current + previous + slot (see the kernel dual-track page)When an upgrade transaction fails: dnf history is the close-out basis
Section titled “When an upgrade transaction fails: dnf history is the close-out basis”When an upgrade transaction is interrupted (not a network-layer issue), close it out per the transaction history: dnf history list to localize → history info <ID> to see the transaction contents and the rpmdb hash → an undo/resume decision. The complete measured case (undo reinstalling after remove) is in dnf history rollback — undo kernel-package transactions with caution; prefer grubby to boot back into the old kernel.
Unverified
Section titled “Unverified”- The full SP upgrade flow (24.03→SP5 and the like) was not executed (the VM keeps its clean-base baseline; this page is a fault-class case collection);
- Case 2’s symptom shapes come from this site’s offline-environment reading; a trimmed mirror was not deliberately manufactured for reproduction;
- rpm database corruption class faults (historically hard to recover from) are outside this page’s scope.