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

leapp preupgrade fails badly when fapolicyd is started

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • rhel-8.10
    • leapp-repository
    • None
    • No
    • Important
    • rhel-upgrades
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      When executing leapp preupgrade on a system having fapolicyd started, the following failure shows up:

      Traceback (most recent call last):
        File "/usr/lib64/python3.6/multiprocessing/process.py", line 258, in _bootstrap
          self.run()
        File "/usr/lib64/python3.6/multiprocessing/process.py", line 93, in run
          self._target(*self._args, **self._kwargs)
        File "/usr/lib/python3.6/site-packages/leapp/repository/actor_definition.py", line 75, in _do_run
          actor_instance.run(*args, **kwargs)
        File "/usr/lib/python3.6/site-packages/leapp/actors/__init__.py", line 296, in run
          self.process(*args)
        File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/actor.py", line 60, in process
          userspacegen.perform()
        File "/usr/lib/python3.6/site-packages/leapp/utils/deprecation.py", line 42, in process_wrapper
          return target_item(*args, **kwargs)
        File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 1269, in perform
          _create_target_userspace(context, indata, indata.packages, indata.files, target_repoids)
        File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 1117, in _create_target_userspace
          _prep_repository_access(context, target_path)
        File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 629, in _prep_repository_access
          run(["chroot", target_userspace, "/bin/bash", "-c", "su - -c update-ca-trust"])
        File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/__init__.py", line 192, in run
          result=result
      leapp.libraries.stdlib.CalledProcessError: Command ['chroot', '/var/lib/leapp/el9userspace', '/bin/bash', '-c', 'su - -c update-ca-trust'] failed with exit code 127.
      2025-04-29 16:32:48.980 ERROR    PID: 8810 leapp.workflow.TargetTransactionFactsCollection: Actor target_userspace_creator has crashed: Traceback (most recent call last):
        File "/usr/lib/python3.6/site-packages/leapp/repository/actor_definition.py", line 75, in _do_run
          actor_instance.run(*args, **kwargs)
        File "/usr/lib/python3.6/site-packages/leapp/actors/__init__.py", line 296, in run
          self.process(*args)
        File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/actor.py", line 60, in process
          userspacegen.perform()
        File "/usr/lib/python3.6/site-packages/leapp/utils/deprecation.py", line 42, in process_wrapper
          return target_item(*args, **kwargs)
        File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 1269, in perform
          _create_target_userspace(context, indata, indata.packages, indata.files, target_repoids)
        File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 1117, in _create_target_userspace
          _prep_repository_access(context, target_path)
        File "/etc/leapp/repos.d/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 629, in _prep_repository_access
          run(["chroot", target_userspace, "/bin/bash", "-c", "su - -c update-ca-trust"])
        File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/__init__.py", line 192, in run
          result=result
      leapp.libraries.stdlib.CalledProcessError: Command ['chroot', '/var/lib/leapp/el9userspace', '/bin/bash', '-c', 'su - -c update-ca-trust'] failed with exit code 127.
      

      Please write an inhibitor for this and also update the Documentation accordingly (the Documentation never states fapolicyd has to be stopped, only that the DB must be updated afterwards).

              leapp-notifications leapp-notifications
              rhn-support-rmetrich Renaud Métrich
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: