Why does LEAPP fails with "CalledProcessError: Command ['rpm', '-q', '--provides', u'kernel-3.10.0-1160.119.1.el7 (x86_64)'] failed with exit code 1."?

Solution Verified - Updated -

Issue

  • Leapp fails with following tracback

    Risk Factor: high (error)
    Title: Actor scan_source_kernel 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/scansourcekernel/actor.py", l…ystem_upgrade/common/actors/scansourcekernel/libraries/scan_source_kernel.py", line 16, in scan_source_kernel_lib.scan_source_kernel()
      File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/scansourcekernel/libraries/scan_source_kernel.py", line 16, in scan_source_kernel
        kernel_pkg_info = kernel_lib.get_kernel_pkg_info_for_uname_r(uname_r)
      File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/kernel.py", line 109, in get_kernel_pkg_info_for_uname_r
        provided_uname = get_uname_r_provided_by_kernel_pkg(kernel_pkg_nevra)  # We know all packages provide a uname
      File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/kernel.py", line 63, in get_uname_r_provided_by_kernel_pkg
        callback_linebuffered=lambda fd, value: None)['stdout']
      File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.py", line 192, in run
        result=result
    CalledProcessError: Command ['rpm', '-q', '--provides', u'kernel-3.10.0-1160.119.1.el7 (x86_64)'] failed with exit code 1.
    
    Key: e93d3c3f36ea3bab9072418b89ba17af66189031
    Title: Excluded target system repositories
    Summary: The following repositories are not supported by Red Hat and are excluded from the list of repositories used during the upgrade.
    - codeready-builder-beta-for-rhel-8-s390x-rpms
    - codeready-builder-beta-for-rhel-8-ppc64le-rpms
    - rhui-codeready-builder-for-rhel-8-x86_64-rhui-rpms
    - codeready-builder-for-rhel-8-aarch64-eus-rpms
    - codeready-builder-for-rhel-8-ppc64le-eus-rpms
    - codeready-builder-beta-for-rhel-8-x86_64-rpms
    - codeready-builder-for-rhel-8-aarch64-rpms
    - codeready-builder-for-rhel-8-s390x-rpms
    - codeready-builder-for-rhel-8-s390x-eus-rpms
    - codeready-builder-for-rhel-8-x86_64-eus-rpms
    - rhui-codeready-builder-for-rhel-8-aarch64-rhui-rpms
    - codeready-builder-beta-for-rhel-8-aarch64-rpms
    - codeready-builder-for-rhel-8-rhui-rpms
    - codeready-builder-for-rhel-8-x86_64-rhui-rpms
    - codeready-builder-for-rhel-8-x86_64-rpms
    - codeready-builder-for-rhel-8-x86_64-eus-rhui-rpms
    - codeready-builder-for-rhel-8-ppc64le-rpms
    Remediation: [hint] If some of excluded repositories are still required to be used during the upgrade, execute leapp with the --enablerepo option with the repoid of the repository required to be enabled as an argument (the option can be used multiple times).
    Key: 1b9132cb2362ae7830e48eee7811be9527747de8
    

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • LEAPP

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content