Leapp preupgrade command is failing with error "A subscription-manager command failed to execute"
Issue
- During the leapp upgrade (RHEL7 to RHEL 8) activity, leapp preupgrade command is failing with error "A subscription-manager command failed to execute."
=================================================================
ERRORS
============================================================
2023-11-13 01:04:26.424695 [ERROR] Actor: scan_subscription_manager_info
Message: A subscription-manager command failed to execute
Summary:
Details: Command ['subscription-manager', 'list', '--consumed'] failed with exit code 1.
Stderr: Traceback (most recent call last):
File "/sbin/subscription-manager", line 9, in <module>
load_entry_point('subscription-manager==1.24.52', 'console_scripts', 'subscription-manager')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 68, in <module>
inj.require(inj.DBUS_IFACE)
File "/usr/lib64/python2.7/site-packages/subscription_manager/injection.py", line 109, in require
return FEATURES.require(feature, *args, **kwargs)
File "/usr/lib64/python2.7/site-packages/subscription_manager/injection.py", line 80, in require
raise KeyError("Unknown feature: %r" % feature)
KeyError: "Unknown feature: 'DBUS_IFACE'"
Hint: Please ensure you have a valid RHEL subscription and your network is up. If you are using proxy for Red Hat subscription-manager, please make sure it is specified inside the /etc/rhsm/rhsm.conf file. Or use the --no-rhsm option when running leapp, if you do not want to use subscription-manager for the in-place upgrade and you want to deliver all target repositories by yourself or using RHUI on public cloud.
============================================================
END OF ERRORS
============================================================
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.