RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 656840 - /usr/sbin/rhn-channel TypeError: cannot marshal None unless allow_none is enabled
Summary: /usr/sbin/rhn-channel TypeError: cannot marshal None unless allow_none is ena...
Keywords:
Status: CLOSED DUPLICATE of bug 651857
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rhn-client-tools
Version: 6.1
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-24 09:40 UTC by Lubos Kocman
Modified: 2010-11-24 10:48 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-24 10:48:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lubos Kocman 2010-11-24 09:40:31 UTC
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

Comment 1 Milan Zázrivec 2010-11-24 10:48:37 UTC

*** This bug has been marked as a duplicate of bug 651857 ***


Note You need to log in before you can comment on or make changes to this bug.