步骤: wget https://gitee.com/anolis/leapp/repository/archive/master.zip unzip master.zip cd leapp-master # 执行部署脚本安装leapp组件 sh leapp-install.sh sh leapp-repository-install.sh #环境评估 leapp preupgrade --no-rhsm 日志内容: Initializes a directory to be populated as a minimal environment to run binaries from the target system. anolis highavailability 0.0 B/s | 0 B 00:00 anolis powertools 0.0 B/s | 0 B 00:00 anolis appstream 0.0 B/s | 0 B 00:00 anolis baseos 0.0 B/s | 0 B 00:00 No match for argument: dnf ============================================================ ERRORS ============================================================ 2022-01-12 18:11:03.805380 [ERROR] Actor: target_userspace_creator Message: Unable to install Anolis 8 userspace packages. Summary: Details: Command ['systemd-nspawn', '--register=no', '--quiet', '-D', '/var/lib/leapp/scratch/mounts/root_/system_overlay', '--bind=/etc/hosts:/etc/hosts', '--setenv=LEAPP_NO_RHSM=1', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_COMMON_TOOLS=:/etc/leapp/repos.d/system_upgrade/el7toel8/tools', '--setenv=LEAPP_COMMON_FILES=:/etc/leapp/repos.d/system_upgrade/el7toel8/files', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_EXECUTION_ID=7c3caef7-3a9b-4841-82df-dfc163db1906', '--setenv=LEAPP_HOSTNAME=localhost.localdomain', 'dnf', 'install', '-y', '--nogpgcheck', '--setopt=module_platform_id=platform:an8', '--setopt=keepcache=1', '--releasever', u'8.2', '--installroot', '/el8target', '--disablerepo', '*', '--enablerepo', u'anolis_appstream', '--enablerepo', u'anolis_highavailability', '--enablerepo', u'anolis_powertools', '--enablerepo', u'anolis_baseos', 'dnf', '--disableplugin', 'subscription-manager'] failed with exit code 1. Stderr: Host and machine ids are equal (880ee77177bf455f80becaada1dcec9d): refusing to link journals Failed to synchronize cache for repo 'anolis_highavailability', ignoring this repo. Failed to synchronize cache for repo 'anolis_powertools', ignoring this repo. Failed to synchronize cache for repo 'anolis_appstream', ignoring this repo. Failed to synchronize cache for repo 'anolis_baseos', ignoring this repo. Error: Unable to find a match: dnf ============================================================ END OF ERRORS ============================================================ Debug output written to /var/log/leapp/leapp-preupgrade.log ============================================================ REPORT ============================================================ A report has been generated at /var/log/leapp/leapp-report.json A report has been generated at /var/log/leapp/leapp-report.txt ============================================================ END OF REPORT ============================================================
[缺陷描述]: 全量安装: 使用CentOS 7.9 ISO安装系统,选择带GUI服务器软件环境,并勾选所有可选组件,安装完成后不进行系统更新,使用迁移工具迁移到Anolix OS 8版本 x86_64 和aarch64均有此情况 错误见上面描述(description) [重现概率]: 必现100%/xx%/一次 必现100% [重现环境]: Host:虚拟机 系统版本: Centos7.9 [重现步骤]: wget https://gitee.com/anolis/leapp/repository/archive/master.zip unzip master.zip cd leapp-master # 执行部署脚本安装leapp组件 sh leapp-install.sh sh leapp-repository-install.sh #环境评估 leapp preupgrade --no-rhsm [期望结果]: 迁移评估成功 [实际结果]: 环境评估不通过 [原因定位]: Error: Unable to find a match: dnf [修复建议]:
需要安装dnf,安装dnf后再尝试一下。
经排查,是因为测试环境需要配置代理才能访问外网。 在repo中配置代理后leapp preupgrade --no-rhsm正常。
非工具问题,不修复。
已验证,代理问题