Help Desk / Field Tech here hoping to one day move up to admin one day was tossed my first task and running into some issues with it and hoping for some help or being thrown in the right direction.
We have some systems that have lost sync to red hat and are showing unregistered. When we try and re-run subscription manager we're getting the following error. Goal is to get these re-registered with limited to no downtime.
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 9, in <module>
load_entry_point('subscription-manager==1.21.10', '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 29, in <module>
if six.PY2:
AttributeError: 'module' object has no attribute 'PY2'
After some initial googling we tried updating subscription manager, python rhsm and python rhsm certificates. Packages werent accepted as we already had them or newer running.