Bug 656840
| Summary: | /usr/sbin/rhn-channel TypeError: cannot marshal None unless allow_none is enabled | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Lubos Kocman <lkocman> |
| Component: | rhn-client-tools | Assignee: | Milan Zázrivec <mzazrivec> |
| Status: | CLOSED DUPLICATE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.1 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-11-24 10:48:37 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 651857 *** |
Description of problem: Traceback (most recent call last): File "/usr/sbin/rhn-channel", line 98, in <module> main() File "/usr/sbin/rhn-channel", line 92, in main s = rhnserver.RhnServer() NameError: global name 'rhnserver' is not defined ! After appending rhnserver to line #41 another exception appears ( TypeError: cannot marshal None unless allow_none is enabled Version-Release number of selected component (if applicable): rhn-setup-1.0.0-38.el6.noarch How reproducible: Steps to Reproduce: 1. rhn-channel 2. fill up username and password Actual results: Username: lkocman Password: Traceback (most recent call last): File "/usr/sbin/rhn-channel", line 98, in <module> main() File "/usr/sbin/rhn-channel", line 92, in main s = rhnserver.RhnServer() NameError: global name 'rhnserver' is not defined [root@dhcp-28-248 Desktop]# vi /usr/sbin/rhn-channel [root@dhcp-28-248 Desktop]# /usr/sbin/rhn-channel Traceback (most recent call last): File "/usr/sbin/rhn-channel", line 41, in <module> from up2date_client.rhnChannel import subscribeChannels, unsubscribeChannels, getChannels, rhenserver ImportError: cannot import name rhenserver [root@dhcp-28-248 Desktop]# vi /usr/sbin/rhn-channel [root@dhcp-28-248 Desktop]# /usr/sbin/rhn-channel Username: lkocman Password: Traceback (most recent call last): File "/usr/sbin/rhn-channel", line 98, in <module> main() File "/usr/sbin/rhn-channel", line 93, in main print s.up2date.listall(up2dateAuth.getSystemId()) 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 204, in doCall ret = method(*args, **kwargs) File "/usr/lib64/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/lib64/python2.6/xmlrpclib.py", line 1132, in dumps data = m.dumps(params) File "/usr/lib64/python2.6/xmlrpclib.py", line 677, in dumps dump(v, write) File "/usr/lib64/python2.6/xmlrpclib.py", line 699, in __dump f(self, value, write) File "/usr/lib64/python2.6/xmlrpclib.py", line 703, in dump_nil raise TypeError, "cannot marshal None unless allow_none is enabled" TypeError: cannot marshal None unless allow_none is enabled Expected results: rhnserver should be imported, TypeError should not occur