Ok i have found the problem i guess but i'm not sure what the right way would be to fix this.

the problem is in the debUtils.py file:

def installTime(pkg_name):
    path = '/var/lib/dpkg/info/%s.list' % pkg_name
    if os.path.isfile(path):
       return os.path.getmtime(path)
    else:
#       print pkg_name printing wrong package names
       return None

I have a few packages which don't have the file with that name in the /var/lib/dpkg/info directory.
e.g.
e2fslibs is installed:
ii e2fslibs 1.42-1ubuntu2 ext2/ext3/ext4 file system libraries

which has the corresponding list file
ls /var/lib/dpkg/info/e2fslibs\:amd64.*
e2fslibs:amd64.list e2fslibs:amd64.md5sums e2fslibs:amd64.postinst e2fslibs:amd64.postrm e2fslibs:amd64.shlibs e2fslibs:amd64.symbols

so should the function be updated to look for e2fslibs:amd64 or i386 or is the package name just false and should this be updated (file bug report to ubuntu about the name)? thats about 422 packages on my current desktop. But this is about the installtime so we could also return just 0 or epoch?

Regards,

Willem


On 06/29/2012 11:26 PM, william wrote:
Hi,

After commenting out:
    def dump_nil (self, value, write):
        #if not self.allow_none:
# raise TypeError, "cannot marshal None unless allow_none is enabled"
        write("<value><nil/></value>")
    dispatch[NoneType] = dump_nil

in /usr/lib/python2.7/xmlrpclib.py it works.

So i'have no idea what it could be but maybe it helps :) narrowing the problem down.

Regards,
Willem

Hi,

i have installed the packages for debian sid on my ubuntu 12.04 install.
When trying to register the system to spacewalk 1.7 or 8 running on fedora 16 i get a type error:

[Fri Jun 29 14:05:41 2012] up2date Warning: haldaemon or messagebus service not running. Cannot probe hardware and DMI information.

[Fri Jun 29 14:05:42 2012] up2date
Traceback (most recent call last):
  File "/usr/sbin/rhnreg_ks", line 218, in <module>
    cli.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 96, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhnreg_ks", line 151, in main
    rhnreg.sendPackages(systemId, packageList)
File "/usr/share/rhn/up2date_client/rhnreg.py", line 489, in sendPackages
    s.registration.add_packages(systemId, packageList)
File "/usr/share/rhn/up2date_client/rhnserver.py", line 63, in __call__
    return rpcServer.doCall(method, *args, **kwargs)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 196, in doCall
    ret = method(*args, **kwargs)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 37, in _request1
    ret = self._request(methodname, params)
File "/usr/lib/python2.7/dist-packages/rhn/rpclib.py", line 377, in _request
    request = self._req_body(self._strip_characters(params), methodname)
File "/usr/lib/python2.7/dist-packages/rhn/rpclib.py", line 232, in _req_body
    return xmlrpclib.dumps(params, methodname, encoding=self._encoding)
  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 714, in dump_array
    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"
<type 'exceptions.TypeError'>: cannot marshal None unless allow_none is enabled



The system is still registered but i have no package information
When adding the system with the option --nopackages it does not give me the error and the system also registers.

These are the packages i installed:
ii python-rhn 2.5.52-1 Python libraries for the RHN project ii rhn-client-tools 1.8.9-1 Red Hat Network Client Tools
ii  rhnsd 4.9.15-1                                Red Hat Update Agent

Regards,

Willem

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel




_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel




_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to