Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 155569 - rhn_check produces error when attempting to execute rpm removal
Summary: rhn_check produces error when attempting to execute rpm removal
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: up2date
Version: 4.0
Hardware: i386
OS: Linux
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Beth Nackashi
: 153189 (view as bug list)
Depends On:
Blocks: 156322
TreeView+ depends on / blocked
Reported: 2005-04-21 14:32 UTC by Justin Nemmers
Modified: 2014-03-31 01:38 UTC (History)
5 users (show)

Fixed In Version: RHBA-2005-711
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-10-05 17:14:29 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2005:711 qe-ready SHIPPED_LIVE up2date bug fix update 2005-10-05 04:00:00 UTC

Description Justin Nemmers 2005-04-21 14:32:07 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312

Description of problem:
Some package removals scheduled by RHN (hosted or satellite) will fail when the system checks in.  

The client OS is RHEL 4 x86, latest up2date.  This is an easily reproducible issue.
There are some packages that will not cause the error upon execution of scheduled removal, but it is 
consistently repeatable with the package zsh.

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

How reproducible:

Steps to Reproduce:
1. Schedule package removal of zsh from a client system using RHN (hosted or satellite)
2. rhn_check -v from client machine

Actual Results:  [root@salsa ~]# rhn_check
packages.remove ([['zsh', '4.2.0', '3', '']],)
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/", line 83, in remove
    up2date.removePackages(pkgList, rpmCallback)
  File "/usr/share/rhn/up2date_client/", line 1009, in removePackages
TypeError: runTransaction() takes at least 4 arguments (2 given)
packages.remove ([['zsh', '4.2.0', '3', '']],)

Expected Results:  rhn_check would have completed the removal of the zsh rpm.

Additional info:

This error was reproducable on several different RHEL 4 clients, as well as with events scheduled from 
RHN hosted as well as a 3.7 satellite.

Comment 1 Jason Connor 2005-04-22 15:28:32 UTC
*** Bug 155722 has been marked as a duplicate of this bug. ***

Comment 3 Adrian Likins 2005-05-13 18:08:26 UTC
*** Bug 153189 has been marked as a duplicate of this bug. ***

Comment 4 Adrian Likins 2005-05-13 18:22:21 UTC
fixed in 4.4.19

Comment 10 Beth Nackashi 2005-08-08 13:51:06 UTC
verified on i686 box running RHEL 4 U1 AS and up2date-4.4.36-4

Comment 12 Red Hat Bugzilla 2005-10-05 17:14:29 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

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