Bug 343 - [CentOS 7.4迁移Anolis OS 7.7][x86_64] 系统迁移失败,迁移过程没有找到符合要求的依赖 Requires: grub2-common与Requires: subversion(x86-64)
Summary: [CentOS 7.4迁移Anolis OS 7.7][x86_64] 系统迁移失败,迁移过程没有找到符合要求的依赖 Requires: grub2-co...
Status: RESOLVED FIXED
Alias: None
Product: Anolis OS 7
Classification: Anolis OS
Component: OsMigration (show other bugs) OsMigration
Version: 7.7
Hardware: All Linux
: P1-Urgent S1-blocker
Target Milestone: ---
Assignee: yunqi-zwt
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-12 16:39 UTC by anolislw
Modified: 2022-03-25 10:41 UTC (History)
3 users (show)

See Also:


Attachments
runlog_centos7.4_anolis7.7_centos2anolis (381.61 KB, text/plain)
2022-01-12 16:39 UTC, anolislw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anolislw alibaba_cloud_group 2022-01-12 16:39:19 UTC
Created attachment 105 [details]
runlog_centos7.4_anolis7.7_centos2anolis

[问题简述]
使用云上的x86_64环境CentOS 7.4迁移系统至Anolis OS 7.7,运行迁移工具centos2anolis.py,迁移过程没有找到符合要求的依赖 Requires: grub2-common与Requires: subversion(x86-64)而终止

[机器环境]
---------- 迁移前 ------------
[root@iz2ze2tp0hushaoofjpc20z ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

[root@iz2ze2tp0hushaoofjpc20z ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"



[root@iz2ze2tp0hushaoofjpc20z ~]# uname -a
Linux iz2ze2tp0hushaoofjpc20z 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


[root@iz2ze2tp0hushaoofjpc20z ~]# rpm -qa | grep kernel
kernel-tools-libs-3.10.0-693.2.2.el7.x86_64
kernel-3.10.0-693.el7.x86_64
kernel-3.10.0-693.2.2.el7.x86_64
kernel-headers-3.10.0-693.2.2.el7.x86_64
kernel-tools-3.10.0-693.2.2.el7.x86_64


[root@iz2ze2tp0hushaoofjpc20z ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
repo id                           repo name                               status
base/7/x86_64                     CentOS-7                                10,072
docker-ce                         docker-ce                                  139
epel/x86_64                       Extra Packages for Enterprise Linux 7 - 13,712
extras/7/x86_64                   CentOS-7                                   500
mysql-connectors-community/x86_64 MySQL Connectors Community                 221
mysql-tools-community/x86_64      MySQL Tools Community                      135
mysql56-community/x86_64          MySQL 5.6 Community Server                 581
updates/7/x86_64                  CentOS-7                                 3,252
repolist: 28,612


[root@iz2ze2tp0hushaoofjpc20z ~]# ls -lrt /etc/yum.repos.d
total 20
-rw-r--r-- 1 root root 1060 Jan 29  2014 mysql-community-source.repo
-rw-r--r-- 1 root root 1209 Jan 29  2014 mysql-community.repo
-rw-r--r-- 1 root root  230 Jan 11 20:15 epel.repo
-rw-r--r-- 1 root root  675 Jan 11 20:15 CentOS-Base.repo
-rw-r--r-- 1 root root  125 Jan 12 16:00 docker-ce.repo


[root@iz2ze2tp0hushaoofjpc20z ~]# yum repolist -v
Loading "fastestmirror" plugin
Config time: 0.004
Yum version: 3.4.3
Loading mirror speeds from cached hostfile
Setting up Package Sacks
pkgsack time: 0.005
Repo-id      : base/7/x86_64
Repo-name    : CentOS-7
Repo-revision: 1604001756
Repo-updated : Fri Oct 30 04:03:00 2020
Repo-pkgs    : 10,072
Repo-size    : 8.9 G
Repo-baseurl : http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/
Repo-expire  : 21,600 second(s) (last: Wed Jan 12 16:04:30 2022)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

Repo-id      : docker-ce
Repo-name    : docker-ce
Repo-revision: 1639405852
Repo-updated : Mon Dec 13 22:30:52 2021
Repo-pkgs    : 139
Repo-size    : 3.2 G
Repo-baseurl : https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/
Repo-expire  : 21,600 second(s) (last: Wed Jan 12 16:04:31 2022)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/docker-ce.repo

Repo-id      : epel/x86_64
Repo-name    : Extra Packages for Enterprise Linux 7 - x86_64
Repo-revision: 1641866602
Repo-updated : Tue Jan 11 10:13:54 2022
Repo-pkgs    : 13,712
Repo-size    : 16 G
Repo-baseurl : http://mirrors.cloud.aliyuncs.com/epel/7/x86_64/
Repo-expire  : 21,600 second(s) (last: Wed Jan 12 16:04:31 2022)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/epel.repo

[root@iz2ze2tp0hushaoofjpc20z ~]# cat C7.4--\>an7.7-39.106.74.16_installed-list_qianyi_qian_qianlog.txt | head -300
######  迁移前系统信息  ######
[root@iz2ze2tp0hushaoofjpc20z ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)


[root@iz2ze2tp0hushaoofjpc20z ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"



[root@iz2ze2tp0hushaoofjpc20z ~]# uname -a
Linux iz2ze2tp0hushaoofjpc20z 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


[root@iz2ze2tp0hushaoofjpc20z ~]# rpm -qa | grep kernel
kernel-tools-libs-3.10.0-693.2.2.el7.x86_64
kernel-3.10.0-693.el7.x86_64
kernel-3.10.0-693.2.2.el7.x86_64
kernel-headers-3.10.0-693.2.2.el7.x86_64
kernel-tools-3.10.0-693.2.2.el7.x86_64


[root@iz2ze2tp0hushaoofjpc20z ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
repo id                           repo name                               status
base/7/x86_64                     CentOS-7                                10,072
docker-ce                         docker-ce                                  139
epel/x86_64                       Extra Packages for Enterprise Linux 7 - 13,712
extras/7/x86_64                   CentOS-7                                   500
mysql-connectors-community/x86_64 MySQL Connectors Community                 221
mysql-tools-community/x86_64      MySQL Tools Community                      135
mysql56-community/x86_64          MySQL 5.6 Community Server                 581
updates/7/x86_64                  CentOS-7                                 3,252
repolist: 28,612


[root@iz2ze2tp0hushaoofjpc20z ~]# ls -lrt /etc/yum.repos.d
total 20
-rw-r--r-- 1 root root 1060 Jan 29  2014 mysql-community-source.repo
-rw-r--r-- 1 root root 1209 Jan 29  2014 mysql-community.repo
-rw-r--r-- 1 root root  230 Jan 11 20:15 epel.repo
-rw-r--r-- 1 root root  675 Jan 11 20:15 CentOS-Base.repo
-rw-r--r-- 1 root root  125 Jan 12 16:00 docker-ce.repo


[root@iz2ze2tp0hushaoofjpc20z ~]# yum repolist -v
Loading "fastestmirror" plugin
Config time: 0.004
Yum version: 3.4.3
Loading mirror speeds from cached hostfile
Setting up Package Sacks
pkgsack time: 0.005
Repo-id      : base/7/x86_64
Repo-name    : CentOS-7
Repo-revision: 1604001756
Repo-updated : Fri Oct 30 04:03:00 2020
Repo-pkgs    : 10,072
Repo-size    : 8.9 G
Repo-baseurl : http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/
Repo-expire  : 21,600 second(s) (last: Wed Jan 12 16:04:30 2022)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

Repo-id      : docker-ce
Repo-name    : docker-ce
Repo-revision: 1639405852
Repo-updated : Mon Dec 13 22:30:52 2021
Repo-pkgs    : 139
Repo-size    : 3.2 G
Repo-baseurl : https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/
Repo-expire  : 21,600 second(s) (last: Wed Jan 12 16:04:31 2022)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/docker-ce.repo

Repo-id      : epel/x86_64
Repo-name    : Extra Packages for Enterprise Linux 7 - x86_64
Repo-revision: 1641866602
Repo-updated : Tue Jan 11 10:13:54 2022
Repo-pkgs    : 13,712
Repo-size    : 16 G
Repo-baseurl : http://mirrors.cloud.aliyuncs.com/epel/7/x86_64/
Repo-expire  : 21,600 second(s) (last: Wed Jan 12 16:04:31 2022)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/epel.repo

Repo-id      : extras/7/x86_64
Repo-name    : CentOS-7
Repo-revision: 1630682564
Repo-updated : Fri Sep  3 23:22:46 2021
Repo-pkgs    : 500
Repo-size    : 921 M
Repo-baseurl : http://mirrors.cloud.aliyuncs.com/centos/7/extras/x86_64/
Repo-expire  : 21,600 second(s) (last: Wed Jan 12 16:04:31 2022)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

Repo-id      : mysql-connectors-community/x86_64
Repo-name    : MySQL Connectors Community
Repo-revision: 1634542348
Repo-updated : Mon Oct 18 15:32:28 2021
Repo-pkgs    : 221
Repo-size    : 1.0 G
Repo-baseurl : http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/
Repo-expire  : 21,600 second(s) (last: Wed Jan 12 16:04:31 2022)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/mysql-community.repo

Repo-id      : mysql-tools-community/x86_64
Repo-name    : MySQL Tools Community
Repo-revision: 1634295980
Repo-updated : Fri Oct 15 19:06:19 2021
Repo-pkgs    : 135
Repo-size    : 5.3 G
Repo-baseurl : http://repo.mysql.com/yum/mysql-tools-community/el/7/x86_64/
Repo-expire  : 21,600 second(s) (last: Wed Jan 12 16:04:32 2022)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/mysql-community.repo

Repo-id      : mysql56-community/x86_64
Repo-name    : MySQL 5.6 Community Server
Repo-revision: 1611050559
Repo-updated : Tue Jan 19 18:02:39 2021
Repo-pkgs    : 581
Repo-size    : 13 G
Repo-baseurl : http://repo.mysql.com/yum/mysql-5.6-community/el/7/x86_64/
Repo-expire  : 21,600 second(s) (last: Wed Jan 12 16:04:32 2022)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/mysql-community.repo

Repo-id      : updates/7/x86_64
Repo-name    : CentOS-7
Repo-revision: 1641321621
Repo-updated : Wed Jan  5 02:41:06 2022
Repo-pkgs    : 3,252
Repo-size    : 18 G
Repo-baseurl : http://mirrors.cloud.aliyuncs.com/centos/7/updates/x86_64/
Repo-expire  : 21,600 second(s) (last: Wed Jan 12 16:04:32 2022)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

repolist: 28,612

[期望结果]
可以成功迁移

[实际结果]
---> Package libasan.x86_64 0:4.8.5-44.0.1.an7 will be installed
---> Package libatomic.x86_64 0:4.8.5-44.0.1.an7 will be installed
---> Package libical.x86_64 0:3.0.3-2.an7 will be installed
---> Package python-urllib3.noarch 0:1.10.2-7.an7 will be installed
---> Package subversion.x86_64 0:1.7.14-16.el7 will be erased
--> Finished Dependency Resolution
Error: Package: 1:grub2-ppc64le-modules-2.02-0.87.el7.centos.7.noarch (@updates)
           Requires: grub2-common = 1:2.02-0.87.el7.centos.7
           Removing: 1:grub2-common-2.02-0.87.el7.centos.7.noarch (@updates)
               grub2-common = 1:2.02-0.87.el7.centos.7
           Updated By: 1:grub2-common-2.02-0.87.1.an7.noarch (updates)
               grub2-common = 1:2.02-0.87.1.an7
           Available: 1:grub2-common-2.02-0.80.an7.noarch (os)
               grub2-common = 1:2.02-0.80.an7
Error: Package: subversion-devel-1.7.14-16.el7.x86_64 (@base)
           Requires: subversion(x86-64) = 1.7.14-16.el7
           Removing: subversion-1.7.14-16.el7.x86_64 (@base)
               subversion(x86-64) = 1.7.14-16.el7
           Downgraded By: subversion-1.7.14-16.an7.x86_64 (updates)
               subversion(x86-64) = 1.7.14-16.an7
           Available: subversion-1.7.14-14.an7.x86_64 (os)
               subversion(x86-64) = 1.7.14-14.an7
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
python-requests-2.6.0-10.el7.noarch has missing requires of python-urllib3 >= ('0', '1.10.2', '1')
Could not automatically sync with Anolis OS repositories.
        Check the output of 'yum distro-sync' to manually resolve the issue.

[复现步骤]
下载迁移脚本:
wget https://gitee.com/anolis/centos2anolis/raw/master/centos2anolis.py
安装迁移脚本运行依赖:
yum -y install python3
python3 centos2anolis.py -v 7.7

[附件]
运行迁移脚本详细日志见附录
Comment 1 xuchunmei alibaba_cloud_group 2022-01-13 14:41:00 UTC
grub2-ppc64le-modules 软件包是ppc63le架构的,anolis当前不提供该架构,不应该安装该软件包。

centos7的源上包含这个包也是个迷,这个包是noarch的,所以可以安装成功。

subversion-devel失败是因为当前anolis 7.7/7.9源上没有提供subversion-devel,请云祁处理下。
Comment 2 杨晓旋 uniontech_group 2022-01-26 19:07:18 UTC
subversion-devel已更新到源中。https://mirrors.openanolis.cn/anolis/7.9/os/
Comment 3 yunqi-zwt alibaba_cloud_group 2022-02-07 10:52:59 UTC
subversion-devel已更新到源中.

grub2-ppc64le-modules 的问题不修复。详见 comment #1