Bug 1416 - [Centos8.5迁移Aolis8.6][x86/aarch64][云上ecs] 使用本地配置的龙蜥 yum 源进行系统迁移失败
Summary: [Centos8.5迁移Aolis8.6][x86/aarch64][云上ecs] 使用本地配置的龙蜥 yum 源进行系统迁移失败
Status: RESOLVED INVALID
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: Others (show other bugs) Others
Version: 8.6
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: 葛立伟
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 1338
  Show dependency tree
 
Reported: 2022-06-07 17:06 UTC by anolislw
Modified: 2022-06-20 14:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anolislw alibaba_cloud_group 2022-06-07 17:06:55 UTC
[简述]
    使用云上ecs实例,搭建本地配置的龙蜥 yum 源,进行迁移的,预期想要达到效果是,迁移后的系统可以成功从Centos8.5环境迁移至Anolis8.6,实际效果迁移后为Anolis8.5。


本地源rpms来源: https://mirrors.openanolis.cn/anolis/8.6/isos/RC/x86_64/anolis-8-x86_64-dvd.iso

[迁移步骤]
1 使用iso挂载搭建本地源(略)
  本地repo信息:
cat /etc/yum.repos.d/switch-to-anolis.repo
[AppStream-local]
name=AppStream-local
baseurl=file:///local.repo.com/AppStream
gpgcheck=0
enabled=1

[BaseOS-local]
name=BaseOS-local
baseurl=file:///local.repo.com/BaseOS
gpgcheck=0
enabled=1

2 执行迁移流程:
  #下载迁移脚本:
  wget https://gitee.com/anolis/centos2anolis/raw/master/centos2anolis.py
  #安装迁移脚本运行依赖:
  yum -y install python3
  python3 centos2anolis.py
Comment 1 anolislw alibaba_cloud_group 2022-06-07 17:25:29 UTC
使用-l参数可以解决该问题: python3 centos2anolis.py -l
小建议:官方文档中(step:6)是否可以针对switch-to-anolis.repo本地源迁移的场景,补充下centos2anolis.py -l参数
https://openanolis.cn/sig/migration/doc/380658406925893825
Comment 2 葛立伟 alibaba_cloud_group 2022-06-09 14:45:44 UTC
最新的线上仓库就是8.5