Server cannot register to Red Hat satellite with "TypeError, "cannot marshal None unless allow_none is enabled"
Issue
- Edit the file /etc/sysconfig/rhn/up2date to point the Test server to the Red Hat Satellite
- Download the SSL certificate to from Red Hat Satellite to STRM09/test server
- Server cannot register to Red Hat satellite with following error:
[Thu Jan 22 12:08:53 2015] up2date
Traceback (most recent call last):
File "/usr/sbin/rhnreg_ks", line 219, in <module>
cli.run()
File "/usr/share/rhn/up2date_client/rhncli.py", line 74, in run
sys.exit(self.main() or 0)
File "/usr/sbin/rhnreg_ks", line 136, in main
other = other)
File "/usr/share/rhn/up2date_client/rhnreg.py", line 371, in registerSystem
ret = s.registration.new_system(auth_dict)
File "/usr/share/rhn/up2date_client/rhnserver.py", line 50, in __call__
return rpcServer.doCall(method, *args, **kwargs)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 206, in doCall
ret = method(*args, **kwargs)
File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 39, in _request1
ret = self._request(methodname, params)
File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 379, in _request
request = self._req_body(self._strip_characters(params), methodname)
File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 234, in _req_body
return xmlrpclib.dumps(params, methodname, encoding=self._encoding)
File "/usr/lib/python2.6/xmlrpclib.py", line 1132, in dumps
data = m.dumps(params)
File "/usr/lib/python2.6/xmlrpclib.py", line 677, in dumps
dump(v, write)
File "/usr/lib/python2.6/xmlrpclib.py", line 699, in __dump
f(self, value, write)
File "/usr/lib/python2.6/xmlrpclib.py", line 780, in dump_struct
dump(v, write)
File "/usr/lib/python2.6/xmlrpclib.py", line 699, in __dump
f(self, value, write)
File "/usr/lib/python2.6/xmlrpclib.py", line 703, in dump_nil
raise TypeError, "cannot marshal None unless allow_none is enabled"
<type 'exceptions.TypeError'>: cannot marshal None unless allow_none is enabled
Environment
Red Hat Satellite 5.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.