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
-
/var/log/messgeshas :May 13 17:07:49 satellite leapp3[2287]: Error: Phase firstboot.before does not exist in the workflow May 13 17:07:49 satellite dracut[2120]: *** Squashing the files inside the initramfs done *** May 13 17:07:49 satellite dracut[2120]: *** Creating image file '/boot/initramfs-5.14.0-611.55.1.el9_7.x86_64kdump.img' *** May 13 17:07:49 satellite dracut[2120]: *** Hardlinking files *** May 13 17:07:49 satellite systemd[1]: leapp_resume.service: Main process exited, code=exited, status=2/INVALIDARGUMENT May 13 17:07:49 satellite systemd[1]: leapp_resume.service: Failed with result 'exit-code'. May 13 17:07:49 satellite systemd[1]: Failed to start Temporary Leapp service which resumes execution after reboot.
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.