Bug 302 - [centos8.4迁移anolis8.4]运行迁移脚本过程中遇到nothing provides module(platform:an8)依赖问题
Summary: [centos8.4迁移anolis8.4]运行迁移脚本过程中遇到nothing provides module(platform:an8)依赖问题
Status: RESOLVED WONTFIX
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: OsMigration (show other bugs) OsMigration
Version: 8.4
Hardware: All Linux
: P2-High S2-major
Target Milestone: ---
Assignee: xuchunmei
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-10 15:44 UTC by anolislw
Modified: 2022-03-24 04:36 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 anolislw alibaba_cloud_group 2022-01-10 15:44:52 UTC
[问题简述]
在centos8.4迁移anolis8.4,运行迁移脚本python3 centos2anolis.py -v 8.4过程回显nothing provides module(platform:an8)相关依赖问题
目前存在该依赖问题,涉及的迁移版本还有如下:
-------------------------------------
CentOS 8.0 -> Anolis OS 8.2 (x86)
CentOS 8.1 -> Anolis OS 8.2 (x86)
CentOS 8.2 -> Anolis OS 8.2 (x86)
CentOS 8.3 -> Anolis OS 8.4 (x86)
CentOS 8.4 -> Anolis OS 8.4 (x86/aarch64)
-------------------------------------
(不过在迁移脚本执行完毕后,reboot后可以正常进入迁移后的anolis8.4系统,并且系统相关信息也是anolis8.4的)

[机器环境]
以CentOS 8.4 -> Anolis OS 8.4 迁移为例
----- 迁移前Centos 8.4环境新 ------
######  迁移前系统信息  ######
[root@iZ2zedci5zyx93mnf6sz5vZ ~]# cat /etc/redhat-release
CentOS Linux release 8.4.2105

[root@iZ2zedci5zyx93mnf6sz5vZ ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"

[root@iZ2zedci5zyx93mnf6sz5vZ ~]# uname -a
Linux iZ2zedci5zyx93mnf6sz5vZ 4.18.0-305.19.1.el8_4.x86_64 #1 SMP Wed Sep 15 15:39:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

[root@iZ2zedci5zyx93mnf6sz5vZ ~]# rpm -qa | grep kernel
kernel-modules-4.18.0-305.3.1.el8.x86_64
kernel-tools-libs-4.18.0-305.19.1.el8_4.x86_64
kernel-core-4.18.0-305.3.1.el8.x86_64
kernel-core-4.18.0-305.19.1.el8_4.x86_64
kernel-4.18.0-305.19.1.el8_4.x86_64
kernel-tools-4.18.0-305.19.1.el8_4.x86_64
kernel-4.18.0-305.3.1.el8.x86_64
kernel-headers-4.18.0-305.19.1.el8_4.x86_64
kernel-modules-4.18.0-305.19.1.el8_4.x86_64
kernel-devel-4.18.0-305.19.1.el8_4.x86_64

[root@iZ2zedci5zyx93mnf6sz5vZ ~]# yum repolist
repo id               repo name
appstream             CentOS Linux 8 - AppStream
baseos                CentOS Linux 8 - BaseOS
docker-ce             docker-ce
epel                  Extra Packages for Enterprise Linux 8 - x86_64
extras                CentOS Linux 8 - Extras

[root@iZ2zedci5zyx93mnf6sz5vZ ~]# ls -lrt /etc/yum.repos.d
total 56
-rw-r--r-- 1 root root  728 Oct 21 10:45 CentOS-Linux-AppStream.repo
-rw-r--r-- 1 root root  713 Oct 21 10:45 CentOS-Linux-BaseOS.repo
-rw-r--r-- 1 root root 1139 Oct 21 10:45 CentOS-Linux-ContinuousRelease.repo
-rw-r--r-- 1 root root  318 Oct 21 10:45 CentOS-Linux-Debuginfo.repo
-rw-r--r-- 1 root root  741 Oct 21 10:45 CentOS-Linux-Devel.repo
-rw-r--r-- 1 root root  226 Oct 21 10:45 CentOS-Linux-epel.repo
-rw-r--r-- 1 root root  713 Oct 21 10:45 CentOS-Linux-Extras.repo
-rw-r--r-- 1 root root  728 Oct 21 10:45 CentOS-Linux-FastTrack.repo
-rw-r--r-- 1 root root  749 Oct 21 10:45 CentOS-Linux-HighAvailability.repo
-rw-r--r-- 1 root root  693 Oct 21 10:45 CentOS-Linux-Media.repo
-rw-r--r-- 1 root root  715 Oct 21 10:45 CentOS-Linux-Plus.repo
-rw-r--r-- 1 root root  733 Oct 21 10:45 CentOS-Linux-PowerTools.repo
-rw-r--r-- 1 root root  898 Oct 21 10:45 CentOS-Linux-Sources.repo
-rw-r--r-- 1 root root  249 Jan 10 14:16 docker-ce.repo

[root@iZ2zedci5zyx93mnf6sz5vZ ~]# yum repolist -v
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, kpatch, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
YUM version: 4.4.2
cachedir: /var/cache/dnf
Last metadata expiration check: 0:00:01 ago on Mon 10 Jan 2022 02:25:46 PM CST.
Repo-id            : appstream
Repo-name          : CentOS Linux 8 - AppStream
Repo-revision      : 8.5.2111
Repo-distro-tags      : [cpe:/o:centos:centos:8]:  , 8, C, O, S, e, n, t
Repo-updated       : Fri 31 Dec 2021 02:06:52 PM CST
Repo-pkgs          : 6,533
Repo-available-pkgs: 5,596
Repo-size          : 11 G
Repo-baseurl       : http://mirrors.cloud.aliyuncs.com/centos/8/AppStream/x86_64/os/
Repo-expire        : 172,800 second(s) (last: Mon 10 Jan 2022 02:25:46 PM CST)
Repo-filename      : /etc/yum.repos.d/CentOS-Linux-AppStream.repo

Repo-id            : baseos
Repo-name          : CentOS Linux 8 - BaseOS
Repo-revision      : 8.5.2111
Repo-distro-tags      : [cpe:/o:centos:centos:8]:  , 8, C, O, S, e, n, t
Repo-updated       : Fri 31 Dec 2021 02:06:31 PM CST
Repo-pkgs          : 1,898
Repo-available-pkgs: 1,896
Repo-size          : 2.0 G
Repo-baseurl       : http://mirrors.cloud.aliyuncs.com/centos/8/BaseOS/x86_64/os/
Repo-expire        : 172,800 second(s) (last: Mon 10 Jan 2022 02:25:46 PM CST)
Repo-filename      : /etc/yum.repos.d/CentOS-Linux-BaseOS.repo

Repo-id            : docker-ce
Repo-name          : docker-ce
Repo-revision      : 1639405855
Repo-updated       : Mon 13 Dec 2021 10:30:55 PM CST
Repo-pkgs          : 60
Repo-available-pkgs: 60
Repo-size          : 1.3 G
Repo-baseurl       : https://mirrors.aliyun.com/docker-ce/linux/centos/8/x86_64/stable/
Repo-expire        : 172,800 second(s) (last: Mon 10 Jan 2022 02:25:46 PM CST)
Repo-filename      : /etc/yum.repos.d/docker-ce.repo

Repo-id            : epel
Repo-name          : Extra Packages for Enterprise Linux 8 - x86_64
Repo-revision      : 1641774206
Repo-updated       : Mon 10 Jan 2022 08:33:00 AM CST
Repo-pkgs          : 8,202
Repo-available-pkgs: 8,202
Repo-size          : 12 G
Repo-baseurl       : http://mirrors.cloud.aliyuncs.com/epel/8/Everything/x86_64
Repo-expire        : 172,800 second(s) (last: Mon 10 Jan 2022 02:25:46 PM CST)
Repo-filename      : /etc/yum.repos.d/CentOS-Linux-epel.repo

Repo-id            : extras
Repo-name          : CentOS Linux 8 - Extras
Repo-revision      : 1639140985
Repo-updated       : Fri 10 Dec 2021 08:56:25 PM CST
Repo-pkgs          : 38
Repo-available-pkgs: 38
Repo-size          : 426 k
Repo-baseurl       : http://mirrors.cloud.aliyuncs.com/centos/8/extras/x86_64/os/
Repo-expire        : 172,800 second(s) (last: Mon 10 Jan 2022 02:25:46 PM CST)
Repo-filename      : /etc/yum.repos.d/CentOS-Linux-Extras.repo
Total packages: 16,731

######  迁移前系统服务状态  ######
[root@iZ2zedci5zyx93mnf6sz5vZ ~]# systemctl --failed
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.


------ 迁移后Anolis OS 8.4 环境信息-----------
######  迁移后系统信息  ######
[root@iZ2zedci5zyx93mnf6sz5vZ ~]# cat /etc/redhat-release
Anolis OS release 8.4

[root@iZ2zedci5zyx93mnf6sz5vZ ~]# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.4"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.4"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.4"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

[root@iZ2zedci5zyx93mnf6sz5vZ ~]# uname -a
Linux iZ2zedci5zyx93mnf6sz5vZ 4.18.0-348.2.1.an8_4.x86_64 #1 SMP Fri Dec 10 11:28:44 CST 2021 x86_64 x86_64 x86_64 GNU/Linux


[root@iZ2zedci5zyx93mnf6sz5vZ ~]# rpm -qa | grep kernel
kernel-tools-libs-4.18.0-348.2.1.an8_4.x86_64
kernel-core-4.18.0-305.3.1.el8.x86_64
kernel-4.18.0-305.3.1.el8.x86_64
kernel-headers-4.18.0-348.2.1.an8_4.x86_64
kernel-core-4.18.0-305.19.1.el8_4.x86_64
kernel-tools-4.18.0-348.2.1.an8_4.x86_64
kernel-core-4.18.0-348.2.1.an8_4.x86_64
kernel-modules-4.18.0-305.3.1.el8.x86_64
kernel-devel-4.18.0-348.2.1.an8_4.x86_64
kernel-4.18.0-348.2.1.an8_4.x86_64
kernel-modules-4.18.0-348.2.1.an8_4.x86_64
kernel-4.18.0-305.19.1.el8_4.x86_64
kernel-modules-4.18.0-305.19.1.el8_4.x86_64
kernel-devel-4.18.0-305.19.1.el8_4.x86_64

[root@iZ2zedci5zyx93mnf6sz5vZ ~]# yum repolist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/CentOS-Linux-epel.repo; Configuration: OptionBinding with id "failovermethod" does not exist
repo id               repo name
AppStream             AnolisOS-8.4 - AppStream
BaseOS                AnolisOS-8.4 - BaseOS
Extras                AnolisOS-8.4 - Extras
PowerTools            AnolisOS-8.4 - PowerTools
docker-ce             docker-ce
epel                  Extra Packages for Enterprise Linux 8 - x86_64


[root@iZ2zedci5zyx93mnf6sz5vZ ~]# ls -lrt /etc/yum.repos.d
total 92
-rw-r--r-- 1 root root 1011 Oct 15 12:54 AnolisOS-Source.repo
-rw-r--r-- 1 root root  187 Oct 15 12:54 AnolisOS-PowerTools.repo
-rw-r--r-- 1 root root  169 Oct 15 12:54 AnolisOS-Plus.repo
-rw-r--r-- 1 root root  205 Oct 15 12:54 AnolisOS-HighAvailability.repo
-rw-r--r-- 1 root root  175 Oct 15 12:54 AnolisOS-Extras.repo
-rw-r--r-- 1 root root 1081 Oct 15 12:54 AnolisOS-Debuginfo.repo
-rw-r--r-- 1 root root  166 Oct 15 12:54 AnolisOS-DDE.repo
-rw-r--r-- 1 root root  175 Oct 15 12:54 AnolisOS-BaseOS.repo
-rw-r--r-- 1 root root  184 Oct 15 12:54 AnolisOS-AppStream.repo
-rw-r--r-- 1 root root  226 Oct 21 10:45 CentOS-Linux-epel.repo
-rw-r--r-- 1 root root  249 Jan 10 14:16 docker-ce.repo
-rw-r--r-- 1 root root  944 Jan 10 14:30 CentOS-Linux-Plus.repo.disabled
-rw-r--r-- 1 root root  923 Jan 10 14:30 CentOS-Linux-Media.repo.disabled
-rw-r--r-- 1 root root  990 Jan 10 14:30 CentOS-Linux-HighAvailability.repo.disabled
-rw-r--r-- 1 root root  962 Jan 10 14:30 CentOS-Linux-FastTrack.repo.disabled
-rw-r--r-- 1 root root  944 Jan 10 14:30 CentOS-Linux-Extras.repo.disabled
-rw-r--r-- 1 root root  971 Jan 10 14:30 CentOS-Linux-Devel.repo.disabled
-rw-r--r-- 1 root root  552 Jan 10 14:30 CentOS-Linux-Debuginfo.repo.disabled
-rw-r--r-- 1 root root 1381 Jan 10 14:30 CentOS-Linux-ContinuousRelease.repo.disabled
-rw-r--r-- 1 root root  944 Jan 10 14:30 CentOS-Linux-BaseOS.repo.disabled
-rw-r--r-- 1 root root  962 Jan 10 14:30 CentOS-Linux-AppStream.repo.disabled
-rw-r--r-- 1 root root 1130 Jan 10 14:30 CentOS-Linux-Sources.repo.disabled
-rw-r--r-- 1 root root  968 Jan 10 14:30 CentOS-Linux-PowerTools.repo.disabled


[root@iZ2zedci5zyx93mnf6sz5vZ ~]# yum repolist -v
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, kpatch, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
YUM version: 4.7.0
cachedir: /var/cache/dnf
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/CentOS-Linux-epel.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Last metadata expiration check: 0:00:01 ago on Mon 10 Jan 2022 02:47:42 PM CST.
Repo-id            : AppStream
Repo-name          : AnolisOS-8.4 - AppStream
Repo-revision      : 1640865128
Repo-updated       : Thu 30 Dec 2021 07:52:09 PM CST
Repo-pkgs          : 6,828
Repo-available-pkgs: 5,666
Repo-size          : 12 G
Repo-baseurl       : http://mirrors.openanolis.cn/anolis/8.4/AppStream/x86_64/os
Repo-expire        : 172,800 second(s) (last: Mon 10 Jan 2022 02:47:42 PM CST)
Repo-filename      : /etc/yum.repos.d/AnolisOS-AppStream.repo

Repo-id            : BaseOS
Repo-name          : AnolisOS-8.4 - BaseOS
Repo-revision      : 1640865593
Repo-updated       : Thu 30 Dec 2021 07:59:53 PM CST
Repo-pkgs          : 2,257
Repo-available-pkgs: 2,255
Repo-size          : 3.2 G
Repo-baseurl       : http://mirrors.openanolis.cn/anolis/8.4/BaseOS/x86_64/os
Repo-expire        : 172,800 second(s) (last: Mon 10 Jan 2022 02:47:42 PM CST)
Repo-filename      : /etc/yum.repos.d/AnolisOS-BaseOS.repo

Repo-id            : Extras
Repo-name          : AnolisOS-8.4 - Extras
Repo-revision      : 1633943423
Repo-updated       : Mon 11 Oct 2021 05:10:23 PM CST
Repo-pkgs          : 2
Repo-available-pkgs: 2
Repo-size          : 33 k
Repo-baseurl       : http://mirrors.openanolis.cn/anolis/8.4/Extras/x86_64/os
Repo-expire        : 172,800 second(s) (last: Mon 10 Jan 2022 02:47:42 PM CST)
Repo-filename      : /etc/yum.repos.d/AnolisOS-Extras.repo

Repo-id            : PowerTools
Repo-name          : AnolisOS-8.4 - PowerTools
Repo-revision      : 1640865272
Repo-updated       : Thu 30 Dec 2021 07:54:33 PM CST
Repo-pkgs          : 1,674
Repo-available-pkgs: 1,146
Repo-size          : 4.1 G
Repo-baseurl       : http://mirrors.openanolis.cn/anolis/8.4/PowerTools/x86_64/os
Repo-expire        : 172,800 second(s) (last: Mon 10 Jan 2022 02:47:42 PM CST)
Repo-filename      : /etc/yum.repos.d/AnolisOS-PowerTools.repo

Repo-id            : docker-ce
Repo-name          : docker-ce
Repo-revision      : 1639405855
Repo-updated       : Mon 13 Dec 2021 10:30:55 PM CST
Repo-pkgs          : 60
Repo-available-pkgs: 60
Repo-size          : 1.3 G
Repo-baseurl       : https://mirrors.aliyun.com/docker-ce/linux/centos/8/x86_64/stable/
Repo-expire        : 172,800 second(s) (last: Mon 10 Jan 2022 02:47:42 PM CST)
Repo-filename      : /etc/yum.repos.d/docker-ce.repo

Repo-id            : epel
Repo-name          : Extra Packages for Enterprise Linux 8 - x86_64
Repo-revision      : 1641774206
Repo-updated       : Mon 10 Jan 2022 08:33:00 AM CST
Repo-pkgs          : 8,202
Repo-available-pkgs: 8,201
Repo-size          : 12 G
Repo-baseurl       : http://mirrors.cloud.aliyuncs.com/epel/8/Everything/x86_64
Repo-expire        : 172,800 second(s) (last: Mon 10 Jan 2022 02:47:42 PM CST)
Repo-filename      : /etc/yum.repos.d/CentOS-Linux-epel.repo
Total packages: 19,023

[期望结果]
Centos8.x迁移Anolis8.x运行迁移脚本过程无异常输出

[实际结果]
========= Checking: distribution =========
centos-linux-release-8.4-1.2105.el8.noarch
========= Checking: yum lock ===========
========= Checking: dnf =========
Identifying dnf modules that are enabled...
Last metadata expiration check: 0:04:28 ago on Mon 10 Jan 2022 02:25:46 PM CST.
Dependencies resolved.
================================================================================================================================
 Package                       Architecture                 Version                         Repository                     Size
================================================================================================================================
Resetting modules:
 container-tools

Transaction Summary
================================================================================================================================

Complete!
========= Looking for yumdownloader ==========
========= Finding your repository directory =========
========= Start converting =========
Backing up and removing old repository files...
Removing CentOS-specific yum configuration from /etc/yum.conf ...
Downloading Anolis OS release package...
Modular dependency problems:

 Problem 1: conflicting requests
  - nothing provides module(platform:an8) needed by module ant:1.10:8020020210130081140:1f2eea34-0.x86_64
 Problem 2: conflicting requests
  - nothing provides module(platform:an8) needed by module container-tools:an8:8040020210618040224:77f19b75-0.x86_64
 Problem 3: conflicting requests
  - nothing provides module(platform:an8) needed by module container-tools:an8:8040020210721071653:77f19b75-0.x86_64
 Problem 4: conflicting requests
  - nothing provides module(platform:an8) needed by module container-tools:an8:8040020210830054558:77f19b75-0.x86_64
 Problem 5: conflicting requests
  - nothing provides module(platform:an8) needed by module container-tools:an8:8040020211011070359:77f19b75-0.x86_64
 Problem 6: conflicting requests
  - nothing provides module(platform:an8) needed by module container-tools:an8:8040020211220091117:77f19b75-0.x86_64
 Problem 7: conflicting requests
  - nothing provides module(platform:an8) needed by module container-tools:an8:8040020211229065601:77f19b75-0.x86_64
 Problem 8: conflicting requests
  - nothing provides module(platform:an8) needed by module eclipse:an8:8040020210624023038:34f7e787-0.x86_64
 Problem 9: conflicting requests
  - nothing provides module(platform:an8) needed by module freeradius:3.0:8040020211220072659:3258323b-0.x86_64
 Problem 10: conflicting requests
  - nothing provides module(platform:an8) needed by module gimp:2.8:8020020210130081145:7001a13a-0.x86_64
 Problem 11: conflicting requests
  - nothing provides module(platform:an8) needed by module go-toolset:an8:8040020210619050023:c5768d5d-0.x86_64
 Problem 12: conflicting requests
  - nothing provides module(platform:an8) needed by module go-toolset:an8:8040020210721103312:c5768d5d-0.x86_64
 Problem 13: conflicting requests
  - nothing provides module(platform:an8) needed by module go-toolset:an8:8040020210830054226:c5768d5d-0.x86_64
 Problem 14: conflicting requests
  - nothing provides module(platform:an8) needed by module go-toolset:an8:8040020211220072041:c5768d5d-0.x86_64
 Problem 15: conflicting requests
  - nothing provides module(platform:an8) needed by module httpd:2.4:8040020210624072236:5280c3a7-0.x86_64
 Problem 16: conflicting requests
  - nothing provides module(platform:an8) needed by module httpd:2.4:8040020211220071514:5280c3a7-0.x86_64
 Problem 17: conflicting requests
  - nothing provides module(platform:an8) needed by module idm:client:8040020210618040339:6b2a26fc-0.x86_64
 Problem 18: conflicting requests
  - nothing provides module(platform:an8) needed by module inkscape:0.92.3:8040020210618040342:75588478-0.x86_64
 Problem 19: conflicting requests
  - nothing provides module(platform:an8) needed by module javapackages-runtime:201801:8020020210130081152:ff983833-0.x86_64
 Problem 20: conflicting requests
  - nothing provides module(platform:an8) needed by module jmc:an8:8040020210618040344:34f7e787-0.x86_64
 Problem 21: conflicting requests
  - nothing provides module(platform:an8) needed by module llvm-toolset:an8:8040020210618040345:5280c3a7-0.x86_64
 Problem 22: conflicting requests
  - nothing provides module(platform:an8) needed by module llvm-toolset:an8:8040020211123074505:5280c3a7-0.x86_64
 Problem 23: conflicting requests
  - nothing provides module(platform:an8) needed by module llvm-toolset:an8:8040020211217093001:5280c3a7-0.x86_64
 Problem 24: conflicting requests
  - nothing provides module(platform:an8) needed by module mailman:2.1:8040020210618040346:75588478-0.x86_64
 Problem 25: conflicting requests
  - nothing provides module(platform:an8) needed by module mailman:2.1:8040020211220065229:75588478-0.x86_64
 Problem 26: conflicting requests
  - nothing provides module(platform:an8) needed by module mariadb:10.3:8040020210618040348:5280c3a7-0.x86_64
 Problem 27: conflicting requests
  - nothing provides module(platform:an8) needed by module maven:3.5:8020020210326005354:1f2eea34-0.x86_64
 Problem 28: conflicting requests
  - nothing provides module(platform:an8) needed by module mercurial:4.8:8020020210130081203:7001a13a-0.x86_64
 Problem 29: conflicting requests
  - nothing provides module(platform:an8) needed by module mysql:8.0:8040020210618040352:5280c3a7-0.x86_64
 Problem 30: conflicting requests
  - nothing provides module(platform:an8) needed by module nginx:1.14:8020020210309154136:ff983833-0.x86_64
 Problem 31: conflicting requests
  - nothing provides module(platform:an8) needed by module nodejs:10:8040020210618040355:5280c3a7-0.x86_64
 Problem 32: conflicting requests
  - nothing provides module(platform:an8) needed by module perl:5.26:8020020210225070756:ff983833-0.x86_64
 Problem 33: conflicting requests
  - nothing provides module(platform:an8) needed by module php:7.2:8020020210506014827:d170ce78-0.x86_64
 Problem 34: conflicting requests
  - nothing provides module(platform:an8) needed by module postgresql:10:8040020210618040402:5280c3a7-0.x86_64
 Problem 35: conflicting requests
  - nothing provides module(platform:an8) needed by module postgresql:10:8040020210721122230:5280c3a7-0.x86_64
 Problem 36: conflicting requests
  - nothing provides module(platform:an8) needed by module python27:2.7:8040020210622162915:1d5ee22b-0.x86_64
 Problem 37: conflicting requests
  - nothing provides module(platform:an8) needed by module python36:3.6:8040020210618040407:edf1e464-0.x86_64
 Problem 38: conflicting requests
  - nothing provides module(platform:an8) needed by module python38:3.8:8040020210622005013:15a7ec98-0.x86_64
 Problem 39: conflicting requests
  - nothing provides module(platform:an8) needed by module python38:3.8:8040020210721125037:15a7ec98-0.x86_64
 Problem 40: conflicting requests
  - nothing provides module(platform:an8) needed by module python38:3.8:8040020211111023819:15a7ec98-0.x86_64
 Problem 41: conflicting requests
  - nothing provides module(platform:an8) needed by module python39:3.9:8040020210624010313:124ab977-0.x86_64
 Problem 42: conflicting requests
  - nothing provides module(platform:an8) needed by module redis:5:8020020210130081236:ff983833-0.x86_64
 Problem 43: conflicting requests
  - nothing provides module(platform:an8) needed by module ruby:2.5:8040020210618040410:5280c3a7-0.x86_64
 Problem 44: conflicting requests
  - nothing provides module(platform:an8) needed by module ruby:2.5:8040020210721120317:5280c3a7-0.x86_64
 Problem 45: conflicting requests
  - nothing provides module(platform:an8) needed by module rust-toolset:an8:8040020210619041904:b633ef48-0.x86_64
 Problem 46: conflicting requests
  - nothing provides module(platform:an8) needed by module rust-toolset:an8:8040020210830054830:b633ef48-0.x86_64
 Problem 47: conflicting requests
  - nothing provides module(platform:an8) needed by module rust-toolset:an8:8040020211217092252:b633ef48-0.x86_64
 Problem 48: conflicting requests
  - nothing provides module(platform:an8) needed by module scala:2.10:8020020210326004050:1f2eea34-0.x86_64
 Problem 49: conflicting requests
  - nothing provides module(platform:an8) needed by module squid:4:8040020210618040413:5280c3a7-0.x86_64
 Problem 50: conflicting requests
  - nothing provides module(platform:an8) needed by module squid:4:8040020210719084511:5280c3a7-0.x86_64
 Problem 51: conflicting requests
  - nothing provides module(platform:an8) needed by module squid:4:8040020211220083320:5280c3a7-0.x86_64
 Problem 52: conflicting requests
  - nothing provides module(platform:an8) needed by module subversion:1.10:8040020210618040414:15a7ec98-0.x86_64
 Problem 53: conflicting requests
  - nothing provides module(platform:an8) needed by module swig:3.0:8040020210618040416:5280c3a7-0.x86_64
 Problem 54: conflicting requests
  - nothing provides module(platform:an8) needed by module varnish:6:8040020210618040417:5280c3a7-0.x86_64
 Problem 55: conflicting requests
  - nothing provides module(platform:an8) needed by module varnish:6:8040020210825011336:5280c3a7-0.x86_64
 Problem 56: conflicting requests
  - nothing provides module(platform:an8) needed by module perl-libwww-perl:6.34:8040020210624081425:4a646848-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-libwww-perl:6.34:8040020210624081425:537e306f-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-libwww-perl:6.34:8040020210624081425:e449448e-0.x86_64
 Problem 57: conflicting requests
  - nothing provides module(platform:an8) needed by module perl-YAML:1.24:8040020210624151833:29a560fb-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-YAML:1.24:8040020210624151833:4aab6308-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-YAML:1.24:8040020210624151833:c61e1b14-0.x86_64
 Problem 58: conflicting requests
  - nothing provides module(platform:an8) needed by module perl-IO-Socket-SSL:2.066:8040020210624081722:3258323b-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-IO-Socket-SSL:2.066:8040020210624081722:ab8feab9-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-IO-Socket-SSL:2.066:8040020210624081722:accac16c-0.x86_64
 Problem 59: conflicting requests
  - nothing provides module(platform:an8) needed by module perl-FCGI:0.78:8040020210620142028:3258323b-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-FCGI:0.78:8040020210620142028:ab8feab9-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-FCGI:0.78:8040020210620142028:accac16c-0.x86_64
 Problem 60: conflicting requests
  - nothing provides module(platform:an8) needed by module perl-DBI:1.641:8040020210624091025:3258323b-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-DBI:1.641:8040020210624091025:ab8feab9-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-DBI:1.641:8040020210624091025:accac16c-0.x86_64
 Problem 61: conflicting requests
  - nothing provides module(platform:an8) needed by module perl-DBD-SQLite:1.58:8040020210620141912:00fa0532-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-DBD-SQLite:1.58:8040020210620141912:b3abf6c6-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-DBD-SQLite:1.58:8040020210620141912:f4b77656-0.x86_64
 Problem 62: conflicting requests
  - nothing provides module(platform:an8) needed by module perl-DBD-Pg:3.7:8040020210620141614:4a0bbef6-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-DBD-Pg:3.7:8040020210620141614:5aff4016-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-DBD-Pg:3.7:8040020210620141614:f66db79d-0.x86_64
 Problem 63: conflicting requests
  - nothing provides module(platform:an8) needed by module perl-DBD-MySQL:4.046:8040020210624093223:00fa0532-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-DBD-MySQL:4.046:8040020210624093223:b3abf6c6-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-DBD-MySQL:4.046:8040020210624093223:f4b77656-0.x86_64
 Problem 64: conflicting requests
  - nothing provides module(platform:an8) needed by module perl-App-cpanminus:1.7044:8040020210620141109:5d86fca7-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-App-cpanminus:1.7044:8040020210620141109:61fe4325-0.x86_64
  - nothing provides module(platform:an8) needed by module perl-App-cpanminus:1.7044:8040020210620141109:8cae68ec-0.x86_64
Switching old release package with Anolis OS...
warning: anolis-release-8.4-6.an8.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 4873f7c5: NOKEY
warning: file /etc/yum.repos.d/CentOS-Linux-Sources.repo: remove failed: No such file or directory
warning: file /etc/yum.repos.d/CentOS-Linux-PowerTools.repo: remove failed: No such file or directory
warning: file /etc/yum.repos.d/CentOS-Linux-Plus.repo: remove failed: No such file or directory
warning: file /etc/yum.repos.d/CentOS-Linux-Media.repo: remove failed: No such file or directory
warning: file /etc/yum.repos.d/CentOS-Linux-HighAvailability.repo: remove failed: No such file or directory
warning: file /etc/yum.repos.d/CentOS-Linux-FastTrack.repo: remove failed: No such file or directory
warning: file /etc/yum.repos.d/CentOS-Linux-Extras.repo: remove failed: No such file or directory
warning: file /etc/yum.repos.d/CentOS-Linux-Devel.repo: remove failed: No such file or directory
warning: file /etc/yum.repos.d/CentOS-Linux-Debuginfo.repo: remove failed: No such file or directory
warning: file /etc/yum.repos.d/CentOS-Linux-ContinuousRelease.repo: remove failed: No such file or directory
warning: file /etc/yum.repos.d/CentOS-Linux-BaseOS.repo: remove failed: No such file or directory
warning: file /etc/yum.repos.d/CentOS-Linux-AppStream.repo: remove failed: No such file or directory
Installing base packages for Anolis OS...
52 files removed
AnolisOS-8.4 - AppStream                                                                         25 MB/s | 9.0 MB     00:00
AnolisOS-8.4 - BaseOS                                                                            28 MB/s | 7.7 MB     00:00
AnolisOS-8.4 - Extras                                                                            10 kB/s | 1.6 kB     00:00
AnolisOS-8.4 - PowerTools                                                                       5.2 MB/s | 2.0 MB     00:00
Extra Packages for Enterprise Linux 8 - x86_64                                                   53 MB/s |  11 MB     00:00
docker-ce                                                                                        75 kB/s |  19 kB     00:00
Modular dependency problem:

 Problem: conflicting requests
  - nothing provides module(platform:el8) needed by module virt:rhel:8050020211221192853:b4937e53-0.x86_64
> No match for argument: centos-backgrounds
No match for argument: centos-release-cr
No match for argument: desktop-backgrounds-basic
No match for argument: centos-release-advanced-virtualization
No match for argument: centos-release-ansible26
No match for argument: centos-release-ansible-27
No match for argument: centos-release-ansible-28
No match for argument: centos-release-ansible-29
No match for argument: centos-release-azure
No match for argument: centos-release-ceph-jewel
No match for argument: centos-release-ceph-luminous
No match for argument: centos-release-ceph-nautilus
No match for argument: centos-release-ceph-octopus
No match for argument: centos-release-configmanagement
No match for argument: centos-release-dotnet
No match for argument: centos-release-fdio
No match for argument: centos-release-gluster40
No match for argument: centos-release-gluster41
No match for argument: centos-release-gluster5
No match for argument: centos-release-gluster6
No match for argument: centos-release-gluster7
No match for argument: centos-release-gluster8
No match for argument: centos-release-gluster-legacy
No match for argument: centos-release-messaging
No match for argument: centos-release-nfs-ganesha28
No match for argument: centos-release-nfs-ganesha30
No match for argument: centos-release-nfv-common
No match for argument: centos-release-nfv-openvswitch
No match for argument: centos-release-openshift-origin
No match for argument: centos-release-openstack-queens
No match for argument: centos-release-openstack-rocky
No match for argument: centos-release-openstack-stein
No match for argument: centos-release-openstack-train
No match for argument: centos-release-openstack-ussuri
No match for argument: centos-release-opstools
No match for argument: centos-release-ovirt42
No match for argument: centos-release-ovirt43
No match for argument: centos-release-ovirt44
No match for argument: centos-release-paas-common
No match for argument: centos-release-qemu-ev
No match for argument: centos-release-qpid-proton
No match for argument: centos-release-rabbitmq-38
No match for argument: centos-release-samba411
No match for argument: centos-release-samba412
No match for argument: centos-release-scl
No match for argument: centos-release-scl-rh
No match for argument: centos-release-storage-common
No match for argument: centos-release-virt-common
No match for argument: centos-release-xen
No match for argument: centos-release-xen-410
No match for argument: centos-release-xen-412
No match for argument: centos-release-xen-46
No match for argument: centos-release-xen-48
No match for argument: centos-release-xen-common
No match for argument: libreport-centos
No match for argument: libreport-plugin-mantisbt
No match for argument: libreport-plugin-rhtsupport
No match for argument: python-oauth
No match for argument: sl-logos
No match for argument: yum-rhn-plugin
No match for argument: centos-indexhtml
> Package basesystem-11-5.el8.noarch is already installed.
Package initscripts-10.00.15-1.el8.x86_64 is already installed.
Package plymouth-0.9.4-9.20200615git1e36e30.el8.x86_64 is already installed.
Package grub2-pc-1:2.02-99.el8_4.1.x86_64 is already installed.
Package grubby-8.40-41.el8.x86_64 is already installed.
>
 Problem: The operation would result in removing the following protected packages: setup
Nothing to do.
Complete!
Last metadata expiration check: 0:00:02 ago on Mon 10 Jan 2022 02:30:29 PM CST.
Modular dependency problem:

 Problem: conflicting requests
  - nothing provides module(platform:el8) needed by module virt:rhel:8050020211221192853:b4937e53-0.x86_64
> Leaving Shell
Updating initrd...
Switch successful. Syncing with Anolis OS repositories.
Last metadata expiration check: 0:00:18 ago on Mon 10 Jan 2022 02:30:29 PM CST.
Modular dependency problem:

 Problem: conflicting requests
  - nothing provides module(platform:el8) needed by module virt:rhel:8050020211221192853:b4937e53-0.x86_64
Dependencies resolved.
================================================================================================================================
 Package                              Architecture  Version                                              Repository        Size
================================================================================================================================
Installing:
 anolis-logos                         x86_64        8.0-7.an8                                            BaseOS           1.1 M
     replacing  centos-logos.x86_64 85.8-1.el8
 kernel                               x86_64        4.18.0-348.2.1.an8_4                                 BaseOS           7.0 M
 kernel-core                          x86_64        4.18.0-348.2.1.an8_4                                 BaseOS            38 M
                                    1/4

[复现步骤]
1)检查迁移前环境,确认是centos.8.4的系统环境
2)迁移前在centos8.4环境下安装应用服务(如java redis mysql docker),确认功能正常,并加入开机自启动
3)运行迁移脚本,开始执行迁移任务
   wget https://gitee.com/anolis/centos2anolis/raw/master/centos2anolis.py
   yum -y install python3
   python3 centos2anolis.py -v 8.4(实际执行过程有依赖问题)
4)reboot后,可以进入迁移后的Anolis8.4系统,系统信息也正常匹配anolis8.4
Comment 1 xuchunmei alibaba_cloud_group 2022-01-12 19:01:08 UTC
迁移过程中的module处理是在yum distro-sync之后,所以有这些warning信息,并不影响迁移。
Comment 2 xuchunmei alibaba_cloud_group 2022-01-13 14:55:46 UTC
迁移过程中module冲突属于正常现象,迁移脚本中会做处理,不影响迁移结果。