Skip to content

Commit

Permalink
BZ#2283067 - don't remove Tomcat during Satellite 7to8 upgrade
Browse files Browse the repository at this point in the history
This was previously added to workaround issues with the packages in RHEL
8.8/8.9, but now that 8.10 is released it's not required anymore and
actually breaks the upgrade.
  • Loading branch information
evgeni authored and pirat89 committed May 28, 2024
1 parent 1fab827 commit 8b1fd71
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

from leapp.actors import Actor
from leapp.libraries.common.config import architecture
from leapp.libraries.common.config import architecture, version
from leapp.libraries.common.rpms import has_package
from leapp.libraries.stdlib import run
from leapp.models import (
Expand Down Expand Up @@ -55,11 +55,12 @@ def process(self):
# enable modules that are needed for Pulpcore
modules_to_enable.append(Module(name='python38', stream='3.8'))
to_install.append('katello')
# Force removal of tomcat
# PES data indicates tomcat.el7 can be upgraded to tomcat.el8 since EL 8.8,
# but we need pki-servlet-engine from the module instead which will be pulled in via normal
# package dependencies
to_remove.extend(['tomcat', 'tomcat-lib'])
if version.matches_target_version('8.8', '8.9'):
# Force removal of tomcat
# PES data indicates tomcat.el7 can be upgraded to tomcat.el8 since EL 8.8,
# but we need pki-servlet-engine from the module instead which will be pulled in via normal
# package dependencies
to_remove.extend(['tomcat', 'tomcat-lib'])

if has_package(InstalledRPM, 'rh-redis5-redis'):
modules_to_enable.append(Module(name='redis', stream='5'))
Expand Down

0 comments on commit 8b1fd71

Please sign in to comment.