Bug 1149952 - Python exception thrown when searching dnf history
Summary: Python exception thrown when searching dnf history
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf   
(Show other bugs)
Version: 20
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Tim Lauridsen
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2014-10-07 03:38 UTC by Daniel Miranda
Modified: 2014-12-13 09:53 UTC (History)
6 users (show)

Fixed In Version: dnf-0.6.3-2.fc21
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-12-13 09:53:32 UTC
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
dnf.log (7.40 KB, text/plain)
2014-10-07 03:38 UTC, Daniel Miranda
no flags Details

Description Daniel Miranda 2014-10-07 03:38:20 UTC
Created attachment 944437 [details]

Description of problem:

Trying to search for a package with `dnf history` causes a Python exception

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


How reproducible:


Steps to Reproduce:
1. Run `dnf history <package>`

Actual results:

Partial output followed by crash

Expected results:

No crash

Additional info:

Backtrace is attached

Comment 1 Parag Nemade 2014-10-07 04:03:16 UTC
I am not aware of any such usage of history command. I generally use it as

sudo dnf history list

sudo dnf history info <transaction ID>

but when I checked yum, I see yum can show package history and thus this can be missing feature in dnf. But I also see for a kernel like special package it failed to provide history when given as

sudo yum history info kernel-3.16-2

but following worked
sudo yum history info kernel

Comment 2 Daniel Miranda 2014-10-07 04:11:59 UTC
It's described in the manual:

dnf history info [<spec>...]
    Describe  the  given transactions. Each <spec> can be either a <transaction-spec>, which specifies a transaction directly, or a <package-name-spec>, which
    specifies a transaction by a package which it manipulated. When no transaction is specified describe what happened during the latest transaction.

And it does seem to work up to the point of the crash, which looks like right when the targetted package is about to be listed. Removing the version from the package name doesn't change anything for me though, passing just 'kernel', or even a different package like 'firefox' still causes an exception.

Comment 3 Parag Nemade 2014-10-07 04:48:16 UTC
I almost forgot this is already reported. I just installed new dnf-0.6.2 update on Fedora 21 where its update log showed bug 1136223 fixed.

I will not mark this as duplicate yet as I am not sure how kernel package should be used with history command. With the new update following only worked fine.

sudo dnf history info kernel

Comment 4 Daniel Miranda 2014-10-07 04:58:27 UTC
Is DNF 0.6 going to be on Fedora 20? If negative, this seems like something would warrant a backport, if I may say that.

Comment 5 Tim Lauridsen 2014-10-07 05:09:09 UTC
the dnf history info kernel case was fixed in 0.6.2

but dnf history info python* blows up

fixed here


Comment 6 Honza Silhan 2014-10-08 20:32:38 UTC
Fixed in the upstream.

Comment 7 Fedora Update System 2014-12-09 14:06:26 UTC
dnf-0.6.3-2.fc21,dnf-plugins-core-0.1.4-1.fc21,hawkey-0.5.2-1.fc21 has been submitted as an update for Fedora 21.

Comment 8 Fedora Update System 2014-12-12 04:32:31 UTC
Package dnf-0.6.3-2.fc21, hawkey-0.5.2-1.fc21, dnf-plugins-core-0.1.4-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.6.3-2.fc21 hawkey-0.5.2-1.fc21 dnf-plugins-core-0.1.4-1.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 9 Daniel Miranda 2014-12-12 05:19:15 UTC
Command no longer crashes, and produces correct results for me with the updates.

Comment 10 Fedora Update System 2014-12-13 09:53:32 UTC
dnf-0.6.3-2.fc21, hawkey-0.5.2-1.fc21, dnf-plugins-core-0.1.4-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

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