Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1155994

Summary: yum: history.py:1440:search:AssertionError
Product: Red Hat Enterprise Linux 6 Reporter: Karel Srot <ksrot>
Component: yumAssignee: Valentina Mukhamedzhanova <vmukhame>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: low Docs Contact:
Priority: low    
Version: 6.6CC: james.antill, vmukhame
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: yum-3.2.29-61.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1096147 Environment:
Last Closed: 2015-07-22 07:21:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karel Srot 2014-10-23 11:10:58 UTC
Present on rhel-6.6 too, 
yum-3.2.29-60.el6.noarch


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 294, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 146, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 438, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1493, in doCommand
    ret = base.historyInfoCmd(extcmds)
  File "/usr/share/yum-cli/output.py", line 1601, in historyInfoCmd
    tids.update(self.history.search(pats))
  File "/usr/lib/python2.6/site-packages/yum/history.py", line 1441, in search
    assert nps
AssertionError


+++ This bug was initially created as a clone of Bug #1096147 +++

Version-Release number of selected component:
yum-3.4.3-117.el7

Additional info:
reporter:       libreport-2.1.11
cmdline:        /usr/bin/python /usr/bin/yum history info '\x1b[B'
executable:     /usr/bin/yum
kernel:         3.10.0-121.el7.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
history.py:1440:search:AssertionError

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 355, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 174, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 571, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 3064, in doCommand
    ret = base.historyInfoCmd(extcmds)
  File "/usr/share/yum-cli/output.py", line 2192, in historyInfoCmd
    tids.update(self.history.search(pats))
  File "/usr/lib/python2.7/site-packages/yum/history.py", line 1440, in search
    assert nps
AssertionError

Local variables in innermost frame:
need_full: False
ignore_case: True
cur: <sqlite3.Cursor object at 0x2975260>
pkgtupids: set([])
fields: ['name']
self: <yum.history.YumHistory instance at 0x2950cb0>
ret: []
patterns: ['\x1b[B']
names: False
pat_max: 128
npatterns: ['\x1b[B']
data: (False, [], ['name'], False)
nps: []

--- Additional comment from James Antill on 2014-09-16 17:20:37 EDT ---

Mostly fixed by:

commit 5efc1e1b88398da7f89dcb9055d62481bb288a8a
Author: James Antill <james>
Date:   Tue Sep 16 16:33:33 2014 -0400

    Workaround history searching for [abc] character lists failures. BZ 1096147.

Comment 1 Valentina Mukhamedzhanova 2014-11-27 12:48:43 UTC
*** Bug 1143824 has been marked as a duplicate of this bug. ***

Comment 5 errata-xmlrpc 2015-07-22 07:21:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1384.html