Bug 673441

Summary: xmlrpclib.py:658:dump_nil:TypeError: cannot marshal None unless allow_none is enabled
Product: Red Hat Enterprise Linux 6 Reporter: Lubos Kocman <lkocman>
Component: yum-rhn-pluginAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 6.2CC: jskarvad, loedur, wwoods
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: abrt_hash:a6a205ee
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 659331 Environment:
Last Closed: 2011-01-31 09:10:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 659331    
Bug Blocks:    

Description Lubos Kocman 2011-01-28 08:45:23 UTC
+++ This bug was initially created as a clone of Bug #659331 +++

Hello I'm getting the same issue with yum:

rpm -qf /usr/lib64/python2.6/xmlrpclib.py
python-2.6.6-6.el6.x86_64
yum-3.2.29-3.el6.noarch

bash-4.1$ sudo yum -y remove google-chrome
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
INFO:rhsm-app.repolib:repos updated: 0
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:8.0.552.237-70801 will be erased
--> Finished Dependency Resolution
epel/metalink                                            | 7.8 kB     00:00     
epel                                                     | 4.3 kB     00:00     
epel/primary_db                                          | 3.4 MB     00:04     
google-chrome                                            |  951 B     00:00     
google-chrome/primary                                    | 1.5 kB     00:00     
nightly                                                  | 3.7 kB     00:00     
nightly/primary_db                                       | 3.1 MB     00:08     
nightly-debuginfo                                        | 3.0 kB     00:00     
nightly-debuginfo/primary_db                             | 491 kB     00:02     
nightly-optional                                         | 3.8 kB     00:00     
nightly-optional/primary_db                              | 1.2 MB     00:07     
nightly-optional-debuginfo                               | 3.0 kB     00:00     
nightly-optional-debuginfo/primary_db                    | 572 kB     00:03     

Dependencies Resolved

================================================================================
 Package                  Arch       Version                Repository     Size
================================================================================
Removing:
 google-chrome-stable     x86_64     8.0.552.237-70801      installed      85 M

Transaction Summary
================================================================================
Remove        1 Package(s)

Installed size: 85 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : google-chrome-stable-8.0.552.237-70801.x86_64                1/1 
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 267, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 203, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 580, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1495, in runTransaction
    self.plugins.run('posttrans')
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 184, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/share/yum-plugins/rhnplugin.py", line 190, in posttrans_hook
    rhnPackageInfo.updatePackageProfile()
  File "/usr/share/rhn/up2date_client/rhnPackageInfo.py", line 28, in updatePackageProfile
    s.registration.update_packages(up2dateAuth.getSystemId(), packages)
  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


#----------------------------------------------------------------


abrt version: 1.1.14
architecture: i686
cmdline: /usr/bin/python /usr/bin/bugzilla info -c synaptic
component: python-bugzilla
executable: /usr/bin/bugzilla
kernel: 2.6.35.6-48.fc14.i686
package: python-bugzilla-0.6.1-3.fc14
reason: xmlrpclib.py:658:dump_nil:TypeError: cannot marshal None unless allow_none is enabled
release: Fedora release 14 (Laughlin)
time: 1291301856
uid: 500

backtrace
-----
xmlrpclib.py:658:dump_nil:TypeError: cannot marshal None unless allow_none is enabled

Traceback (most recent call last):
  File "/usr/bin/bugzilla", line 682, in <module>
    main()
  File "/usr/bin/bugzilla", line 360, in main
    for c in sorted(bz.getcomponents(opt.components)):
  File "/usr/lib/python2.7/site-packages/bugzilla/base.py", line 427, in getcomponents
    self._components[product] = self._getcomponents(product)
  File "/usr/lib/python2.7/site-packages/bugzilla/bugzilla3.py", line 58, in _getcomponents
    r = self._proxy.Bug.legal_values({'product_id':product,'field':'component'})
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1564, in __request
    allow_none=self.__allow_none)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1085, in dumps
    data = m.dumps(params)
  File "/usr/lib/python2.7/xmlrpclib.py", line 632, in dumps
    dump(v, write)
  File "/usr/lib/python2.7/xmlrpclib.py", line 654, in __dump
    f(self, value, write)
  File "/usr/lib/python2.7/xmlrpclib.py", line 735, in dump_struct
    dump(v, write)
  File "/usr/lib/python2.7/xmlrpclib.py", line 654, in __dump
    f(self, value, write)
  File "/usr/lib/python2.7/xmlrpclib.py", line 658, in dump_nil
    raise TypeError, "cannot marshal None unless allow_none is enabled"
TypeError: cannot marshal None unless allow_none is enabled

Local variables in innermost frame:
write: <built-in method append of list object at 0x8bddb4c>
self: <xmlrpclib.Marshaller instance at 0x8bdd0cc>
value: None

How to reproduce
-----
1. Open a gnome-terminal
2. Type in the following and press [Enter]
bugzilla info -c synaptic

3. The "Automatic Bug Reporting Tool" was started

--- Additional comment from loedur on 2010-12-02 10:00:06 EST ---

Created attachment 464266 [details]
File: backtrace

--- Additional comment from loedur on 2010-12-17 15:32:01 EST ---

Package: python-bugzilla-0.6.1-3.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. Open a gnome-terminal
2. Type in the following and press [Enter]
bugzilla info -c synaptic
3. The "Automatic Bug Reporting Tool" is started

Comment 2 Milan Zázrivec 2011-01-31 09:10:16 UTC

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