Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1303149
Summary: | dnf history info failing | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Isaque Galdino <igaldino> |
Component: | dnf | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 23 | CC: | admiller, elstaal, guo888xiao, jceresini, jsilhan, marekdolezel, mihailuciand, mluscon, mu, packaging-team-maint, pnemade, smith93_28, vmukhame |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | dnf-1.1.6-2.fc23 dnf-1.1.6-2.fc22 dnf-1.1.7-2.fc23 dnf-1.1.7-2.fc24 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-03-26 17:58:02 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Isaque Galdino
2016-01-29 16:52:51 UTC
This is a duplicate of 1302172. *** Bug 1302172 has been marked as a duplicate of this bug. *** *** Bug 1302510 has been marked as a duplicate of this bug. *** *** Bug 1303470 has been marked as a duplicate of this bug. *** *** Bug 1303646 has been marked as a duplicate of this bug. *** Fixed in the upstream [1], new release should be soon. [1] https://github.com/rpm-software-management/dnf/commit/c9217ab14cc5bee85d5a93d8a8b740651cc99aee dnf-1.1.6-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-10da20f298 dnf-1.1.6-2.fc22 dnf-plugins-core-0.1.16-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-573eba7b37 dnf-1.1.6-2.fc22 dnf-plugins-core-0.1.16-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-573eba7b37 dnf-1.1.6-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-10da20f298 dnf-1.1.6-2.fc22, dnf-plugins-core-0.1.16-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-573eba7b37 I just set up a Fedora 23 VM using netinstall to see whether the update fixes the issue. For some reason `dnf history info 2` worked with dnf 1.1.6-1 (the old version) just fine. Perhaps the history is not that large and that corner case did not happen there? The machine that the error occurred for me is my production machine, I am a bit reluctant to test an update to the package manager there :-/. You can copy your /var/lib/dnf/history/ from production machine and try the fix inside VM. I deleted everything under `/var/lib/dnf/history/` in the virtual machine and copied the files from the production machine into that directly. Running `dnf history` then gave me the whole list of transactions. Drilling down to the interesting transaction with `dnf history info awesome` got me a different error this time: Die letzte Prüfung auf abgelaufene Metadaten wurde vor 2:26:23 am Thu Feb 4 11:58:59 2016 ausgeführt. Transaktions-ID : 208 Anfangszeit : Tue Feb 2 18:49:02 2016 Anfang rpmdb : 4505:34e2a6f6c0fc4e4d27680558756611f14f9ce9da Endzeit : 18:49:04 2016 (2 Sekunden) Ende rpmdb : 4505:0ed8145a64bab51edc89131dcfe27d2899c84cb8 Benutzer : Martin Ueding <mu> Rückgabe-Code : Erfolg Befehlszeile : update awesome --enablerepo=updates-testing Transaktion ausgeführt mit: Aktualisiert dnf-1.1.6-1.fc23.noarch @updates Installiert rpm-4.13.0-0.rc1.10.fc23.x86_64 @updates Veränderte Pakete: Traceback (most recent call last): File "/usr/bin/dnf", line 57, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 174, in user_main errcode = main(args) File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 60, in main return _main(base, args) File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 112, in _main cli.run() File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 1095, in run return self.command.run(self.base.extcmds) File "/usr/lib/python3.4/site-packages/dnf/cli/commands/__init__.py", line 1218, in run ret = self.output.historyInfoCmd(extcmds) File "/usr/lib/python3.4/site-packages/dnf/cli/output.py", line 1536, in historyInfoCmd self._historyInfoCmd(tid, pats) File "/usr/lib/python3.4/site-packages/dnf/cli/output.py", line 1674, in _historyInfoCmd self.historyInfoCmdPkgsAltered(old, pats) File "/usr/lib/python3.4/site-packages/dnf/cli/output.py", line 1749, in historyInfoCmdPkgsAltered x, m, u = dnf.yum.packages.parsePackages([hpkg], pats) File "/usr/lib/python3.4/site-packages/dnf/yum/packages.py", line 76, in parsePackages exactmatch.update(pkgdict[command]) TypeError: unhashable type: 'YumHistoryPackageState' That bug has already been reported as #1245121. Then I tried this same thing on my production machine with the old dnf (1.1.6-1) and get the same error, nothing about `to_nevra`. So this `to_nevra` bug only occurs for certain transactions. Presumably the update of awesome using `--enablerepo=updates-testing` has created some different transaction and therefore there is some other error. A thing which does make a difference is the history for git. When I do `dnf history info git` on the old dnf version, I get the `to_nevra`-error on both the VM (I downgraded dnf for testing) and the production machine. After upgrading dnf to 1.1.6-2 again the error changed from `to_nevra` to this `YumHistoryPackageState` error. So presumably the `to_nevra` bug is fixed now and the `YumHistoryPackageState` is just independet of that. Shall I give a +1 on Bodhi for this update, then? dnf-1.1.6-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. dnf-1.1.6-2.fc22, dnf-plugins-core-0.1.16-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. dnf-plugins-core-0.1.17-1.fc23 dnf-1.1.7-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0123ce82c1 dnf-plugins-core-0.1.17-1.fc22 dnf-1.1.7-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f673381075 dnf-1.1.7-2.fc23 dnf-plugins-core-0.1.17-1.fc23 libsolv-0.6.19-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0123ce82c1 dnf-1.1.7-2.fc22 dnf-plugins-core-0.1.17-1.fc22 libsolv-0.6.19-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f673381075 dnf-1.1.7-2.fc22, dnf-plugins-core-0.1.17-1.fc22, libsolv-0.6.19-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f673381075 dnf-1.1.7-2.fc23, dnf-plugins-core-0.1.17-1.fc23, libsolv-0.6.19-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-0123ce82c1 dnf-1.1.7-2.fc23, dnf-plugins-core-0.1.17-1.fc23, libsolv-0.6.19-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. dnf-1.1.7-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-c030d24231 dnf-1.1.7-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-c030d24231 dnf-1.1.7-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |