Bug 1966550 - [abrt] dnf: _revert_transaction(): history.py:233:_revert_transaction:KeyError: 'Reason Change'
Summary: [abrt] dnf: _revert_transaction(): history.py:233:_revert_transaction:KeyErro...
Keywords:
Status: CLOSED DUPLICATE of bug 2010259
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 33
Hardware: x86_64
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: Daniel Mach
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:f478f4211d9e2ac868426f469f1...
: 1976850 1981530 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-01 11:39 UTC by Brent R Brian
Modified: 2021-10-15 05:56 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-10-15 05:56:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: _var_log_dnf.log (740.32 KB, text/plain)
2021-06-01 11:39 UTC, Brent R Brian
no flags Details
File: backtrace (4.40 KB, text/plain)
2021-06-01 11:39 UTC, Brent R Brian
no flags Details
File: cpuinfo (2.44 KB, text/plain)
2021-06-01 11:39 UTC, Brent R Brian
no flags Details

Description Brent R Brian 2021-06-01 11:39:19 UTC
Description of problem:
going from step 1 to step 2, happens every time

f33 does not have scantailor, running f32 version from repo (of f33)

Should this package be built with new compiler ?

Version-Release number of selected component:
dnf-4.7.0-1.fc33

Additional info:
reporter:       libreport-2.14.0
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-991b3845-7a8a-43a7-9ceb-96e0eaf33925.scope
cmdline:        /usr/bin/python3 /usr/bin/dnf history rollback 281
crash_function: _revert_transaction
exception_type: KeyError
executable:     /usr/bin/dnf
interpreter:    python3-3.9.5-2.fc33.x86_64
kernel:         5.12.6-200.fc33.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
#1 [/usr/lib/python3.9/site-packages/dnf/cli/commands/history.py:233] _revert_transaction
#2 [/usr/lib/python3.9/site-packages/dnf/cli/commands/history.py:212] _hcmd_rollback
#3 [/usr/lib/python3.9/site-packages/dnf/cli/commands/history.py:346] run
#4 [/usr/lib/python3.9/site-packages/dnf/cli/cli.py:1055] run
#5 [/usr/lib/python3.9/site-packages/dnf/cli/main.py:122] cli_run
#6 [/usr/lib/python3.9/site-packages/dnf/cli/main.py:106] _main
#7 [/usr/lib/python3.9/site-packages/dnf/cli/main.py:67] main
#8 [/usr/lib/python3.9/site-packages/dnf/cli/main.py:201] user_main
#9 [/usr/bin/dnf:58] <module>

Comment 1 Brent R Brian 2021-06-01 11:39:26 UTC
Created attachment 1788484 [details]
File: _var_log_dnf.log

Comment 2 Brent R Brian 2021-06-01 11:39:28 UTC
Created attachment 1788485 [details]
File: backtrace

Comment 3 Brent R Brian 2021-06-01 11:39:29 UTC
Created attachment 1788486 [details]
File: cpuinfo

Comment 4 Brent R Brian 2021-06-01 13:31:53 UTC
Please ignore description above

Comment 5 Pavel Holica 2021-06-08 19:08:23 UTC
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

Comment 6 Jaroslav Rohel 2021-07-12 13:46:00 UTC
*** Bug 1976850 has been marked as a duplicate of this bug. ***

Comment 7 Pavla Kratochvilova 2021-07-13 05:34:58 UTC
*** Bug 1981530 has been marked as a duplicate of this bug. ***

Comment 8 Walter Schug 2021-07-30 13:24:02 UTC
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

Comment 9 Dor 2021-08-20 18:53:20 UTC
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

Comment 10 Matthew Sawyer 2021-09-08 20:35:41 UTC
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

Comment 11 Pavla Kratochvilova 2021-10-15 05:56:18 UTC

*** This bug has been marked as a duplicate of bug 2010259 ***


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