Just an update, I locked versions as follows for all my CentOS 7 x64 systems and they are able to work away properly now.

---
# yum versionlock list
Loaded plugins: fastestmirror, remove-with-leaves, rhnplugin, versionlock
This system is receiving updates from RHN Classic or Red Hat Satellite.
0:rhncfg-5.10.100-1.el7.*
0:rhn-setup-2.7.2-1.el7.*
0:spacewalk-abrt-2.6.2-1.el7.*
0:rhncfg-management-5.10.100-1.el7.*
0:rhn-client-tools-2.7.2-1.el7.*
0:rhncfg-client-5.10.100-1.el7.*
0:rhnsd-5.0.26-1.el7.*
0:yum-rhn-plugin-2.6.3-1.el7.*
0:spacewalk-backend-usix-2.7.19-1.el7.*
0:rhnlib-2.7.1-1.el7.*
0:rhncfg-actions-5.10.100-1.el7.*
0:osad-5.11.76-1.el7.*
0:rhn-check-2.7.2-1.el7.*
0:osa-common-5.11.76-1.el7.*
versionlock list done
---

Thanks

On 23/01/2017 19:07, Bruce McAlister wrote:
Hi All,

I just updated 3 of my test CentOS 7 x64 systems to the "latest" package levels and I am now unable to perform any yum operations when the rhnplugin is enabled. I just wanted to check with the list if anyone else is experiencing this issue.

I am subscribed to the CentOS 7 spacewalk nightly client chennel, I'm guessing something may be amiss there. I am running spacewalk server version 2.5.

After running a "yum update", any subsequent yum operation with the rhnplugin enabled is aborted with the error listed below. Let me know if you need any further information to debug this further. Any tips/suggestions would be greatly appreciated.

---
# yum list installed
Loaded plugins: fastestmirror, rhnplugin
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 370, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 165, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 261, in getOptionsConfig
    self.conf
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1078, 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/rhnplugin.py", line 121, in init_hook
    login_info = up2dateAuth.getLoginInfo(timeout=timeout)
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 229, in getLoginInfo
    login(timeout=timeout)
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 193, in login
    maybeUpdateVersion()
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 46, in maybeUpdateVersion
    systemVer = up2dateUtils.getVersion()
File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 67, in getVersion
    os_release, version, release = _getOSVersionAndRelease()
File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 42, in _getOSVersionAndRelease provides = dict(zip(sstr(h['providename']), sstr(h['provideversion'])))
  File "/usr/lib/python2.7/site-packages/rhn/i18n.py", line 60, in sstr
    return str(obj.encode('utf8', 'ignore'))
AttributeError: 'list' object has no attribute 'encode'
---

----
# package-cleanup --dupes
Loaded plugins: fastestmirror, rhnplugin
Traceback (most recent call last):
  File "/bin/package-cleanup", line 400, in <module>
    util = PackageCleanup()
  File "/bin/package-cleanup", line 60, in __init__
    self.main()
  File "/bin/package-cleanup", line 290, in main
    opts = self.doUtilConfigSetup()
  File "/usr/share/yum-cli/utils.py", line 322, in doUtilConfigSetup
    self.conf
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1078, 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/rhnplugin.py", line 121, in init_hook
    login_info = up2dateAuth.getLoginInfo(timeout=timeout)
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 229, in getLoginInfo
    login(timeout=timeout)
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 193, in login
    maybeUpdateVersion()
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 46, in maybeUpdateVersion
    systemVer = up2dateUtils.getVersion()
File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 67, in getVersion
    os_release, version, release = _getOSVersionAndRelease()
File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 42, in _getOSVersionAndRelease provides = dict(zip(sstr(h['providename']), sstr(h['provideversion'])))
  File "/usr/lib/python2.7/site-packages/rhn/i18n.py", line 60, in sstr
    return str(obj.encode('utf8', 'ignore'))
AttributeError: 'list' object has no attribute 'encode'
----


_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to