Hide Forgot
Description of problem: ======================== Dnf/yum rollback fails with below traceback # yum history undo <ID> Traceback (most recent call last): File "/bin/yum", line 58, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 201, in user_main errcode = main(args) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 67, in main return _main(base, args, cli_class, option_parser_class) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 106, in _main return cli_run(cli, base) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 122, in cli_run cli.run() File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 1055, in run return self.command.run() File "/usr/lib/python3.6/site-packages/dnf/cli/commands/history.py", line 342, in run self._hcmd_undo(tids) File "/usr/lib/python3.6/site-packages/dnf/cli/commands/history.py", line 190, in _hcmd_undo self._revert_transaction(old) File "/usr/lib/python3.6/site-packages/dnf/cli/commands/history.py", line 233, in _revert_transaction ti["action"] = action_map[ti["action"]] KeyError: 'Reason Change' Version-Release number of selected component (if applicable): ============================================= Affected versions python3-dnf-4.4.2-11.el8.noarch python3-dnf-4.7.0-4.el8.noarch Actual results: ================ Failed with KeyError: 'Reason Change' error Expected results: ================= Downgrade should be successful
PRs: https://github.com/rpm-software-management/dnf/pull/1814 https://github.com/rpm-software-management/libdnf/pull/1447 https://github.com/rpm-software-management/ci-dnf-stack/pull/1071 REHL 9 bug: https://bugzilla.redhat.com/show_bug.cgi?id=2053014
*** Bug 2064581 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (dnf bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:7712