Justin Sherrill wrote:
To disable the rhn plugin you can simply edit

/etc/yum/pluginconf.d/rhnplugin.conf

and change
enabled = 1
to
enabled = 0

This seems to work.

Jon Stanley wrote:
In order to make the system think that it's no longer registered to
RHN you can delete /etc/sysconfig/rhn/systemid

This is what I was having a problem with originally.  When I delete the 
systemid file, I get the following error when I try to run yum:

Loading "rhnplugin" plugin
Loading "fastestmirror" plugin
Traceback (most recent call last):
 File "/usr/bin/yum", line 29, in ?
   yummain.main(sys.argv[1:])
 File "/usr/share/yum-cli/yummain.py", line 85, in main
   base.getOptionsConfig(args)
 File "/usr/share/yum-cli/cli.py", line 163, in getOptionsConfig
   disabled_plugins=self.optparser._splitArg(opts.disableplugins))
 File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 183, in 
_getConfig
   self.plugins.run('init')
 File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 169, in run
   func(conduitcls(self, self.base, conf, **kwargs))
 File "rhnplugin.py", line 126, in init_hook
 File "rhnChannel.py", line 86, in getChannelDetails
 File "rhnChannel.py", line 108, in getChannels
 File "rhnserver.py", line 50, in __call__
 File "rpcServer.py", line 194, in doCall
 File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
   return self.__send(self.__name, args)
 File "rpcServer.py", line 38, in _request1
 File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 315, in _request
   request = self._req_body(params, methodname)
 File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 222, in _req_body
   return xmlrpclib.dumps(params, methodname, encoding=self._encoding)
 File "/usr/lib64/python2.4/xmlrpclib.py", line 1029, in dumps
   data = m.dumps(params)
 File "/usr/lib64/python2.4/xmlrpclib.py", line 603, in dumps
   dump(v, write)
 File "/usr/lib64/python2.4/xmlrpclib.py", line 615, in __dump
   f(self, value, write)
 File "/usr/lib64/python2.4/xmlrpclib.py", line 619, in dump_nil
   raise TypeError, "cannot marshal None unless allow_none is enabled"
TypeError: cannot marshal None unless allow_none is enabled

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to