[Spacewalk-list] Yum Errors and strange operations v2.4

Jan Dobes jdobes at redhat.com
Mon Nov 16 10:17:37 UTC 2015


On 16.11.2015 09:12 Graziano Della Loggia wrote:
> Hi,
> from few days I noticed a strange operating mode of Spacewalk server,
> for example I scheduled a patch for certain packages for different
> systems, it has scheduled correctly and success executed the task, but
> when I logged in the system the package was not updated. In Spacewalk it
> results correctly upgraded.
>
> So, in the client system when I launch "yum update" I receive the
> following error, but if i disable the rhnplugin, yum works fine. This
> situation was noticed in every system that has rhnplugin enabled (Centos
> 7_x64,6_x64, 5_x64, 5_i386).
> Generally the client systems has enabled by spacewalk only base,
> updates, extras and epel repositories.
>
> What is my problem? How I can resolve?
>
> Thanks in advance.
>
> # yum update
> Loaded plugins: fastestmirror, rhnplugin
> Traceback (most recent call last):
>    File "/usr/bin/yum", line 29, in <module>
>      yummain.user_main(sys.argv[1:], exit_code=True)
>    File "/usr/share/yum-cli/yummain.py", line 367, in user_main
>      errcode = main(args)
>    File "/usr/share/yum-cli/yummain.py", line 160, in main
>      base.getOptionsConfig(args)
>    File "/usr/share/yum-cli/cli.py", line 260, in getOptionsConfig
>      self.conf
>    File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1083,
> in <lambda>
>      conf = property(fget=lambda self: self._getConfig(),
>    File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 416, 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 227, in
> getLoginInfo
>      login(timeout=timeout)
>    File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 194, in login
>      li = server.up2date.login(systemId)
>    File "/usr/share/rhn/up2date_client/rhnserver.py", line 63, in __call__
>      return rpcServer.doCall(method, *args, **kwargs)
>    File "/usr/share/rhn/up2date_client/rpcServer.py", line 203, in doCall
>      ret = method(*args, **kwargs)
>    File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
>      return self.__send(self.__name, args)
>    File "/usr/share/rhn/up2date_client/rpcServer.py", line 37, in _request1
>      ret = self._request(methodname, params)
>    File "/usr/lib/python2.7/site-packages/rhn/rpclib.py", line 384, in
> _request
>      self._handler, request, verbose=self._verbose)
>    File "/usr/lib/python2.7/site-packages/rhn/transports.py", line 187,
> in request
>      return self._process_response(fd, connection)
>    File "/usr/lib/python2.7/site-packages/rhn/transports.py", line 215,
> in _process_response
>      return self.parse_response(fd)
>    File "/usr/lib/python2.7/site-packages/rhn/transports.py", line 235,
> in parse_response
>      p.feed(response)
>    File "/usr/lib64/python2.7/xmlrpclib.py", line 557, in feed
>      self._parser.Parse(data, 0)
> xml.parsers.expat.ExpatError: mismatched tag: line 164, column 2
>
> **
>
> *Graziano
> *
>
> //
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>

Hello,

from the traceback it looks like client is getting some unreadable XML 
from Spacewalk server.

Are other non-yum operations working on these clients? E.g. schedule 
remote command and pick up it with rhn_check.

Regards,
-- 
Jan Dobes
Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list