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

SUSE Manager 4.3
Oracle Linux 7.9

Situation

Bootstrap the Oracle Linux 7 server to the SUMA server with the traditional method first, then migrate the system to use salt (salt-minion).

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

Remove the traditional stack from the Oracle Linux Server:

# 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

Mixed salt and traditional stack packages installed on the client.

Additional Information

Un-Register traditional minions with SLES OS:

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: 06-Feb-2024
  • Modified Date:06-Feb-2024
    • SUSE Manager Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center