Guided Solution
Objectives
-
Investigate why the RHEL 8 server upgrade to RHEL 9 via Leapp is failing in Red Hat Satellite 6.
-
Solve the upgrade issue in the hands-on lab environment.
Instructions
Run following instructions on rhel81
system with root
as user.
[ec2-user@rhel81 ~]$ sudo su - [root@rhel81 ~]#
-
Try to list the available repos on the client and it fails with:
subscription-manager repos
Sample output:Repositories disabled by configuration.
-
Change the value of
manage_repos
in/etc/rhsm/rhsm.conf
to1
instead of0
.Sample output:[root@rhel81 ~]# cat /etc/rhsm/rhsm.conf | grep -i manage_repos manage_repos = 1
-
Run
subscription-manager refresh
command to refresh the repo data.subscription-manager refresh
Sample output:All local data refreshed
-
Install the leapp utility via
dnf install leapp-upgrade
and then runleapp preupgrade
.dnf install leapp-upgrade -y
leapp preupgrade
Sample output:... ... 2025-02-10 10:57:15.999198 [ERROR] Actor: target_userspace_creator Message: Unable to install RHEL 9 userspace packages. ... ... ...
-
Sync and add the
9.x
minorappstream
andbaseos
repos to the content view:-
Get the satellite console details and credentials from
Lab Access Details
underInfo
tab from the demo platform. -
Login to satellite web console.
-
Navigate to
Content
select . -
Search with
rhel-9-for-x86_64-baseos-rpms
and click rhel-9-for-x86_64-baseos-rpms to view drop down options. -
Click on the + beside
x86_64 9.4
to enablebaseos
for9.4
minor version or the supported minor version as per this docTip: click on the image to open in a new tab for better visibility
-
-
Perform the previous steps for
appstream
as well:-
Login to satellite web console.
-
Navigate to
Content
select . -
Search with
rhel-9-for-x86_64-appstream-rpms
and click rhel-9-for-x86_64-appstream-rpms to view drop down options. -
Click on the + beside
x86_64 9.4
to enableappstream
for9.4
minor version or the supported minor version as per this docTip: click on the image to open in a new tab for better visibility
-
Navigate to
Content
select and click Expand all. -
Click on the checkbox for
appstream
andbaseos
for9.4
and click Synchronize Now at the bottom.Tip: click on the image to open in a new tab for better visibility
-
-
Now add
baseos
andappstream
for9.4
repos to the content view:-
-
Click on leapp_8to9 content view and then navigate to
Repositories
tab. -
Select the
Status
filter asNot added
. -
Select the
Red Hat Enterprise Linux 9 for x86_64 - AppStream RPMs 9.4
andRed Hat Enterprise Linux 9 for x86_64 - BaseOS RPMs 9.4
repos and then click Add repositoriesTip: click on the image to open in a new tab for better visibility
-
Click Publish new version and then Next and Finish to publish a new version of this content view.
Tip: click on the image to open in a new tab for better visibility
-
-
Run
leapp preupgrade
now.leapp preupgrade
Sample output:... ... OSError: [Errno 24] Too many open files ... ... sqlite3.OperationalError: unable to open database file ... ...
-
Run the below command to set the ulimit.
ulimit -n 16384
-
Run
leapp preupgrade
again.leapp preupgrade
Sample output:... ... Complete! ... Reports summary: Errors: 0 Inhibitors: 0 ... ...
-
Once the
leapp preupgrade
completes with0
errors and0
inhibitors , run theleapp upgrade
.leapp upgrade
Sample output:... ... file /usr/lib64/engines-3/afalg.so from install of openssl-libs-1:3.0.7-28.el9_4.x86_64 conflicts with file from package openssl3-libs-3.2.2-2.1.el8.x86_64 ... ...
-
The
openssl3-libs-3.2.2-2.1.el8.x86_64
rpm is installed from EPEL repo and hence needs to be removed to fix this error.yum remove openssl3-libs-3.2.2-2.1.el8.x86_64 -y
-
Run the
leapp upgrade
again.leapp upgrade
Sample output:... ... Complete! ====> * add_upgrade_boot_entry Add new boot entry for Leapp provided initramfs. A reboot is required to continue. Please reboot your system. ... ...
-
Once
leapp upgrade
is successful and it prompts for reboot; reboot the system and confirm that the server is now booted with RHEL 9 kernel.Sample output:[root@rhel81 ~]# reboot Shared connection to rhel81 closed.
This will take 15-20 minutes to reflect the changes. Sample output:[ec2-user@rhel81 ~]$ cat /etc/redhat-release Red Hat Enterprise Linux release 9.4 (Plow)