oamg / convert2rhel

A tool to automate converting Oracle/CentOS/Scientific/Rocky/Alma Linux to Red Hat Enterprise Linux
GNU General Public License v3.0
103 stars 82 forks source link

Conversion of Centos7 fails without any usefull error #1298

Closed paradoxicalNL closed 3 weeks ago

paradoxicalNL commented 3 weeks ago

As topic, followed documentation steps and running convert2rhel analyze --els --debug, script then aborts:

`[2024-07-08T01:46:08+0000] DEBUG - Calling command 'repoquery --releasever=7Server --disablerepo=* --enablerepo rhel-7-server-els-rpms -l kernel-0:3.10.0-1160.119.1.el7.x86_64 kernel-debug-0:3.10.0-1160.119.1.el7.x86_64 kmod-ahci-0:327_RH1-1.el7_2.x86_64 kmod-bnx2x-0:1.712.30-1.el7_2.x86_64 kmod-bnxt_en-0:1.2.0-2.el7_2.x86_64 kmod-hpsa-0:3.4.4_1_RH1-1.el7_0.x86_64 kmod-i40e-0:1.5.10_k-2.el7_2.x86_64 kmod-i40evf-0:1.5.10_k-2.el7_2.x86_64 kmod-igb-0:5.2.15_k-1.el7_2.x86_64 kmod-ixgbe-0:4.4.0_k-1.el7_2.x86_64 kmod-kvdo-0:6.1.3.23-5.el7.x86_64 kmod-lpfc-0:11.1.0.2-1.el7_2.x86_64 kmod-megaraid_sas-0:06.811.02.00-1.el7_2.x86_64 kmod-mpt3sas-0:13.100.00.00-1.el7_2.x86_64 kmod-oracleasm-0:2.0.8-28.el7.x86_64 kmod-qed-0:8.7.1.20-1.el7_2.x86_64 kmod-qede-0:8.7.1.20-1.el7_2.x86_64 kmod-qla2xxx-0:8.07.00.33.07.3_k-1.el7_2.x86_64 kmod-redhat-atlantic-0:2.0.2.1_kern_dup7.5-1.el7_5.x86_64 kmod-redhat-bnxt_en-0:1.10.0_dup7.7-1.el7.x86_64 kmod-redhat-ena-0:2.0.2K_dup7.6-2.el7_6.x86_64 kmod-redhat-i40e-0:2.8.10_k_dup7.7-2.el7_7.x86_64 kmod-redhat-i40evf-0:3.0.1_k_dup7.4-2.1.el7_4.x86_64 kmod-redhat-ixgbe-0:4.4.0_k_rh7.4_z-2.el7_3.x86_64 kmod-redhat-ixgbevf-0:3.2.2_k_rh7.4_z-1.el7_3.x86_64 kmod-redhat-lpfc-0:12.0.0.5_dup7.6-1.el7_6.x86_64 kmod-redhat-megaraid_sas-0:07.702.06.00_rh2_dup7.5-1.el7_5.x86_64 kmod-redhat-mgag200-0:4.11.0_dup7.3-5.el7_3.x86_64 kmod-redhat-mpt3sas-0:26.100.01.00_dup7.6-3.el7_6.x86_64 kmod-redhat-nfit-0:3.10.0_957-1.el7_6.x86_64 kmod-redhat-qed-0:8.33.0.20_dup7.6-1.el7_6.x86_64 kmod-redhat-qede-0:8.33.0.20_dup7.6-1.el7_6.x86_64 kmod-redhat-qedf-0:8.33.0.20_dup7.6-1.el7_6.x86_64 kmod-redhat-qedi-0:8.33.0.20_dup7.6-1.el7_6.x86_64 kmod-redhat-qedr-0:8.10.10.0_dup7.4-2.el7_4.x86_64 kmod-redhat-qedr-2:3.10.0_957_dup7.6-3.el7_6.x86_64 kmod-redhat-qla2xxx-0:10.01.00.20.07.8_k_dup7.7-2.el7_7.x86_64 kmod-rtsx_usb-0:0.1_rh1-1.el7_2.x86_64 kmod-rtsx_usb_sdmmc-0:0.1_rh1-1.el7_2.x86_64 kmod-sfc-0:4.0-1.el7_2.x86_64' [2024-07-08T01:46:10+0000] DEBUG - All loaded kernel modules are available in RHEL. ENSURE_KERNEL_MODULES_COMPATIBILITY has succeeded

[2024-07-08T01:46:10+0000] TASK - [Prepare: Validate the yum transaction] ***** Enabling RHEL repositories: rhel-7-server-els-rpms Adding CentOS Linux packages to the yum transaction set. [2024-07-08T01:46:14+0000] DEBUG - Downloading repository metadata: repomdAtQwB9tmp.xml [2024-07-08T01:47:49+0000] DEBUG - Checking if centos-indexhtml installed for later swap. [2024-07-08T01:47:49+0000] DEBUG - Package centos-indexhtml will be swapped to redhat-indexhtml during conversion. [2024-07-08T01:47:49+0000] DEBUG - Checking if centos-bookmarks installed for later swap. [2024-07-08T01:47:49+0000] DEBUG - Checking if libreport-centos installed for later swap. [2024-07-08T01:47:49+0000] DEBUG - Checking if centos-logos installed for later swap. [2024-07-08T01:47:49+0000] DEBUG - Package centos-logos will be swapped to redhat-logos during conversion. Resolving the dependencies of the packages in the yum transaction set. Downloading and validating the yum transaction set, no modifications to the system will happen this time. Successfully validated the yum transaction set. VALIDATE_PACKAGE_MANAGER_TRANSACTION has succeeded Writing breadcrumbs to '/etc/migration-results'. Writing RHSM custom facts to '/etc/rhsm/facts/convert2rhel.facts'. WARNING - Abnormal exit! Performing rollback ...`

I am not sure where to start troubleshooting as I should have satisfied all dependencies.

r0x0d commented 3 weeks ago

Hi, @paradoxicalNL! Thanks for opening the issue.

In your logs, did you see any references to rollback? Usually, when you execute the analysis, we will go until a certain point of the conversion, analyze everything that is possible for ensuring that the conversion will run fine and then we rollback the system (as we have to do some modifications to the system)

Also, if the confusion is also about the Abnormal exit in the log, we have an issue open to improve this message: https://issues.redhat.com/browse/RHELC-1522

paradoxicalNL commented 3 weeks ago

Hi! Thanks for your reply! Yes, I see this exact behaviour, please see below snippet from the logs. So, in fact there is no issue and I can proceed? This is indeed confusing!

[2024-07-08T13:54:17+0000] TASK - [Rollback: Restoring state of the repositories] ********************
[2024-07-08T13:54:17+0000] DEBUG - Repositories to enable: rhel-7-server-extras-rpms,rhel-7-server-eus-rpms,rhel-7-server-els-optional-rpms,rhel-server-rhscl-7-rpms,rhel-7-server-rhn-tools-rpms,rhel-7-server-els-rpms,rhel-7-server-eus-optional-rpms,rhel-7-server-rh-common-rpms,rhel-7-server-rpms,rhel-7-server-optional-rpms
[2024-07-08T13:54:17+0000] DEBUG - Calling command 'subscription-manager repos --disable=*'
Repositories disabled.
[2024-07-08T13:54:32+0000] DEBUG - Calling command 'subscription-manager repos --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-eus-rpms --enable=rhel-7-server-els-optional-rpms --enable=rhel-server-rhscl-7-rpms --enable=rhel-7-server-rhn-tools-rpms --enable=rhel-7-server-els-rpms --enable=rhel-7-server-eus-optional-rpms --enable=rhel-7-server-rh-common-rpms --enable=rhel-7-server-rpms --enable=rhel-7-server-optional-rpms'
Repositories enabled through subscription-manager

[2024-07-08T13:54:46+0000] TASK - [Rollback: RHSM-related actions] ***********************************
Unregistering the system.
[2024-07-08T13:54:46+0000] DEBUG - Calling command 'rpm --quiet -q subscription-manager'
[2024-07-08T13:54:46+0000] DEBUG - Calling command 'subscription-manager unregister'
System unregistered successfully.

[2024-07-08T13:54:47+0000] TASK - [Rollback: Remove installed certificate] ***************************
[2024-07-08T13:54:47+0000] DEBUG - Calling command 'rpm -qf /etc/pki/product-default/69.pem'
Certificate /etc/pki/product-default/69.pem removed

[2024-07-08T13:54:47+0000] TASK - [Rollback: Install removed packages] *******************************
Installing packages:    geoipupdate-2.5.0-2.el7.x86_64, centos-release-7-9.2009.2.el7.centos.x86_64
[2024-07-08T13:54:47+0000] DEBUG - Calling command 'rpm -i --replacepkgs /var/lib/convert2rhel/backup/geoipupdate-2.5.0-2.el7.x86_64.rpm /var/lib/convert2rhel/backup/centos-release-7-9.2009.2.el7.centos.x86_64.rpm'

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/chrony.conf from backup] *******************
File /etc/chrony.conf restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Remove file created during conversion /etc/yum.repos.d/epel.repo]
File /etc/yum.repos.d/epel.repo wasn't created during conversion

[2024-07-08T13:54:48+0000] TASK - [Rollback: Remove file created during conversion /etc/yum.repos.d/epel-testing.repo]
File /etc/yum.repos.d/epel-testing.repo wasn't created during conversion

[2024-07-08T13:54:48+0000] TASK - [Rollback: Remove file created during conversion /usr/lpp/mmfs/src/ibm-kxi/trcid.h]
File /usr/lpp/mmfs/src/ibm-kxi/trcid.h wasn't created during conversion

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/ssh/sshd_config from backup] ***************
File /etc/ssh/sshd_config restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/sysconfig/authconfig from backup] **********
File /etc/sysconfig/authconfig restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/yum.conf from backup] **********************
File /etc/yum.conf restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/rsyslog.conf from backup] ******************
File /etc/rsyslog.conf restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /opt/IBM/zimon/ZIMonCollector.cfg from backup] **
File /opt/IBM/zimon/ZIMonCollector.cfg restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/security/limits.conf from backup] **********
File /etc/security/limits.conf restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /opt/illumio_ven/etc/templates/runtime_env.yml from backup]
File /opt/illumio_ven/etc/templates/runtime_env.yml restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /opt/ibm/wlp/usr/servers/gpfsgui/server.xml from backup]
File /opt/ibm/wlp/usr/servers/gpfsgui/server.xml restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /opt/ibm/wlp/usr/servers/gpfsgui/httpsKeystore.xml from backup]
File /opt/ibm/wlp/usr/servers/gpfsgui/httpsKeystore.xml restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/sysconfig/gpfsgui from backup] *************
File /etc/sysconfig/gpfsgui restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /usr/lpp/mmfs/bin/mmadquery from backup] ********
File /usr/lpp/mmfs/bin/mmadquery restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/man_db.conf from backup] *******************
File /etc/man_db.conf restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Remove file created during conversion /etc/yum.repos.d/CentOS-x86_64-kernel.repo]
File /etc/yum.repos.d/CentOS-x86_64-kernel.repo removed

[2024-07-08T13:54:48+0000] TASK - [Rollback: Remove file created during conversion /etc/yum.repos.d/CentOS-fasttrack.repo]
File /etc/yum.repos.d/CentOS-fasttrack.repo removed

[2024-07-08T13:54:48+0000] TASK - [Rollback: Remove file created during conversion /etc/yum.repos.d/CentOS-Vault.repo]
File /etc/yum.repos.d/CentOS-Vault.repo removed

[2024-07-08T13:54:48+0000] TASK - [Rollback: Remove file created during conversion /etc/yum.repos.d/CentOS-Sources.repo]
File /etc/yum.repos.d/CentOS-Sources.repo removed

[2024-07-08T13:54:48+0000] TASK - [Rollback: Remove file created during conversion /etc/yum.repos.d/CentOS-Media.repo]
File /etc/yum.repos.d/CentOS-Media.repo removed

[2024-07-08T13:54:48+0000] TASK - [Rollback: Remove file created during conversion /etc/yum.repos.d/CentOS-Debuginfo.repo]
File /etc/yum.repos.d/CentOS-Debuginfo.repo removed

[2024-07-08T13:54:48+0000] TASK - [Rollback: Remove file created during conversion /etc/yum.repos.d/CentOS-CR.repo]
File /etc/yum.repos.d/CentOS-CR.repo removed

[2024-07-08T13:54:48+0000] TASK - [Rollback: Remove file created during conversion /etc/yum.repos.d/CentOS-Base.repo]
File /etc/yum.repos.d/CentOS-Base.repo removed

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/rhsm/rhsm.conf from backup] ****************
File /etc/rhsm/rhsm.conf restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/convert2rhel.ini from backup] **************
File /etc/convert2rhel.ini restored.
[2024-07-08T13:54:48+0000] DEBUG - Calling command 'rpm -e gpg-pubkey-37017186'

[2024-07-08T13:54:48+0000] TASK - [Rollback: Remove installed certificate] ***************************
Certificate redhat-uep.pem was present before conversion. Skipping removal.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/yum/vars/infra from backup] ****************
File /etc/yum/vars/infra restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/yum/vars/contentdir from backup] ***********
File /etc/yum/vars/contentdir restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/yum.repos.d/redhat.repo from backup] *******
File /etc/yum.repos.d/redhat.repo restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/yum.repos.d/convert2rhel.repo from backup] *
File /etc/yum.repos.d/convert2rhel.repo restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/yum.repos.d/centoscz_updates.repo from backup]
File /etc/yum.repos.d/centoscz_updates.repo restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/yum.repos.d/centoscz_os.repo from backup] **
File /etc/yum.repos.d/centoscz_os.repo restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/yum.repos.d/centoscz_extras.repo from backup]
File /etc/yum.repos.d/centoscz_extras.repo restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/yum.repos.d/centoscz_epel.repo from backup]
File /etc/yum.repos.d/centoscz_epel.repo restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/os-release from backup] ********************
File /etc/os-release restored.

[2024-07-08T13:54:48+0000] TASK - [Rollback: Restore /etc/system-release from backup] ****************
File /etc/system-release restored.

========== Success (No changes needed) ==========
(SUCCESS) CHECK_FIREWALLD_AVAILABILITY::SUCCESS - N/A
(SUCCESS) IS_LOADED_KERNEL_LATEST::SUCCESS - N/A
(SUCCESS) CUSTOM_REPOSITORIES_ARE_VALID::SUCCESS - N/A
(SUCCESS) VALIDATE_PACKAGE_MANAGER_TRANSACTION::SUCCESS - N/A
(SUCCESS) BACKUP_REPOSITORY::SUCCESS - N/A
(SUCCESS) SUBSCRIBE_SYSTEM::SUCCESS - N/A
(SUCCESS) PRE_SUBSCRIPTION::SUCCESS - N/A
(SUCCESS) EFI::SUCCESS - N/A
(SUCCESS) DUPLICATE_PACKAGES::SUCCESS - N/A
(SUCCESS) READ_ONLY_MOUNTS_SYS::SUCCESS - N/A
(SUCCESS) READ_ONLY_MOUNTS_MNT::SUCCESS - N/A
(SUCCESS) REMOVE_SPECIAL_PACKAGES::SUCCESS - N/A
(SUCCESS) BACKUP_REDHAT_RELEASE::SUCCESS - N/A
(SUCCESS) PACKAGE_UPDATES::SUCCESS - N/A
(SUCCESS) LIST_THIRD_PARTY_PACKAGES::SUCCESS - N/A
(SUCCESS) EUS_SYSTEM_CHECK::SUCCESS - N/A
(SUCCESS) ELS_SYSTEM_CHECK::SUCCESS - N/A
(SUCCESS) BACKUP_YUM_VARIABLES::SUCCESS - N/A
(SUCCESS) REMOVE_IWLAX2XX_FIRMWARE::SUCCESS - N/A
(SUCCESS) BACKUP_PACKAGE_FILES::SUCCESS - N/A
(SUCCESS) RHEL_COMPATIBLE_KERNEL::SUCCESS - N/A
(SUCCESS) TAINTED_KMODS::SUCCESS - N/A
(SUCCESS) DBUS_IS_RUNNING::SUCCESS - N/A
(SUCCESS) ENSURE_KERNEL_MODULES_COMPATIBILITY::SUCCESS - N/A
(SUCCESS) INSTALL_RED_HAT_GPG_KEY::SUCCESS - N/A
(SUCCESS) INSTALL_RED_HAT_CERT_FOR_YUM::SUCCESS - N/A
(SUCCESS) CONVERT2RHEL_LATEST_VERSION::SUCCESS - N/A

========== Info (No changes needed) ==========
(INFO) REMOVE_SPECIAL_PACKAGES::SPECIAL_PACKAGES_REMOVED - Special packages to be removed
     Description: We have identified installed packages that match a pre-defined list of packages that are to be removed during the conversion
     Diagnosis: The following packages will be removed during the conversion: geoipupdate-2.5.0-2.el7.x86_64, centos-release-7-9.2009.2.el7.centos.x86_64
     Remediations: N/A

========== Warning (Review and fix if needed) ==========
(WARNING) ELS_SYSTEM_CHECK::ELS_COMMAND_LINE_OPTION_UNUSED - The --els command line option is unused
     Description: Current system version is under Extended Lifecycle Support (ELS). You may want to consider using the --els command line option to land
on a system patched with the latest security errata.
     Diagnosis: N/A
     Remediations: N/A
(WARNING) LIST_THIRD_PARTY_PACKAGES::THIRD_PARTY_PACKAGE_DETECTED - Third party packages detected
     Description: Third party packages will not be replaced during the conversion.
     Diagnosis: Only packages signed by CentOS Linux are to be replaced. Red Hat support won't be provided for the following third party packages:
    gpfs.compression-5.1.3-1.x86_64, gpfs.java-5.1.3-1.x86_64, gpfs.docs-5.1.3-1.noarch, iftop-1.0-0.21.pre4.el7.x86_64, gpfs.license.da-5.1.3-1.x86_64,
nmon-16g-3.el7.x86_64, gpfs.base-5.1.3-1.x86_64, gpfs.gui-5.1.3-1.noarch, gpfs.gss.pmsensors-5.1.3-1.el7.x86_64, illumio-ven-23.2.22-295.c7.x86_64,
davfs2-1.4.7-6.el7.x86_64, gpfs.gss.pmcollector-5.1.3-1.el7.x86_64, gpfs.msg.en_US-5.1.3-1.noarch, gpfs.bda-integration-1.0.9-0.noarch,
gpfs.gpl-5.1.3-1.noarch, epel-release-7-14.noarch, perl-PDF-API2-2.021-2.el7.noarch, gpfs.gskit-8.0.55-19.1.x86_64, 1:openssl11-libs-1.1.1k-7.el7.x86_64
     Remediations: N/A

[2024-07-08T13:54:48+0000] DEBUG - /var/run/lock/convert2rhel.pid PID 101237 unlocked.
paradoxicalNL commented 3 weeks ago

I will close this issue now. It did unfortunatly not pop up in my searches (I searched for the exact string). Did use DuckDuck go though. Thanks a lot for steering me in the right direction! I have a case open with RHEL tech support, I will communicatie this information to them.