Red Hat Bugzilla – Bug 440047
The yum-updatesd package included with yum in RHEL5 causes python stack trace when GetUpdateInfo is called and no updates are available.
Last modified: 2008-12-03 01:26:54 EST
Description of problem:
We are using a nagios plugin to monitor yum updates that apply to all of our
RHEL5 servers, among many other things that it monitors. This plugin is written
in perl and uses the Net::DBus module from CPAN to get the update data from
dbus. This works perfectly if there are updates, but when there are no updates
available, the empty list returned from yum-updatesd causes the script to
terminate with a python stack trace from dbus, instead of returning an empty
list to the script.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install Net::DBus from CPAN:
2. Run this example perl script to see the problem:
perl -MNet::DBus -e '$db=Net::DBus->system;
3. The last method called, GetUpdateInfo produces the following stack trace,
only when there are no updates that apply. If there are updates then a list is
returned with the correct package update data, like it is supposed to do:
org.freedesktop.DBus.Python.exceptions.IndexError: Traceback (most recent call
File "/usr/lib64/python2.4/site-packages/dbus/service.py", line 341, in
_method_reply_return(connection, message, method_name, signature, *retval)
File "/usr/lib64/python2.4/site-packages/dbus/service.py", line 162, in
File "dbus_bindings.pyx", line 1081, in dbus_bindings.MessageIter.append
File "dbus_bindings.pyx", line 1305, in dbus_bindings.MessageIter.append_array
IndexError: list index out of range
I tried various things and by updating the the version of the yum-updatesd
package to a more recent version (I chose the one that comes with Fedora 8 just
for testing, yum-updatesd-0.9-1) the problem went away. Can the version of
yum-updatesd that ships with RHEL5 be updated to correct this problem? It would
also be nice if you could include the perl-Net-DBus package in future versions
There is a "completely new" yum-updatesd currently as a 5.2 errata, based on
the Fedora-8 version ... so I assume this will go away in RHEL-5.2
Thanks for the quick response, I will update this ticket after 5.2 is released
and I test it out. Any idea when it will be released? Soon or is it still
going through QA and its release is unknown?
For release information like that you should contact your RH representative ...
you should also be able to get early access to the Beta code.
Works fine on 5.2 for me.
Works for me also now, looks like it was fixed in the update to RHEL 5.2