convert2rhel: Failed to validate the yum transaction

Latest response

Hi:
trying to convert from CentOS 7 to RHEL 7 , but receive this error:

========== Error (Must fix before conversion) ==========
(ERROR) VALIDATE_PACKAGE_MANAGER_TRANSACTION.UNKNOWN_ERROR: Failed to validate the yum transaction.
*
given that this error only happen when the centos 7 contain 3rd party applications like zabbix for example ?

....
rhel-7-server-rhscon-2-installer-rpms
rhel-7-server-openstack-7.0-tools-source-rpms

Needed RHEL repositories are available.

[07/12/2023 15:30:25] TASK - [Convert: Subscription Manager - Disable all repositories] *********
[07/12/2023 15:30:25] DEBUG - Calling command 'subscription-manager repos --disable=*'
Repositories disabled.

[07/12/2023 15:31:37] TASK - [Convert: Subscription Manager - Enable RHEL repositories] *********
[07/12/2023 15:31:37] DEBUG - Calling command 'subscription-manager repos --enable=rhel-7-server-rpms'
Repositories enabled through subscription-manager
SUBSCRIBE_SYSTEM has succeeded

[07/12/2023 15:32:41] TASK - [Prepare: Ensure kernel modules compatibility with RHEL] ***********
[07/12/2023 15:32:41] DEBUG - Getting a list of loaded kernel modules.
[07/12/2023 15:32:41] DEBUG - Calling command 'lsmod'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename xt_CHECKSUM'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ipt_MASQUERADE'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename nf_nat_masquerade_ipv4'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename tun'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename devlink'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ip6t_rpfilter'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ip6t_REJECT'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename nf_reject_ipv6'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ipt_REJECT'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename nf_reject_ipv4'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename xt_conntrack'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ebtable_nat'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ebtable_broute'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename bridge'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename stp'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename llc'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ip6table_nat'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename nf_conntrack_ipv6'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename nf_defrag_ipv6'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename nf_nat_ipv6'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ip6table_mangle'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ip6table_security'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ip6table_raw'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename iptable_nat'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename nf_conntrack_ipv4'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename nf_defrag_ipv4'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename nf_nat_ipv4'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename nf_nat'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename iptable_mangle'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename iptable_security'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename iptable_raw'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename nf_conntrack'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ip_set'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ebtable_filter'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ebtables'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ip6table_filter'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ip6_tables'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename iptable_filter'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename vmw_vsock_vmci_transport'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename vsock'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename sunrpc'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename sb_edac'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename iosf_mbi'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename crc32_pclmul'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ghash_clmulni_intel'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename aesni_intel'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ppdev'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename lrw'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename gf128mul'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename glue_helper'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ablk_helper'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename cryptd'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename vmw_balloon'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename pcspkr'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename sg'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename joydev'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename parport_pc'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename vmw_vmci'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename parport'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename i2c_piix4'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ip_tables'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename xfs'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename libcrc32c'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename sr_mod'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename cdrom'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename vmwgfx'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename drm_kms_helper'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ata_generic'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename pata_acpi'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename syscopyarea'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename sysfillrect'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename sysimgblt'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename fb_sys_fops'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ttm'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename sd_mod'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename drm'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename crc_t10dif'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename crct10dif_generic'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ahci'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename nfit'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename libahci'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename libnvdimm'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename crct10dif_pclmul'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename ata_piix'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename crct10dif_common'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename crc32c_intel'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename serio_raw'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename libata'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename vmxnet3'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename vmw_pvscsi'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename drm_panel_orientation_quirks'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename dm_mirror'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename dm_region_hash'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename dm_log'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename dm_mod'
[07/12/2023 15:32:41] DEBUG - Calling command 'modinfo -F filename fuse'
[07/12/2023 15:32:41] DEBUG - Calling command 'repoquery --releasever=7Server --repoid rhel-7-server-rpms -f /lib/modules/*.ko*'
Comparing the loaded kernel modules with the modules available in the following RHEL kernel packages available in the enabled repositories:
 kernel-0:3.10.0-1160.92.1.el7.x86_64
 kernel-debug-0:3.10.0-1160.92.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
[07/12/2023 15:35:17] DEBUG - Calling command 'repoquery --releasever=7Server --repoid rhel-7-server-rpms -l kernel-0:3.10.0-1160.92.1.el7.x86_64 kernel-debug-0:3.10.0-1160.92.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'
[07/12/2023 15:35:28] DEBUG - All loaded kernel modules are available in RHEL.
ENSURE_KERNEL_MODULES_COMPATIBILITY has succeeded

[07/12/2023 15:35:28] TASK - [Prepare: Validate the yum transaction] *****************************
Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager
Enabling RHEL repositories:
rhel-7-server-rpms
Adding CentOS Linux packages to the yum transaction set.
Loading mirror speeds from cached hostfile
[07/12/2023 15:35:42] DEBUG - Downloading repository metadata: repomdJlavGUtmp.xml
Skipping the running kernel: kernel-3.10.0-1160.92.1.el7.x86_64
Skipping the running kernel: kernel-3.10.0-1160.92.1.el7.x86_64
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.
Running Transaction Check
[07/12/2023 15:44:28] DEBUG - Got the following exception message: [u'ERROR with transaction check vs depsolve:', 'redhat-indexhtml is needed by firefox-102.12.0-1.el7_9.x86_64']
CRITICAL - Failed to validate the yum transaction.
ERROR - (ERROR) VALIDATE_PACKAGE_MANAGER_TRANSACTION.UNKNOWN_ERROR: Failed to validate the yum transaction.
CRITICAL - Conversion failed.
Writing breadcrumbs to '/etc/migration-results'.
Writing RHSM custom facts to '/etc/rhsm/facts/convert2rhel.facts'.
[07/12/2023 15:44:29] DEBUG - Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/convert2rhel/main.py", line 100, in main
    loggerinst.critical("Conversion failed.")
  File "/usr/lib/python2.7/site-packages/convert2rhel/logger.py", line 159, in _critical
    sys.exit(msg)
SystemExit: Conversion failed.

WARNING - Abnormal exit! Performing rollback ...

[07/12/2023 15:44:29] TASK - [Rollback: RHSM-related actions] ***********************************
Unregistering the system.
[07/12/2023 15:44:29] DEBUG - Calling command 'rpm --quiet -q subscription-manager'
[07/12/2023 15:44:29] DEBUG - Calling command 'subscription-manager unregister'
System unregistered successfully.

[07/12/2023 15:44:34] TASK - [Rollback: Remove installed packages] ******************************
Removing package: subscription-manager
[07/12/2023 15:44:34] DEBUG - Calling command 'rpm -e --nodeps subscription-manager'
Removing package: subscription-manager-rhsm-certificates
[07/12/2023 15:44:37] DEBUG - Calling command 'rpm -e --nodeps subscription-manager-rhsm-certificates'
Removing package: subscription-manager-rhsm
[07/12/2023 15:44:38] DEBUG - Calling command 'rpm -e --nodeps subscription-manager-rhsm'
Removing package: python-syspurpose
[07/12/2023 15:44:38] DEBUG - Calling command 'rpm -e --nodeps python-syspurpose'

[07/12/2023 15:44:38] TASK - [Rollback: Install removed packages] *******************************
Installing packages:
        /var/lib/convert2rhel/backup/centos-indexhtml-7-9.el7.centos.noarch.rpm
        /var/lib/convert2rhel/backup/centos-logos-70.0.6-3.el7.centos.noarch.rpm
        /var/lib/convert2rhel/backup/kmod-kvdo-6.1.3.23-5.el7.x86_64.rpm
        /var/lib/convert2rhel/backup/libreport-centos-2.1.11-53.el7.centos.x86_64.rpm
        /var/lib/convert2rhel/backup/libreport-plugin-mantisbt-2.1.11-53.el7.centos.x86_64.rpm
        /var/lib/convert2rhel/backup/subscription-manager-rhsm-certificates-1.24.51-1.el7.centos.x86_64.rpm
        /var/lib/convert2rhel/backup/subscription-manager-rhsm-1.24.51-1.el7.centos.x86_64.rpm
        /var/lib/convert2rhel/backup/subscription-manager-1.24.51-1.el7.centos.x86_64.rpm
        /var/lib/convert2rhel/backup/python-syspurpose-1.24.51-1.el7.centos.x86_64.rpm
        /var/lib/convert2rhel/backup/centos-release-7-9.2009.1.el7.centos.x86_64.rpm
[07/12/2023 15:44:38] DEBUG - Calling command 'rpm -i --replacepkgs /var/lib/convert2rhel/backup/centos-indexhtml-7-9.el7.centos.noarch.rpm /var/lib/convert2rhel/backup/centos-logos-70.0.6-3.el7.centos.noarch.rpm /var/lib/convert2rhel/backup/kmod-kvdo-6.1.3.23-5.el7.x86_64.rpm /var/lib/convert2rhel/backup/libreport-centos-2.1.11-53.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/libreport-plugin-mantisbt-2.1.11-53.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/subscription-manager-rhsm-certificates-1.24.51-1.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/subscription-manager-rhsm-1.24.51-1.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/subscription-manager-1.24.51-1.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/python-syspurpose-1.24.51-1.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/centos-release-7-9.2009.1.el7.centos.x86_64.rpm'

[07/12/2023 15:47:41] TASK - [Rollback: Restore variable files to /etc/yum/vars] ***************************
Restored variable file: contentdir
Restored variable file: infra

[07/12/2023 15:47:41] TASK - [Rollback: Restore .repo files to /etc/yum.repos.d/] ***************
Restored .repo file: elrepo.repo
Restored .repo file: zabbix.repo
Restored .repo file: convert2rhel.repo
Restored .repo file: CentOS-Base.repo
Restored .repo file: CentOS-CR.repo
Restored .repo file: CentOS-Debuginfo.repo
Restored .repo file: CentOS-Media.repo
Restored .repo file: CentOS-Sources.repo
Restored .repo file: CentOS-Vault.repo
Restored .repo file: CentOS-fasttrack.repo
Restored .repo file: CentOS-x86_64-kernel.repo

[07/12/2023 15:47:41] TASK - [Rollback: Restore /etc/system-release from backup] ****************
File /etc/system-release restored.

[07/12/2023 15:47:41] TASK - [Rollback: Restore /etc/os-release from backup] ********************
File /etc/os-release restored.

[07/12/2023 15:47:41] TASK - [Rollback: Restore /etc/yum/pluginconf.d/versionlock.list from backup] 
/etc/yum/pluginconf.d/versionlock.list hasn't been backed up.

[07/12/2023 15:47:41] TASK - [Rollback: Remove installed RHSM certificate] **********************
Certificate /etc/pki/product-default/69.pem removed
[07/12/2023 15:47:41] DEBUG - Calling command 'rpm -e gpg-pubkey-37017186'

[07/12/2023 15:47:41] TASK - [Pre-conversion analysis report] ***********************************

========== Error (Must fix before conversion) ==========
(ERROR) VALIDATE_PACKAGE_MANAGER_TRANSACTION.UNKNOWN_ERROR: Failed to validate the yum transaction.

any help appreciated

Responses

here is the validation step error (with debug option):

[07/12/2023 15:35:28] TASK - [Prepare: Validate the yum transaction] *****************************
Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager
Enabling RHEL repositories:
rhel-7-server-rpms
Adding CentOS Linux packages to the yum transaction set.
Loading mirror speeds from cached hostfile
[07/12/2023 15:35:42] DEBUG - Downloading repository metadata: repomdJlavGUtmp.xml
Skipping the running kernel: kernel-3.10.0-1160.92.1.el7.x86_64
Skipping the running kernel: kernel-3.10.0-1160.92.1.el7.x86_64
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.
Running Transaction Check
[07/12/2023 15:44:28] DEBUG - Got the following exception message: [u'ERROR with transaction check vs depsolve:', 'redhat-indexhtml is needed by firefox-102.12.0-1.el7_9.x86_64']
CRITICAL - Failed to validate the yum transaction.
ERROR - (ERROR) VALIDATE_PACKAGE_MANAGER_TRANSACTION.UNKNOWN_ERROR: Failed to validate the yum transaction.
CRITICAL - Conversion failed.
Writing breadcrumbs to '/etc/migration-results'.
Writing RHSM custom facts to '/etc/rhsm/facts/convert2rhel.facts'.
[07/12/2023 15:44:29] DEBUG - Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/convert2rhel/main.py", line 100, in main
    loggerinst.critical("Conversion failed.")
  File "/usr/lib/python2.7/site-packages/convert2rhel/logger.py", line 159, in _critical
    sys.exit(msg)
SystemExit: Conversion failed.

WARNING - Abnormal exit! Performing rollback ...

[07/12/2023 15:44:29] TASK - [Rollback: RHSM-related actions] ***********************************
Unregistering the system.
[07/12/2023 15:44:29] DEBUG - Calling command 'rpm --quiet -q subscription-manager'
[07/12/2023 15:44:29] DEBUG - Calling command 'subscription-manager unregister'
System unregistered successfully.

[07/12/2023 15:44:34] TASK - [Rollback: Remove installed packages] ******************************
Removing package: subscription-manager
[07/12/2023 15:44:34] DEBUG - Calling command 'rpm -e --nodeps subscription-manager'
Removing package: subscription-manager-rhsm-certificates
[07/12/2023 15:44:37] DEBUG - Calling command 'rpm -e --nodeps subscription-manager-rhsm-certificates'
Removing package: subscription-manager-rhsm
[07/12/2023 15:44:38] DEBUG - Calling command 'rpm -e --nodeps subscription-manager-rhsm'
Removing package: python-syspurpose
[07/12/2023 15:44:38] DEBUG - Calling command 'rpm -e --nodeps python-syspurpose'

[07/12/2023 15:44:38] TASK - [Rollback: Install removed packages] *******************************
Installing packages:
        /var/lib/convert2rhel/backup/centos-indexhtml-7-9.el7.centos.noarch.rpm
        /var/lib/convert2rhel/backup/centos-logos-70.0.6-3.el7.centos.noarch.rpm
        /var/lib/convert2rhel/backup/kmod-kvdo-6.1.3.23-5.el7.x86_64.rpm
        /var/lib/convert2rhel/backup/libreport-centos-2.1.11-53.el7.centos.x86_64.rpm
        /var/lib/convert2rhel/backup/libreport-plugin-mantisbt-2.1.11-53.el7.centos.x86_64.rpm
        /var/lib/convert2rhel/backup/subscription-manager-rhsm-certificates-1.24.51-1.el7.centos.x86_64.rpm
        /var/lib/convert2rhel/backup/subscription-manager-rhsm-1.24.51-1.el7.centos.x86_64.rpm
        /var/lib/convert2rhel/backup/subscription-manager-1.24.51-1.el7.centos.x86_64.rpm
        /var/lib/convert2rhel/backup/python-syspurpose-1.24.51-1.el7.centos.x86_64.rpm
        /var/lib/convert2rhel/backup/centos-release-7-9.2009.1.el7.centos.x86_64.rpm
[07/12/2023 15:44:38] DEBUG - Calling command 'rpm -i --replacepkgs /var/lib/convert2rhel/backup/centos-indexhtml-7-9.el7.centos.noarch.rpm /var/lib/convert2rhel/backup/centos-logos-70.0.6-3.el7.centos.noarch.rpm /var/lib/convert2rhel/backup/kmod-kvdo-6.1.3.23-5.el7.x86_64.rpm /var/lib/convert2rhel/backup/libreport-centos-2.1.11-53.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/libreport-plugin-mantisbt-2.1.11-53.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/subscription-manager-rhsm-certificates-1.24.51-1.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/subscription-manager-rhsm-1.24.51-1.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/subscription-manager-1.24.51-1.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/python-syspurpose-1.24.51-1.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/centos-release-7-9.2009.1.el7.centos.x86_64.rpm'

[07/12/2023 15:47:41] TASK - [Rollback: Restore variable files to /etc/yum/vars] ***************************
Restored variable file: contentdir
Restored variable file: infra

[07/12/2023 15:47:41] TASK - [Rollback: Restore .repo files to /etc/yum.repos.d/] ***************
Restored .repo file: elrepo.repo
Restored .repo file: zabbix.repo
Restored .repo file: convert2rhel.repo
Restored .repo file: CentOS-Base.repo
Restored .repo file: CentOS-CR.repo
Restored .repo file: CentOS-Debuginfo.repo
Restored .repo file: CentOS-Media.repo
Restored .repo file: CentOS-Sources.repo
Restored .repo file: CentOS-Vault.repo
Restored .repo file: CentOS-fasttrack.repo
Restored .repo file: CentOS-x86_64-kernel.repo

[07/12/2023 15:47:41] TASK - [Rollback: Restore /etc/system-release from backup] ****************
File /etc/system-release restored.

[07/12/2023 15:47:41] TASK - [Rollback: Restore /etc/os-release from backup] ********************
File /etc/os-release restored.

[07/12/2023 15:47:41] TASK - [Rollback: Restore /etc/yum/pluginconf.d/versionlock.list from backup] 
/etc/yum/pluginconf.d/versionlock.list hasn't been backed up.

[07/12/2023 15:47:41] TASK - [Rollback: Remove installed RHSM certificate] **********************
Certificate /etc/pki/product-default/69.pem removed
[07/12/2023 15:47:41] DEBUG - Calling command 'rpm -e gpg-pubkey-37017186'

[07/12/2023 15:47:41] TASK - [Pre-conversion analysis report] ***********************************

========== Error (Must fix before conversion) ==========
(ERROR) VALIDATE_PACKAGE_MANAGER_TRANSACTION.UNKNOWN_ERROR: Failed to validate the yum transaction.

Hi : looking to the exception closer found the issue:

Got the following exception message: [u'ERROR with transaction check vs depsolve:', 'redhat-indexhtml is needed by firefox-102.12.0-1.el7_9.x86_64

in our case, removing firefox solve the issue. and now convert2rhel proceed without error.

Same exact error and debug message. Removed Firefox and convert2rhel utility completed successfully. Thanks for this Tahar!

Same problem and same resolution - thanks!

Thanks Tahar for highlighting the issue and sharing the workaround steps. I would be highlighting the same with our Convert2rhel Engineering team to fix this in upcoming releases.

here is the validation step error:

[2023-10-04T14:15:21+0000] TASK - [Prepare: Validate the yum transaction] ***************************** Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager Enabling RHEL repositories: rhel-7-server-rpms Adding CentOS Linux packages to the yum transaction set. Loading mirror speeds from cached hostfile Skipping the running kernel: kernel-3.10.0-1160.99.1.el7.x86_64 Skipping the running kernel: kernel-3.10.0-1160.99.1.el7.x86_64 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. Running Transaction Check CRITICAL - Failed to validate the yum transaction. ERROR - (ERROR) VALIDATE_PACKAGE_MANAGER_TRANSACTION::UNKNOWN_ERROR - Unknown Description: The cause of this error is unknown, please look at the diagnosis for more information. Diagnosis: Failed to validate the yum transaction. Remediation: [No further information given]

CRITICAL - Conversion failed. Writing breadcrumbs to '/etc/migration-results'. Writing RHSM custom facts to '/etc/rhsm/facts/convert2rhel.facts'. WARNING - Abnormal exit! Performing rollback ...

[2023-10-04T14:22:14+0000] TASK - [Rollback: RHSM-related actions] *********************************** Unregistering the system. System unregistered successfully.

[2023-10-04T14:22:18+0000] TASK - [Rollback: Remove installed certificate] *************************** Certificate /etc/pki/product-default/69.pem removed

[2023-10-04T14:22:18+0000] TASK - [Convert: Remove installed RHSM packages] ************************** Removing set of installed pkgs: subscription-manager-rhsm, subscription-manager, and subscription-manager-rhsm-certificates Removing package: subscription-manager-rhsm Removing package: subscription-manager Removing package: subscription-manager-rhsm-certificates

[2023-10-04T14:22:18+0000] TASK - [Rollback: Remove installed packages] ****************************** No package to remove

[2023-10-04T14:22:18+0000] TASK - [Rollback: Install removed packages] ******************************* Installing packages: /var/lib/convert2rhel/backup/centos-indexhtml-7-9.el7.centos.noarch.rpm /var/lib/convert2rhel/backup/centos-logos-70.0.6-3.el7.centos.noarch.rpm /var/lib/convert2rhel/backup/geoipupdate-2.5.0-2.el7.x86_64.rpm /var/lib/convert2rhel/backup/kmod-kvdo-6.1.3.23-5.el7.x86_64.rpm /var/lib/convert2rhel/backup/libreport-centos-2.1.11-53.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/libreport-plugin-mantisbt-2.1.11-53.el7.centos.x86_64.rpm /var/lib/convert2rhel/backup/centos-release-7-9.2009.1.el7.centos.x86_64.rpm

[2023-10-04T14:23:31+0000] TASK - [Rollback: Restore variable files to /etc/yum/vars] *************************** Restored variable file: contentdir Restored variable file: infra

[2023-10-04T14:23:31+0000] TASK - [Rollback: Restore .repo files to /etc/yum.repos.d/] *************** Restored .repo file: convert2rhel.repo Restored .repo file: CentOS-Base.repo Restored .repo file: CentOS-CR.repo Restored .repo file: CentOS-Debuginfo.repo Restored .repo file: CentOS-Media.repo Restored .repo file: CentOS-Sources.repo Restored .repo file: CentOS-Vault.repo Restored .repo file: CentOS-fasttrack.repo Restored .repo file: CentOS-x86_64-kernel.repo

[2023-10-04T14:23:31+0000] TASK - [Rollback: Restore /etc/system-release from backup] **************** File /etc/system-release restored.

[2023-10-04T14:23:31+0000] TASK - [Rollback: Restore /etc/os-release from backup] ******************** File /etc/os-release restored.

[2023-10-04T14:23:31+0000] TASK - [Rollback: Restore /etc/yum/pluginconf.d/versionlock.list from backup] /etc/yum/pluginconf.d/versionlock.list hasn't been backed up.

[2023-10-04T14:23:31+0000] TASK - [Rollback: Remove installed certificate] *************************** Certificate already removed from /etc/rhsm/ca/redhat-uep.pem

[2023-10-04T14:23:31+0000] TASK - [Pre-conversion analysis report] ***********************************

========== Error (Must fix before conversion) ========== (ERROR) VALIDATE_PACKAGE_MANAGER_TRANSACTION::UNKNOWN_ERROR - Unknown Description: The cause of this error is unknown, please look at the diagnosis for more information. Diagnosis: Failed to validate the yum transaction. Remediation: [No further information given]

(ERROR) IS_LOADED_KERNEL_LATEST::KERNEL_CURRENCY_CHECK_FAIL - Kernel currency check failed Description: Please refer to the diagnosis for further information Diagnosis: Could not find any kernel from repositories to compare against the loaded kernel. Remediation: Please, check if you have any vendor repositories enabled to proceed with the conversion. If you wish to ignore this message, set the environment variable 'CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK' to 1.

Hi: this is a different issue, you can try this before running convert2rhel :

export CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK=1

Issue: DEBUG - Got the following exception message: [u'ERROR with transaction check vs depsolve:', 'redhat-indexhtml is needed by firefox-102.15.1-1.el7_9.x86_64']

Refer below solution : https://access.redhat.com/solutions/7036068