Bug 1966550
| Summary: | [abrt] dnf: _revert_transaction(): history.py:233:_revert_transaction:KeyError: 'Reason Change' | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Brent R Brian <brentrbrian> | ||||||||
| Component: | dnf | Assignee: | Daniel Mach <dmach> | ||||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 33 | CC: | ben, dmach, dor.askayo, jmracek, jrohel, mblaha, mhatina, mihai, msawyer, packaging-team-maint, pholica, pkratoch, rpm-software-management, schugw, vmukhame | ||||||||
| Target Milestone: | --- | Keywords: | Triaged | ||||||||
| Target Release: | --- | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Unspecified | ||||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/e1d459a104a24f8d20e574920657fa9673b8bf09 | ||||||||||
| Whiteboard: | abrt_hash:f478f4211d9e2ac868426f469f1e0a61d7c074d1;VARIANT_ID=workstation; | ||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2021-10-15 05:56:18 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: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Brent R Brian
2021-06-01 11:39:19 UTC
Created attachment 1788484 [details]
File: _var_log_dnf.log
Created attachment 1788485 [details]
File: backtrace
Created attachment 1788486 [details]
File: cpuinfo
Please ignore description above I've most probably hit this issue (based on the code lines and calls) as well. I'm hitting following traceback:
$ sudo dnf history rollback 995
Last metadata expiration check: 1:38:45 ago on Tue 08 Jun 2021 07:20:37 PM CEST.
Traceback (most recent call last):
File "/usr/bin/dnf", line 58, in <module>
main.user_main(sys.argv[1:], exit_code=True)
File "/usr/lib/python3.9/site-packages/dnf/cli/main.py", line 201, in user_main
errcode = main(args)
File "/usr/lib/python3.9/site-packages/dnf/cli/main.py", line 67, in main
return _main(base, args, cli_class, option_parser_class)
File "/usr/lib/python3.9/site-packages/dnf/cli/main.py", line 106, in _main
return cli_run(cli, base)
File "/usr/lib/python3.9/site-packages/dnf/cli/main.py", line 122, in cli_run
cli.run()
File "/usr/lib/python3.9/site-packages/dnf/cli/cli.py", line 1055, in run
return self.command.run()
File "/usr/lib/python3.9/site-packages/dnf/cli/commands/history.py", line 346, in run
self._hcmd_rollback(tids)
File "/usr/lib/python3.9/site-packages/dnf/cli/commands/history.py", line 212, in _hcmd_rollback
self._revert_transaction(merged_trans)
File "/usr/lib/python3.9/site-packages/dnf/cli/commands/history.py", line 233, in _revert_transaction
ti["action"] = action_map[ti["action"]]
KeyError: 'Reason Change'
I hit the same issue with slightly different traceback when I run "dnf history undo 996". Here's how 996 looks like:
$ sudo dnf history info 996
Transaction ID : 996
Begin time : Thu 13 May 2021 10:50:33 PM CEST
Begin rpmdb : 3154:c124b51eb32ba9e03a2923fadf79e3ade257b2b7
End time : Thu 13 May 2021 10:54:51 PM CEST (258 seconds)
End rpmdb : 3153:5e1305b4b87075458c2b95673ecd7d75ff9798c4
User : Pavel Holica <conscript>
Return-Code : Success
Releasever : 33
Command Line : update --refresh
Comment :
Packages Altered:
Install kernel-5.11.19-200.fc33.x86_64 @updates
Install kernel-core-5.11.19-200.fc33.x86_64 @updates
Install kernel-devel-5.11.19-200.fc33.x86_64 @updates
Install kernel-modules-5.11.19-200.fc33.x86_64 @updates
Install kernel-modules-extra-5.11.19-200.fc33.x86_64 @updates
Upgrade ansible-2.9.21-1.fc33.noarch @updates
Upgraded ansible-2.9.20-1.fc33.noarch @@System
Upgrade arm-image-installer-3.4-1.fc33.noarch @updates
Upgraded arm-image-installer-3.3-1.fc33.noarch @@System
Upgrade container-selinux-2:2.160.2-1.fc33.noarch @updates
Upgraded container-selinux-2:2.160.0-1.fc33.noarch @@System
Upgrade kernel-headers-5.11.19-200.fc33.x86_64 @updates
Upgraded kernel-headers-5.11.16-200.fc33.x86_64 @@System
Upgrade libvarlink-util-22-2.fc33.x86_64 @updates
Upgraded libvarlink-util-19-3.fc33.x86_64 @@System
Upgrade mariadb-3:10.4.19-1.fc33.x86_64 @updates
Upgraded mariadb-3:10.4.18-1.fc33.x86_64 @@System
Upgrade mariadb-backup-3:10.4.19-1.fc33.x86_64 @updates
Upgraded mariadb-backup-3:10.4.18-1.fc33.x86_64 @@System
Upgrade mariadb-common-3:10.4.19-1.fc33.x86_64 @updates
Upgraded mariadb-common-3:10.4.18-1.fc33.x86_64 @@System
Upgrade mariadb-cracklib-password-check-3:10.4.19-1.fc33.x86_64 @updates
Upgraded mariadb-cracklib-password-check-3:10.4.18-1.fc33.x86_64 @@System
Upgrade mariadb-errmsg-3:10.4.19-1.fc33.x86_64 @updates
Upgraded mariadb-errmsg-3:10.4.18-1.fc33.x86_64 @@System
Upgrade mariadb-gssapi-server-3:10.4.19-1.fc33.x86_64 @updates
Upgraded mariadb-gssapi-server-3:10.4.18-1.fc33.x86_64 @@System
Upgrade mariadb-rocksdb-engine-3:10.4.19-1.fc33.x86_64 @updates
Upgraded mariadb-rocksdb-engine-3:10.4.18-1.fc33.x86_64 @@System
Upgrade mariadb-server-3:10.4.19-1.fc33.x86_64 @updates
Upgraded mariadb-server-3:10.4.18-1.fc33.x86_64 @@System
Upgrade mariadb-server-utils-3:10.4.19-1.fc33.x86_64 @updates
Upgraded mariadb-server-utils-3:10.4.18-1.fc33.x86_64 @@System
Upgrade mariadb-tokudb-engine-3:10.4.19-1.fc33.x86_64 @updates
Upgraded mariadb-tokudb-engine-3:10.4.18-1.fc33.x86_64 @@System
Upgrade mysql-selinux-1.0.4-2.fc33.noarch @updates
Upgraded mysql-selinux-1.0.2-1.fc33.noarch @@System
Upgrade openblas-0.3.15-1.fc33.x86_64 @updates
Upgraded openblas-0.3.12-1.fc33.x86_64 @@System
Upgrade openblas-openmp-0.3.15-1.fc33.x86_64 @updates
Upgraded openblas-openmp-0.3.12-1.fc33.x86_64 @@System
Upgrade openblas-openmp64-0.3.15-1.fc33.x86_64 @updates
Upgraded openblas-openmp64-0.3.12-1.fc33.x86_64 @@System
Upgrade openblas-serial-0.3.15-1.fc33.x86_64 @updates
Upgraded openblas-serial-0.3.12-1.fc33.x86_64 @@System
Upgrade openblas-threads-0.3.15-1.fc33.x86_64 @updates
Upgraded openblas-threads-0.3.12-1.fc33.x86_64 @@System
Upgrade openblas-threads64-0.3.15-1.fc33.x86_64 @updates
Upgraded openblas-threads64-0.3.12-1.fc33.x86_64 @@System
Upgrade openblas-threads64_-0.3.15-1.fc33.x86_64 @updates
Upgraded openblas-threads64_-0.3.12-1.fc33.x86_64 @@System
Upgrade perl-experimental-0.024-1.fc33.noarch @updates
Upgraded perl-experimental-0.022-3.fc33.noarch @@System
Upgrade pipewire-0.3.26-2.fc33.i686 @updates
Upgraded pipewire-0.3.25-1.fc33.i686 @@System
Upgrade pipewire-0.3.26-2.fc33.x86_64 @updates
Upgraded pipewire-0.3.25-1.fc33.x86_64 @@System
Upgrade pipewire-alsa-0.3.26-2.fc33.i686 @updates
Upgraded pipewire-alsa-0.3.25-1.fc33.i686 @@System
Upgrade pipewire-alsa-0.3.26-2.fc33.x86_64 @updates
Upgraded pipewire-alsa-0.3.25-1.fc33.x86_64 @@System
Upgrade pipewire-gstreamer-0.3.26-2.fc33.x86_64 @updates
Upgraded pipewire-gstreamer-0.3.25-1.fc33.x86_64 @@System
Upgrade pipewire-libs-0.3.26-2.fc33.i686 @updates
Upgraded pipewire-libs-0.3.25-1.fc33.i686 @@System
Upgrade pipewire-libs-0.3.26-2.fc33.x86_64 @updates
Upgraded pipewire-libs-0.3.25-1.fc33.x86_64 @@System
Upgrade podman-3:3.1.2-2.fc33.x86_64 @updates
Upgraded podman-2:3.2.0-0.1.rc1.fc33.x86_64 @@System
Upgrade podman-plugins-3:3.1.2-2.fc33.x86_64 @updates
Upgraded podman-plugins-2:3.2.0-0.1.rc1.fc33.x86_64 @@System
Upgrade shadow-utils-2:4.8.1-6.fc33.x86_64 @updates
Upgraded shadow-utils-2:4.8.1-5.fc33.x86_64 @@System
Upgrade xen-libs-4.14.2-1.fc33.x86_64 @updates
Upgraded xen-libs-4.14.1-7.fc33.x86_64 @@System
Upgrade xen-licenses-4.14.2-1.fc33.x86_64 @updates
Upgraded xen-licenses-4.14.1-7.fc33.x86_64 @@System
Upgrade fdk-aac-2.0.2-1.fc33.x86_64 @rpmfusion-nonfree-updates
Upgraded fdk-aac-2.0.1-3.fc33.x86_64 @@System
Reason Change AtomicParsley-0.9.5-16.fc33.x86_64 @fedora
Removed kernel-5.11.16-200.fc33.x86_64 @@System
Removed kernel-core-5.11.16-200.fc33.x86_64 @@System
Removed kernel-devel-5.11.16-200.fc33.x86_64 @@System
Removed kernel-modules-5.11.16-200.fc33.x86_64 @@System
Removed kernel-modules-extra-5.11.16-200.fc33.x86_64 @@System
Removed kmod-nvidia-5.11.16-200.fc33.x86_64-3:465.24.02-1.fc33.x86_64 @@System
Scriptlet output:
1 Deprecated, use selabel_lookup
2 /usr/lib/tmpfiles.d/pam_ssh.conf:1: Line references path below legacy directory /var/run/, updating /var/run/pam_ssh → /run/pam_ssh; please update the tmpfiles.d/ drop-in file accordingly.
I have following versions installed:
libdnf-0.62.0-1.fc33
dnf-4.7.0-1.fc33
libsolv-0.7.17-1.fc33
librepo-1.14.0-1.fc33
rpm-4.16.1.3-1.fc33
*** Bug 1976850 has been marked as a duplicate of this bug. *** *** Bug 1981530 has been marked as a duplicate of this bug. *** Similar problem has been detected: running DNF update reporter: libreport-2.15.2 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-9ec6b937-4661-4386-b67d-d56a9465fa56.scope cmdline: /usr/bin/python3 /usr/bin/dnf history undo 126 crash_function: _revert_transaction exception_type: KeyError executable: /usr/bin/dnf interpreter: python3-3.9.6-2.fc34.x86_64 kernel: 5.12.17-300.fc34.x86_64 package: dnf-4.8.0-1.fc34 reason: history.py:233:_revert_transaction:KeyError: 'Reason Change' runlevel: N 5 type: Python3 uid: 0 Similar problem has been detected: sudo dnf history undo <transaction> reporter: libreport-2.15.2 cmdline: /usr/bin/python3 /usr/bin/dnf history undo 1048 crash_function: _revert_transaction exception_type: KeyError executable: /usr/bin/dnf interpreter: python3-3.9.6-2.fc34.x86_64 kernel: 5.13.8-200.fc34.x86_64 package: dnf-4.8.0-1.fc34 reason: history.py:233:_revert_transaction:KeyError: 'Reason Change' runlevel: N 5 type: Python3 uid: 0 Similar problem has been detected: I was attempting to perform a dnf rollback to the previous configuration, due to constantly receiving xorg-x11-server/wayland crashes and errors reporter: libreport-2.15.2 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-e90995a3-4c9d-4d77-bf52-cbb41401fda5.scope cmdline: /usr/bin/python3 /usr/bin/dnf history rollback 37 crash_function: _revert_transaction exception_type: KeyError executable: /usr/bin/dnf interpreter: python3-3.9.6-2.fc34.x86_64 kernel: 5.13.13-200.fc34.x86_64 package: dnf-4.8.0-1.fc34 reason: history.py:233:_revert_transaction:KeyError: 'Reason Change' runlevel: N 5 type: Python3 uid: 0 *** This bug has been marked as a duplicate of bug 2010259 *** |