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

Leapp fails while running "su - -c update-ca-trust" exit code 127

    • leapp-repository-0.20.0-12.el7_9
    • None
    • Important
    • 1
    • rhel-sst-upgrades
    • 20
    • 2
    • False
    • Hide

      None

      Show
      None
    • None
    • Leapp: 9.5 & 10.0 public beta
    • All
    • None

      What were you trying to do that didn't work?

      While in-place upgrading from 7.9 to 8.10, the customer has got a traceback with
      CalledProcessError: Command ['chroot', '/var/lib/leapp/el8userspace', '/bin/bash', '-c', 'su - -c update-ca-trust'] failed with exit code 127.
      Only 133 packages have been installed in the target userspace container and it lacks 'util-linux' which provides the 'su' command, among other packages.

      Notes:

      • a local RHEL 8 repository is used
      • downgrading to the previous leapp version works for them, the IPU is successful.

        Please provide the package NVR for which bug is seen:

      leapp-upgrade-el7toel8-0.20.0-2.el7_9.noarch

      How reproducible:

      Always for the customer, unable to reproduce internally.

      Actual results

      Risk Factor: high (error)
      Title: Actor target_userspace_creator unexpectedly terminated with exit code: 1
      Summary: Traceback (most recent call last):
        File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 74, in _do_run
          actor_instance.run(*args, **kwargs)
        File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 289, in run
          self.process(*args)
        File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/targetuserspacecreator/actor.py", line 58, in process
          userspacegen.perform()
        File "/usr/lib/python2.7/site-packages/leapp/utils/deprecation.py", line 42, in process_wrapper
          return target_item(*args, **kwargs)
        File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 1246, in perform
          _create_target_userspace(context, indata, indata.packages, indata.files, target_repoids)
        File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 1108, in _create_target_userspace
          _prep_repository_access(context, target_path)
        File "/usr/share/leapp-repository/repositories/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/python2.7/site-packages/leapp/libraries/stdlib/__init__.py", line 192, in run
          result=result
      CalledProcessError: Command ['chroot', '/var/lib/leapp/el8userspace', '/bin/bash', '-c', 'su - -c update-ca-trust'] failed with exit code 127. 

              leapp-notifications leapp-notifications
              rhn-support-cbesson Christophe Besson
              leapp-notifications leapp-notifications
              Michal Macura Michal Macura
              Miriam Portman Miriam Portman
              Votes:
              0 Vote for this issue
              Watchers:
              20 Start watching this issue

                Created:
                Updated:
                Resolved: