Satellite 6.16 failed to leapp upgrade to RHEL9, "systemd[1]: leapp_resume.service: Main process exited, code=exited, status=2/INVALIDARGUMENT"
Environment
- Red Hat Satellite 6.16
- Red Hat Enterprise Linux 8.10
- leapp-upgrade-el8toel9
Issue
-
Red Hat Satellite 6.16leapp upgrade to RHEL9 fails with below error:sat616 leapp3[3022]: Error: Phase firstboot.before does not exist in the workflow sat616 systemd[1]: leapp_resume.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Resolution
WORKAROUND
-
Edit
/usr/share/leapp-repository/repositories/system_upgrade/common/actors/createresumeservice/files/leapp_resume.servicein order to:Add the following in the [Unit] section:
After=selinux-autorelabel.service <=========change the DefaultDependencies to yes (the default):
DefaultDependencies=yes <=========
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
- This is hitting the RHEL bug that is still going on:
This content is not included.Services are executed during the selinux-autorelabel
Diagnostic Steps
-
Commands needed to allow the leapp process of
RHEL8/Satellite 6.16toRHEL9/Satellite 6.16to continue:-
Set crypto-policies to default, Leapp upgrade fails with error message "sslv3 alert handshake failure" while fetching CDN repos.
# update-crypto-policies --set DEFAULT -
Firewalld Configuration AllowZoneDrifting Is Unsupported, Changes in firewalld related to Zone Drifting
# sed -i s/^AllowZoneDrifting=.*/AllowZoneDrifting=no/ /etc/firewalld/firewalld.conf
-
Up per-process file descriptor limit (this is a temporary change) Why does leapp preupgrade fail with
sqlite3.OperationalError: unable to open database filetraceback error ?# ulimit -n 16384
-
-
To avoid the error mentioned in below KBase article, apply the latest updates of RHEL8 OS;
Leapp upgrade RHEL8.10 to RHEL9 failed with error, PID: 109803 leapp.workflow.Download.dnf_package_download: file /boot/efi/EFI/redhat/shim.efi from install of shim-x64-15.8-4.el9_3.x86_64 conflicts with file from package shim-ia32-15.8-4.el8_9.x86_64
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.