Bug 160446 - up2date Python traceback when scheduled package removal
up2date Python traceback when scheduled package removal
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: up2date (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Adrian Likins
Fanny Augustin
Depends On:
  Show dependency treegraph
Reported: 2005-06-15 04:24 EDT by Martin Wyser
Modified: 2010-10-21 23:05 EDT (History)
3 users (show)

See Also:
Fixed In Version: 4.4.50
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-10-04 13:40:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Martin Wyser 2005-06-15 04:24:10 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114

Description of problem:
In the RHN, I schedule a package removal, which later fails with this:
Package Removal scheduled by dinfk-iks
Details:     This action will be executed after 2005-06-14 09:59:00 CEST.

This action's status is: Failed.
The client picked up this action on 2005-06-14 10:00:35 CEST.
The client completed this action on 2005-06-14 10:00:36 CEST.
Client execution returned "Fatal error in Python code occured [[6]]"
(code -1)
Packages to be removed:

    * mikmod-3.1.6-30.1
I schedule it again, and run rhn_check -v on the machine to see more, instead of waiting for rhnsd.  Now I get:
[root@ikq1 ~]# rhn_check -v
packages.remove ([['mikmod', '3.1.6', '30.1', '']],)
Traceback (most recent call last):
  File "/usr/sbin/rhn_check", line 174, in run_action
    (status, message, data) = do_call(method, params)
  File "/usr/sbin/rhn_check", line 91, in do_call
    retval = apply(method, params)
  File "/usr/share/rhn/actions/packages.py", line 83, in remove
    up2date.removePackages(pkgList, rpmCallback)
  File "/usr/share/rhn/up2date_client/up2date.py", line 1009, in
TypeError: runTransaction() takes at least 4 arguments (2 given)

In fact, at line 1009 of /usr/share/rhn/up2date_client/up2date.py, there is a bad call to rpmTransaction which is defined in the same file at line 602.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Schedule a package removal on the RHN server for a system
2. run rhn_check -v on the system
3. or wait until rhnsd checks in

Actual Results:  Traceback, package not removed, action fails in RHN

Expected Results:  package removed

Additional info:
Comment 2 Niels Happel 2005-08-22 10:34:27 EDT
This works for me to get it running:

<     runTransaction(ts, [], [], rpmCallback)
>     runTransaction(ts,rpmCallback)

Comment 3 Adrian Likins 2005-10-04 13:40:59 EDT
This is fixed in current up2date releases (rhel3u6/rhel4u2).
Comment 4 Debbie McGrath 2005-10-04 13:45:49 EDT
Removing from RHEL 4 U3 lists.

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