Bug 281 - centos2anolis迁移脚本在安装了i686包的环境中执行失败
Summary: centos2anolis迁移脚本在安装了i686包的环境中执行失败
Status: RESOLVED FIXED
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: OsMigration (show other bugs) OsMigration
Version: 8.2
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: xuchunmei
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-05 15:52 UTC by xuchunmei
Modified: 2024-11-05 10:54 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xuchunmei alibaba_cloud_group 2022-01-05 15:52:10 UTC
Description of problem:
客户使用centos2anolis执行centos8.2到anolis8.2的迁移。
因为环境中安装了i686包,anolis8不会提供i686包,导致迁移失败,yum distro-sync报错。

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.python3 centos2anolis.py -v 8.2
2.
3.

Actual results:
yum distro-sync报错

Expected results:
在执行迁移前先检查是否有安装i686的包,如果有安装,需要提示用户卸载,否则会影响迁移。

Additional info:
Comment 1 xuchunmei alibaba_cloud_group 2022-01-05 17:16:14 UTC
已添加i686软件包的检测项,如果待迁移系统中安装了i686的软件包,则会给出提示,并中断迁移。
结果示例如下:
系统上安装了glibc.i686和libgcc.i686:

# python3 centos2anolis.py -v 8.2
CentOS version is 8.2
Checking if the tool is executed by root user
Checking the version of Anolis OS
You selected Anolis OS 8.2
Checking required packages
Checking i686 packages
Anolis OS does not provide i686 packages, please remove them before migration.
Installed i686 packages:
glibc-2.28-164.el8.i686
libgcc-8.5.0-4.el8_5.i686
Comment 2 小龙 admin 2024-11-05 10:54:26 UTC
PR 已合入