[prev in list] [next in list] [prev in thread] [next in thread] 

List:       spacewalk-list
Subject:    Re: [Spacewalk-list] AttributeError: 'list' object has no attribute 'encode'
From:       Bruce McAlister <bruce.mcalister () blueface ! com>
Date:       2017-01-24 9:47:01
Message-ID: ddfc8ac8-73e3-9c71-5b1a-6dd0d919cc85 () blueface ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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'
> ----
>


[Attachment #5 (text/html)]

<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 &lt;module&gt; <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  &lt;lambda&gt; <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 &lt;module&gt; <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  &lt;lambda&gt; <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>



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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic