Satellite 6.16 failed to leapp upgrade to RHEL9, "systemd[1]: leapp_resume.service: Main process exited, code=exited, status=2/INVALIDARGUMENT"

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.16
  • Red Hat Enterprise Linux 8.10
    • leapp-upgrade-el8toel9

Issue

  • Red Hat Satellite 6.16 leapp 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.service in 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

Diagnostic Steps

  • /var/log/messges has :

     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.
    
SBR
Product(s)
Components
Category
Tags

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.