Traditional client migrated to salt-minion fails with "File-usr-lib-python2-7-site-packages-up2date-client-up2dateAuth-py"
This document (000021346) is provided subject to the disclaimer at the end of this document.
Environment
Oracle Linux 7.9
Situation
All goes well until "yum update" is executed:
OL7# yum update Traceback (most recent call last): File "/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 375, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 170, in main base.getOptionsConfig(args) File "/usr/share/yum-cli/cli.py", line 263, in getOptionsConfig self.conf File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1079, in <lambda> conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 420, in _getConfig self.plugins.run('init') File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/share/yum-plugins/ulninfo.py", line 23, in init_hook login_info = up2dateAuth.getLoginInfo(timeout=timeout) File "/usr/lib/python2.7/site-packages/up2date_client/up2dateAuth.py", line 248, in getLoginInfo login(timeout=timeout) File "/usr/lib/python2.7/site-packages/up2date_client/up2dateAuth.py", line 208, in login systemId = getSystemId() File "/usr/lib/python2.7/site-packages/up2date_client/up2dateAuth.py", line 41, in getSystemId log.log_me("ERROR - Unable to read XML in %s - %s" % (path, sys.exc_info()[1])) NameError: global name 'sys' is not defined
Resolution
# rpm -e spacewalk-client-setup spacewalk-check python2-spacewalk-check python2-spacewalk-client-setup yum-rhn-plugin mgr-daemon yum-plugin-ulninfo python2-spacewalk-client-tools spacewalk-client-tools
Then proceed to update the server which should now succeed:
# yum update
Cause
Additional Information
https://www.suse.com/de-de/support/kb/doc/?id=000018170
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000021346
- Creation Date: 05-Feb-2024
- Modified Date:06-Feb-2024
-
- SUSE Manager Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com