In-place upgrade of Red Hat Satellite 6 server from RHEL-7 to RHEL-8 fails with package idm-tomcatjss-7.8.0-1.module+el8.10.0+21280+cce842b8.noarch from rhel-8-for-x86_64-appstream-rpms requires tomcat.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.11

Issue

  • RHEL-7 to RHEL-8 upgrade of Red Hat Satellite 6 server using leapp fails with below error:

       cannot install the best update candidate for package tomcatjss-7.2.5-1.el7.noarch
       package idm-tomcatjss-7.8.0-1.module+el8.10.0+21280+cce842b8.noarch from rhel-8-for-x86_64-appstream-rpms requires tomcat, but none of the providers can be installed
    tomcatjss-7.2.5-1.el7.noarch from @System  does not belong to a distupgrade repository
    
  • RHEL-7 to RHEL-8 upgrade of Red Hat Satellite 6 server using leapp fails with below error in /var/log/leapp/leapp-report.txt:

    Risk Factor: high (error)
    Title: DNF execution failed with non zero exit code.
    Summary: {"hint": "If there was a problem reaching remote content (see stderr output) and proxy is configured in the YUM/DNF configuration file, the proxy configuration is likely causing this error. Make sure the proxy is properly configured in /etc/dnf/dnf.conf. It's also possible the proxy settings in the DNF configuration file are incompatible with the target system. A compatible configuration can be placed in /etc/leapp/files/dnf.conf which, if present, it will be used during some parts of the upgrade instead of original /etc/dnf/dnf.conf. In such case the configuration will also be applied to the target system. Note that /etc/dnf/dnf.conf needs to be still configured correctly for your current system to pass the early phases of the upgrade process.", "STDERR": "Warning: Package marked by Leapp to install not found in repositories metadata: rubygem-foreman_ansible_core rubygem-foreman-tasks-core rubygem-foreman_remote_execution_core log4j12\nWarning: Package marked by Leapp to upgrade not found in repositories metadata: leapp gpg-pubkey leapp-upgrade-el7toel8 python2-leapp\nTransaction check: \n\n Problem 1: package katello-4.3.0-3.el8sat.noarch requires candlepin-selinux >= 2.0, but none of the providers can be installed\n  - cannot install the best update candidate for package candlepin-selinux-4.1.19-1.el7sat.noarch\n  - cannot install the best candidate for the job\n  - candlepin-selinux-4.1.19-1.el7sat.noarch does not belong to a distupgrade repository\n  - nothing provides selinux-policy >= 3.14.3-128.el8_9.1 needed by candlepin-selinux-4.1.23-1.el8sat.noarch\n Problem 2: package katello-4.3.0-3.el8sat.noarch requires candlepin >= 2.0, but none of the providers can be installed\n  - cannot install the best update candidate for package candlepin-4.1.19-1.el7sat.noarch\n  - package katello-4.3.0-3.el8sat.noarch requires candlepin-selinux >= 2.0, but none of the providers can be installed\n  - package candlepin-selinux-4.1.13-1.el8sat.noarch requires candlepin = 4.1.13-1.el8sat, but none of the providers can be installed\n  - package candlepin-selinux-4.1.14-1.el8sat.noarch requires candlepin = 4.1.14-1.el8sat, but none of the providers can be installed\n  - package candlepin-selinux-4.1.19-1.el8sat.noarch requires candlepin = 4.1.19-1.el8sat, but none of the providers can be installed\n  - package candlepin-selinux-4.1.19-2.el8sat.noarch requires candlepin = 4.1.19-2.el8sat, but none of the providers can be installed\n  - cannot install both candlepin-4.1.23-1.el8sat.noarch and candlepin-4.1.13-1.el8sat.noarch\n  - cannot install both candlepin-4.1.23-1.el8sat.noarch and candlepin-4.1.14-1.el8sat.noarch\n  - cannot install both candlepin-4.1.23-1.el8sat.noarch and candlepin-4.1.19-1.el8sat.noarch\n  - cannot install both candlepin-4.1.23-1.el8sat.noarch and candlepin-4.1.19-2.el8sat.noarch\n  - package satellite-6.11.5.7-1.el8sat.noarch requires katello >= 3.14.0, but none of the providers can be installed\n  - cannot install the best update candidate for package candlepin-selinux-4.1.19-1.el7sat.noarch\n  - cannot install the best candidate for the job\n  - katello-4.3.0-3.el7sat.noarch does not belong to a distupgrade repository\n  - nothing provides selinux-policy >= 3.14.3-128.el8_9.1 needed by candlepin-selinux-4.1.23-1.el8sat.noarch\n  - candlepin-4.1.19-1.el7sat.noarch does not belong to a distupgrade repository\n", "STDOUT": "Last metadata expiration check: 0:02:53 ago on Fri Oct 11 14:08:50 2024.\nPackage foreman-installer-katello-1:3.1.2.8-1.el7sat.noarch is already installed.\nPackage rubygem-foreman_maintain-1:1.0.19-1.el7sat.noarch is already installed.\nPackage tfm-rubygem-smart_proxy_ansible-3.3.1-5.el7sat.noarch is already installed.\nPackage satellite-installer-6.11.0.7-1.el7sat.noarch is already installed.\nPackage katello-4.3.0-3.el7sat.noarch is already installed.\nPackage satellite-6.11.5.7-1.el7sat.noarch is already installed.\nPackage foreman-installer-1:3.1.2.8-1.el7sat.noarch is already installed.\n"}
    

Resolution

Workaround

  • Add tomcat and tomcat-lib to the /etc/leapp/transaction/to_keep file to retain the packages during the upgrade.

    # echo tomcat >> /etc/leapp/transaction/to_keep
    # echo tomcat-lib >> /etc/leapp/transaction/to_keep
    
  • Proceed with the upgrade to RHEL-8.

  • For more information, open a This content is not included.support case with Red Hat Technical Support Team.

For more KB articles/solutions related to Red Hat Satellite 6.x LEAPP Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x LEAPP Issues.

Root Cause

Diagnostic Steps

  • The leapp preupgrade command for upgrading the Red Hat Satellite server to RHEL 8.10failed with below error:

       [ERROR] Actor: dnf_transaction_check
    Message: DNF execution failed with non zero exit code.
    Summary:
        Stdout: Last metadata expiration check: 0:01:40 ago on Thu May 23 17:30:47 2024.
                Package foreman-installer-katello-1:3.1.2.8-1.el7sat.noarch is already installed.
                Package rubygem-foreman_maintain-1:1.0.19-1.el7sat.noarch is already installed.
                Package tfm-rubygem-smart_proxy_ansible-3.3.1-5.el7sat.noarch is already installed.
                Package satellite-installer-6.11.0.7-1.el7sat.noarch is already installed.
                Package katello-4.3.0-3.el7sat.noarch is already installed.
                Package satellite-6.11.5.7-1.el7sat.noarch is already installed.
                Package foreman-installer-1:3.1.2.8-1.el7sat.noarch is already installed.
        Stderr: Warning: Package marked by Leapp to install not found in repositories metadata: log4j12
                Warning: Package marked by Leapp to upgrade not found in repositories metadata: python2-leapp leapp gpg-pubkey leapp-upgrade-el7toel8
                Transaction check: 
                
                 Problem: problem with installed package tomcatjss-7.2.5-1.el7.noarch
                  - cannot install the best update candidate for package tomcatjss-7.2.5-1.el7.noarch
                  - package idm-tomcatjss-7.8.0-1.module+el8.10.0+21280+cce842b8.noarch from rhel-8-for-x86_64-appstream-rpms requires tomcat, but none of the providers can be installed
                  - tomcatjss-7.2.5-1.el7.noarch from @System  does not belong to a distupgrade repository
                  - conflicting requests
        Hint: If there was a problem reaching remote content (see stderr output) and proxy is configured in the YUM/DNF configuration file, the proxy configuration is likely causing this error. Make sure the proxy is properly configured in /etc/dnf/dnf.conf. It's also possible the proxy settings in the DNF configuration file are incompatible with the target system. A compatible configuration can be placed in /etc/leapp/files/dnf.conf which, if present, it will be used during some parts of the upgrade instead of original /etc/dnf/dnf.conf. In such case the configuration will also be applied to the target system. Note that /etc/dnf/dnf.conf needs to be still configured correctly for your current system to pass the early phases of the upgrade process.
    
SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.