<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Just an update, I locked versions as follows for all my CentOS 7 x64
    systems and they are able to work away properly now.<br>
    <br>
    ---<br>
    # yum versionlock list<br>
    Loaded plugins: fastestmirror, remove-with-leaves, rhnplugin,
    versionlock<br>
    This system is receiving updates from RHN Classic or Red Hat
    Satellite.<br>
    0:rhncfg-5.10.100-1.el7.*<br>
    0:rhn-setup-2.7.2-1.el7.*<br>
    0:spacewalk-abrt-2.6.2-1.el7.*<br>
    0:rhncfg-management-5.10.100-1.el7.*<br>
    0:rhn-client-tools-2.7.2-1.el7.*<br>
    0:rhncfg-client-5.10.100-1.el7.*<br>
    0:rhnsd-5.0.26-1.el7.*<br>
    0:yum-rhn-plugin-2.6.3-1.el7.*<br>
    0:spacewalk-backend-usix-2.7.19-1.el7.*<br>
    0:rhnlib-2.7.1-1.el7.*<br>
    0:rhncfg-actions-5.10.100-1.el7.*<br>
    0:osad-5.11.76-1.el7.*<br>
    0:rhn-check-2.7.2-1.el7.*<br>
    0:osa-common-5.11.76-1.el7.*<br>
    versionlock list done<br>
    ---<br>
    <br>
    Thanks<br>
    <br>
    <div class="moz-cite-prefix">On 23/01/2017 19:07, Bruce McAlister
      wrote:<br>
    </div>
    <blockquote
      cite="mid:c02bcf67-313f-2886-08a9-02c9b76eec6d@blueface.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      Hi All, <br>
      <br>
      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. <br>
      <br>
      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. <br>
      <br>
      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. <br>
      <br>
      --- <br>
      # yum list installed <br>
      Loaded plugins: fastestmirror, rhnplugin <br>
      Traceback (most recent call last): <br>
        File "/bin/yum", line 29, in <module> <br>
          yummain.user_main(sys.argv[1:], exit_code=True) <br>
        File "/usr/share/yum-cli/yummain.py", line 370, in user_main <br>
          errcode = main(args) <br>
        File "/usr/share/yum-cli/yummain.py", line 165, in main <br>
          base.getOptionsConfig(args) <br>
        File "/usr/share/yum-cli/cli.py", line 261, in getOptionsConfig
      <br>
          self.conf <br>
        File "<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>usr/lib/python2.7/site-packages/yum<span
          class="moz-txt-tag">/</span></i>__init__.py", line 1078, in
      <lambda> <br>
          conf = property(fget=lambda self: self._getConfig(), <br>
        File "<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>usr/lib/python2.7/site-packages/yum<span
          class="moz-txt-tag">/</span></i>__init__.py", line 420, in
      _getConfig <br>
          self.plugins.run('init') <br>
        File "/usr/lib/python2.7/site-packages/yum/plugins.py", line
      188, in run <br>
          func(conduitcls(self, self.base, conf, **kwargs)) <br>
        File "/usr/share/yum-plugins/rhnplugin.py", line 121, in
      init_hook <br>
          login_info = up2dateAuth.getLoginInfo(timeout=timeout) <br>
        File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 229,
      in getLoginInfo <br>
          login(timeout=timeout) <br>
        File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 193,
      in login <br>
          maybeUpdateVersion() <br>
        File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 46, in
      maybeUpdateVersion <br>
          systemVer = up2dateUtils.getVersion() <br>
        File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 67,
      in getVersion <br>
          os_release, version, release = _getOSVersionAndRelease() <br>
        File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 42,
      in _getOSVersionAndRelease <br>
          provides = dict(zip(sstr(h['providename']),
      sstr(h['provideversion']))) <br>
        File "/usr/lib/python2.7/site-packages/rhn/i18n.py", line 60, in
      sstr <br>
          return str(obj.encode('utf8', 'ignore')) <br>
      AttributeError: 'list' object has no attribute 'encode' <br>
      --- <br>
      <br>
      ---- <br>
      # package-cleanup --dupes <br>
      Loaded plugins: fastestmirror, rhnplugin <br>
      Traceback (most recent call last): <br>
        File "/bin/package-cleanup", line 400, in <module> <br>
          util = PackageCleanup() <br>
        File "/bin/package-cleanup", line 60, in __init__ <br>
          self.main() <br>
        File "/bin/package-cleanup", line 290, in main <br>
          opts = self.doUtilConfigSetup() <br>
        File "/usr/share/yum-cli/utils.py", line 322, in
      doUtilConfigSetup <br>
          self.conf <br>
        File "<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>usr/lib/python2.7/site-packages/yum<span
          class="moz-txt-tag">/</span></i>__init__.py", line 1078, in
      <lambda> <br>
          conf = property(fget=lambda self: self._getConfig(), <br>
        File "<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>usr/lib/python2.7/site-packages/yum<span
          class="moz-txt-tag">/</span></i>__init__.py", line 420, in
      _getConfig <br>
          self.plugins.run('init') <br>
        File "/usr/lib/python2.7/site-packages/yum/plugins.py", line
      188, in run <br>
          func(conduitcls(self, self.base, conf, **kwargs)) <br>
        File "/usr/share/yum-plugins/rhnplugin.py", line 121, in
      init_hook <br>
          login_info = up2dateAuth.getLoginInfo(timeout=timeout) <br>
        File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 229,
      in getLoginInfo <br>
          login(timeout=timeout) <br>
        File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 193,
      in login <br>
          maybeUpdateVersion() <br>
        File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 46, in
      maybeUpdateVersion <br>
          systemVer = up2dateUtils.getVersion() <br>
        File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 67,
      in getVersion <br>
          os_release, version, release = _getOSVersionAndRelease() <br>
        File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 42,
      in _getOSVersionAndRelease <br>
          provides = dict(zip(sstr(h['providename']),
      sstr(h['provideversion']))) <br>
        File "/usr/lib/python2.7/site-packages/rhn/i18n.py", line 60, in
      sstr <br>
          return str(obj.encode('utf8', 'ignore')) <br>
      AttributeError: 'list' object has no attribute 'encode' <br>
      ---- <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>