Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-102053

Rerun on the target system fails (live mode)

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • rhel-upgrades
    • 20
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Machine were upgraded from 8.10 to 9.7 in live mode. The 'rerun' was processed and it ended with a traceback.

      It happens for rhsm and also for non rhsm scenarios.

      Packages:

      • leapp-0.19.0-3.el8_10.noarch
      • leapp-upgrade-el8toel9-0.22.0-4.el8_10.noarch

      Steps to reproduce

      1. Process upgrade from 8.10 to 9.7 with live mode
      2. Run 'rerun'
        /root/tmp_leapp_py3/leapp3 rerun
        

      Actual results

      ====> * remove_live_image[EXPERIMENTAL]
              Remove live mode artifacts
      Process Process-217:
      Traceback (most recent call last):
        File "/etc/leapp/repos.d/system_upgrade/common/actors/livemode/removeliveimage/libraries/remove_live_image.py", line 23, in remove_live_image
          os.unlink(artifacts.squashfs_path)
      FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/leapp/live-upgrade.img'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "/usr/lib64/python3.9/multiprocessing/process.py", line 315, in _bootstrap
          self.run()
        File "/usr/lib64/python3.9/multiprocessing/process.py", line 108, in run
          self._target(*self._args, **self._kwargs)
        File "/root/tmp_leapp_py3/leapp/repository/actor_definition.py", line 75, in _do_run
          actor_instance.run(*args, **kwargs)
        File "/root/tmp_leapp_py3/leapp/actors/__init__.py", line 319, in run
          self.process(*args)
        File "/etc/leapp/repos.d/system_upgrade/common/actors/livemode/removeliveimage/actor.py", line 18, in process
          remove_live_image_lib.remove_live_image()
        File "/etc/leapp/repos.d/system_upgrade/common/actors/livemode/removeliveimage/libraries/remove_live_image.py", line 25, in remove_live_image
          api.current_logger().warning('Failed to remove %s with error: %s', artifacts.squashfs, error)
      AttributeError: 'LiveModeArtifacts' object has no attribute 'squashfs'
      2025-07-06 09:37:54.566 ERROR    PID: 8658 leapp.workflow.FirstBoot: Actor remove_live_image has crashed: Traceback (most recent call last):
        File "/etc/leapp/repos.d/system_upgrade/common/actors/livemode/removeliveimage/libraries/remove_live_image.py", line 23, in remove_live_image
          os.unlink(artifacts.squashfs_path)
      FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/leapp/live-upgrade.img'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "/root/tmp_leapp_py3/leapp/repository/actor_definition.py", line 75, in _do_run
          actor_instance.run(*args, **kwargs)
        File "/root/tmp_leapp_py3/leapp/actors/__init__.py", line 319, in run
          self.process(*args)
        File "/etc/leapp/repos.d/system_upgrade/common/actors/livemode/removeliveimage/actor.py", line 18, in process
          remove_live_image_lib.remove_live_image()
        File "/etc/leapp/repos.d/system_upgrade/common/actors/livemode/removeliveimage/libraries/remove_live_image.py", line 25, in remove_live_image
          api.current_logger().warning('Failed to remove %s with error: %s', artifacts.squashfs, error)
      AttributeError: 'LiveModeArtifacts' object has no attribute 'squashfs'
      

      Expected results

      Rerun should work

              leapp-notifications leapp-notifications
              tcerna Tereza Zelinková
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: