Bug 1320872
Summary: | "dnf history undo" fails with Python exception "ValueError: NEVRA was already removed" | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Stephan Bergmann <sbergman> |
Component: | dnf | Assignee: | rpm-software-management |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 26 | CC: | 42, packaging-team-maint, techtonik, vmukhame |
Target Milestone: | --- | Keywords: | EasyFix, Triaged, UserExperience |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-05-29 11:54:43 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: |
We will fix the traceback, but I don't think the --exclude option is compatible with history undo. Seeing the same Python traceback error when attempting to downgrade packages after finding separate issues in testing. I initially tried 'sudo dnf history list', then 'sudo dnf history info nnn' to look at the last transaction to check a detail, then 'sudo dnf history undo nnn' failed in the same manner as the parent issue. Trying the parent issue command give the same result (regardless of how the transaction to rollback is selected): $ sudo dnf history undo last [sudo] password for username: Last metadata expiration check: 1:22:34 ago on Mon Apr 25 18:40:05 2016. Undoing transaction 203, from Mon Apr 25 12:11:12 2016 Upgraded avahi-0.6.32-0.4.rc.fc23.x86_64 @updates Upgrade 0.6.32-1.fc23.x86_64 @updates Upgraded avahi-autoipd-0.6.32-0.4.rc.fc23.x86_64 @updates Upgrade 0.6.32-1.fc23.x86_64 @updates Upgraded avahi-glib-0.6.32-0.4.rc.fc23.x86_64 @updates Upgrade 0.6.32-1.fc23.x86_64 @updates Upgraded avahi-gobject-0.6.32-0.4.rc.fc23.x86_64 @updates Upgrade 0.6.32-1.fc23.x86_64 @updates Upgraded avahi-libs-0.6.32-0.4.rc.fc23.x86_64 @updates Upgrade 0.6.32-1.fc23.x86_64 @updates Upgraded avahi-ui-gtk3-0.6.32-0.4.rc.fc23.x86_64 @updates Upgrade 0.6.32-1.fc23.x86_64 @updates Upgraded glusterfs-3.7.10-1.fc23.x86_64 @updates Upgrade 3.7.11-1.fc23.x86_64 @updates Upgraded glusterfs-api-3.7.10-1.fc23.x86_64 @updates Upgrade 3.7.11-1.fc23.x86_64 @updates Upgraded glusterfs-client-xlators-3.7.10-1.fc23.x86_64 @updates Upgrade 3.7.11-1.fc23.x86_64 @updates Upgraded glusterfs-fuse-3.7.10-1.fc23.x86_64 @updates Upgrade 3.7.11-1.fc23.x86_64 @updates Upgraded glusterfs-libs-3.7.10-1.fc23.x86_64 @updates Upgrade 3.7.11-1.fc23.x86_64 @updates Upgraded gnome-shell-3.18.4-1.fc23.x86_64 @updates Upgrade 3.18.5-1.fc23.x86_64 @updates Upgraded gstreamer1-1.6.3-1.fc23.x86_64 @updates Upgrade 1.6.4-1.fc23.x86_64 @updates Upgraded gstreamer1-plugins-bad-free-1.6.3-3.fc23.x86_64 @updates Upgrade 1.6.4-1.fc23.x86_64 @updates Upgraded gstreamer1-plugins-bad-free-extras-1.6.3-3.fc23.x86_64 @updates Upgrade 1.6.4-1.fc23.x86_64 @updates Upgraded gstreamer1-plugins-bad-free-fluidsynth-1.6.3-3.fc23.x86_64 @updates Upgrade 1.6.4-1.fc23.x86_64 @updates Upgraded gstreamer1-plugins-base-1.6.3-1.fc23.x86_64 @updates Upgrade 1.6.4-1.fc23.x86_64 @updates Upgraded gstreamer1-plugins-good-1.6.3-1.fc23.x86_64 @updates Upgrade 1.6.4-1.fc23.x86_64 @updates Upgraded mutter-3.18.3-2.fc23.x86_64 @updates Upgrade 3.18.4-1.fc23.x86_64 @updates Upgraded openssh-7.2p2-2.fc23.x86_64 @updates Upgrade 7.2p2-3.fc23.x86_64 @updates Upgraded openssh-askpass-7.2p2-2.fc23.x86_64 @updates Upgrade 7.2p2-3.fc23.x86_64 @updates Upgraded openssh-clients-7.2p2-2.fc23.x86_64 @updates Upgrade 7.2p2-3.fc23.x86_64 @updates Upgraded openssh-server-7.2p2-2.fc23.x86_64 @updates Upgrade 7.2p2-3.fc23.x86_64 @updates Upgraded thunderbird-38.7.1-1.fc23.x86_64 @updates Upgrade 45.0-2.fc23.x86_64 @updates Upgraded webkitgtk4-2.10.9-1.fc23.x86_64 @updates Obsoleted webkitgtk4-2.10.9-1.fc23.x86_64 @updates Upgrade webkitgtk4-2.12.1-1.fc23.x86_64 @updates Install webkitgtk4-jsc-2.12.1-1.fc23.x86_64 @updates Obsoleting webkitgtk4-plugin-process-gtk2-2.12.1-1.fc23.x86_64 @updates Install webkitgtk4-plugin-process-gtk2-2.12.1-1.fc23.x86_64 @updates Upgraded java-1.8.0-openjdk-1:1.8.0.77-1.b03.fc23.x86_64 @updates Upgrade 1:1.8.0.91-1.b14.fc23.x86_64 @updates Upgraded java-1.8.0-openjdk-devel-1:1.8.0.77-1.b03.fc23.x86_64 @updates Upgrade 1:1.8.0.91-1.b14.fc23.x86_64 @updates Upgraded java-1.8.0-openjdk-headless-1:1.8.0.77-1.b03.fc23.x86_64 @updates Upgrade 1:1.8.0.91-1.b14.fc23.x86_64 @updates Traceback (most recent call last): File "/bin/dnf", line 58, 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 1096, in run return self.command.run(self.base.extcmds) File "/usr/lib/python3.4/site-packages/dnf/cli/commands/__init__.py", line 1229, in run ret = self._hcmd_undo(extcmds[1:]) File "/usr/lib/python3.4/site-packages/dnf/cli/commands/__init__.py", line 1125, in _hcmd_undo return self.base.history_undo_transaction(extcmd) File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 683, in history_undo_transaction self.history_undo_operations(history.transaction_nevra_ops(old.tid)) File "/usr/lib/python3.4/site-packages/dnf/history.py", line 126, in transaction_nevra_ops operations.add(hpkg.state, hpkg.nevra, replaced_nevra, obsoleted_nevras) File "/usr/lib/python3.4/site-packages/dnf/history.py", line 384, in add self._add_replacement(state, nevra, replaced_nevra) File "/usr/lib/python3.4/site-packages/dnf/history.py", line 234, in _add_replacement raise ValueError('NEVRA was already removed: %s' % old_nevra) ValueError: NEVRA was already removed: webkitgtk4-0:2.10.9-1.fc23.x86_64 This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle. Changing version to '26'. The same problem after https://bugzilla.redhat.com/show_bug.cgi?id=1478632 This message is a reminder that Fedora 26 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '26'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 26 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |
Description of problem: "sudo dnf history undo last" fails for me with > Undoing transaction 146, from Mon Mar 21 08:32:08 2016 > Upgraded bind99-libs-9.9.8-2.P3.fc23.x86_64 @updates > Upgrade 9.9.8-4.P4.fc23.x86_64 @updates > [...] > Upgraded bind-utils-32:9.10.3-10.P3.fc23.x86_64 @updates > Upgrade 32:9.10.3-12.P4.fc23.x86_64 @updates > Traceback (most recent call last): > File "/bin/dnf", line 58, 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 1229, in run > ret = self._hcmd_undo(extcmds[1:]) > File "/usr/lib/python3.4/site-packages/dnf/cli/commands/__init__.py", line 1125, in _hcmd_undo > return self.base.history_undo_transaction(extcmd) > File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 683, in history_undo_transaction > self.history_undo_operations(history.transaction_nevra_ops(old.tid)) > File "/usr/lib/python3.4/site-packages/dnf/history.py", line 126, in transaction_nevra_ops > operations.add(hpkg.state, hpkg.nevra, replaced_nevra, obsoleted_nevras) > File "/usr/lib/python3.4/site-packages/dnf/history.py", line 384, in add > self._add_replacement(state, nevra, replaced_nevra) > File "/usr/lib/python3.4/site-packages/dnf/history.py", line 234, in _add_replacement > raise ValueError('NEVRA was already removed: %s' % old_nevra) > ValueError: NEVRA was already removed: kdelibs-6:4.14.17-1.fc23.x86_64 Version-Release number of selected component (if applicable): dnf-1.1.7-2.fc23.noarch How reproducible: always Additional info: "sudo dnf history undo last --exclude=kde\*" causes exactly the same problem, as if it ignores the --exclude argument.