CentOS 7 to Anolis OS 8 with Leapp: nine real attempts (preupgrade works, upgrade does not)
Scope of verification
Section titled “Scope of verification”This page is a nine-attempt real-machine log from PVE VM 433 (2C/2G/24G, CentOS 7.9.2009 baseline snapshot) on 2026-11-09/10: toolchain install → preupgrade → nine upgrade rounds, all logs archived (15 files including every round’s stdout and the debug log). The verdict splits in two: the preupgrade health check works; the upgrade execution path does not (unmaintained — see the pit chain). That is more useful than “untested”: it marks where this official path actually stands in 2026.




The measured flow (with every pit)
Section titled “The measured flow (with every pit)”# 1. Baseline (pit ①: the stock CentOS sources are dead — use the Aliyun 7.9.2009# direct mirror and name the repos with the official repoids)mkdir -p /root/repo-backup && mv /etc/yum.repos.d/CentOS-*.repo /root/repo-backup/# [base]/[updates]/[extras] → https://mirrors.aliyun.com/centos/7.9.2009/{os,updates,extras}/x86_64/
# 2. Install leapp (pits ②③)curl -fsS -o /etc/yum.repos.d/anolis-migration.repo \ https://mirrors.openanolis.cn/migration/anolis-migration.repo# pit ②: centos2anolis/leapp are not in the an7 os tree (every guessed epao path 404s) —# only the migration repo has them# pit ③: leappy-repository Requires python2-psutil + python36-psutil — neither is in# the an7 os tree; fetch both from the EPEL7 archive and install locallycurl -fsS -o /tmp/python36-psutil.rpm \ https://archives.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/p/python36-psutil-5.6.7-1.el7.x86_64.rpmcurl -fsS -o /tmp/python2-psutil.rpm \ https://archives.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/p/python2-psutil-5.6.7-1.el7.x86_64.rpmyum clean all && yum -y install leapp\* /tmp/python36-psutil.rpm /tmp/python2-psutil.rpm
# 3. Environment top-up (pits ⑤⑥: upgrade-phase guards missing; preupgrade never exposes them)yum -y install NetworkManager subscription-manager
# 4. preupgrade — measured fully greenleapp preupgrade # RC=0, report shows 0 inhibitors (high entries do not block)cat /var/log/leapp/leapp-report.txt
# 5. upgrade — nine rounds of FailPhase (pits ⑦⑧⑨ below)leapp upgrade # UP1..UP9 all RC=1, empty report + "Answerfile has been generated"The nine-round upgrade pit chain
Section titled “The nine-round upgrade pit chain”| # | Symptom | Measured verdict |
|---|---|---|
| ⑦ | upgrade exits on round one with a report; passing --answerfile | The flag was stripped from the anolis fork: error: unrecognized arguments: --answerfile; the answerfile is rewritten empty every round; the only working channel is a hand-written /var/log/leapp/answerfile.userchoices ([section] + confirm = True), and every round still surfaces new dialogs |
| ⑧ | FactsCollection FailPhase (NM / SM) | The anolis fork has no guard for a legitimate el7-minimal state: a missing NetworkManager crashes it, then a missing subscription-manager crashes it again (only WARNINGs in the debug log); installing both lets it advance — preupgrade exposes none of this |
| ⑨ | the setuptargetrepos actor crashes silently | The nine-round terminus (with official repoid naming, NM/SM installed, userchoices all True): right after Executing actor setuptargetrepos the After stage is interrupted with no output; the debug log has no traceback (the framework swallows it); repomap.csv is Version 1 / Date 20210126 — six years without a mirror-tree update |
Logs and evidence: plans/distro-independence/operation-evidence/anolis-c7to8-leapp-attempt-20261110/logs/ (15 files: UP1–UP9 stdout, the full leapp-upgrade.log debug, leapp-report.txt/json, a round-by-round RC summary).
Why cross-major-version migration is an order riskier
Section titled “Why cross-major-version migration is an order riskier”- In-place major-version change: glibc/systemd/Python all replace generational lines — a failed transaction can leave the machine unbootable — a snapshot is mandatory (our pre-migration-c7 snapshot proved restorable).
- Inhibitor-driven:
leapp preupgradeproduces a report to resolve item by item — measured, the health-check function does work and the report format matches RHEL leapp. - Rollback boundary: once the kernel switch begins there is no way back — only snapshot/image-level rollback.
Our recommendation (revised after measuring)
Section titled “Our recommendation (revised after measuring)”- Do not run leapp 7→8 directly on a critical machine: in 2026 the official adapted toolchain’s upgrade execution path is broken (pits ⑦⑧⑨) — nine rounds never reached the upgrade transaction. preupgrade remains useful as a pre-migration health check (the report still has value).
- Workable alternatives: ① CentOS 7 → Anolis 7 (centos2anolis verified working — see the 7→7 migration log page), then re-install/provision Anolis OS 8; ② re-install/provision Anolis OS 8.8/10 directly (the 8→8 migration is verified working — see the CentOS 8 migration page); ③ containerize and change the base image.
- If you must take the leapp route: rehearse snapshot rollback first and expect to hand-patch leappy-repository (repomap.csv is six years stale) — not recommended for production.