Description of problem: exception:when dnf history rollback id but not allexception:when dnf history rollback id but not all Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1.shell cmd: dnf history rollback id ##but not all 2.g-io-error-quark: GDBus.Error:org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last): File "/usr/lib64/python3.7/site-packages/dbus/service.py", line 707, in _message_cb retval = candidate_method(self, *args, **keywords) File "/usr/lib/python3.7/site-packages/dnfdaemon/server/__init__.py", line 68, in newFunc rc = func(*args, **kwargs) File "/usr/share/dnfdaemon/dnfdaemon-system", line 291, in GetHistoryPackages value = self.get_history_transaction_pkgs(tid) File "/usr/lib/python3.7/site-packages/dnfdaemon/server/__init__.py", line 684, in get_history_transaction_pkgs pkg_id = self._get_id(pkg) File "/usr/lib/python3.7/site-packages/dnfdaemon/server/__init__.py", line 1017, in _get_id values = [pkg.name, str(pkg.epoch), pkg.version, pkg.release, pkg.arch] File "/usr/lib/python3.7/site-packages/dnf/db/history.py", line 56, in name return self._item.getRPMItem().getName() AttributeError: 'NoneType' object has no attribute 'getName' 3. Actual results: g-io-error-quark: GDBus.Error:org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last): File "/usr/lib64/python3.7/site-packages/dbus/service.py", line 707, in _message_cb retval = candidate_method(self, *args, **keywords) File "/usr/lib/python3.7/site-packages/dnfdaemon/server/__init__.py", line 68, in newFunc rc = func(*args, **kwargs) File "/usr/share/dnfdaemon/dnfdaemon-system", line 291, in GetHistoryPackages value = self.get_history_transaction_pkgs(tid) File "/usr/lib/python3.7/site-packages/dnfdaemon/server/__init__.py", line 684, in get_history_transaction_pkgs pkg_id = self._get_id(pkg) File "/usr/lib/python3.7/site-packages/dnfdaemon/server/__init__.py", line 1017, in _get_id values = [pkg.name, str(pkg.epoch), pkg.version, pkg.release, pkg.arch] File "/usr/lib/python3.7/site-packages/dnf/db/history.py", line 56, in name return self._item.getRPMItem().getName() AttributeError: 'NoneType' object has no attribute 'getName' Expected results: rollback dnf action Additional info:
Please could you provide version of dnf, and libdnf?
dnf --version 4.2.2 已安装: dnf-0:4.2.2-2.fc30.noarch 在 2019年05月01日 星期三 10时14分21秒 构建 :Fedora Project 在 2019年04月05日 星期五 11时32分21秒 已安装: rpm-0:4.14.2.1-4.fc30.1.x86_64 在 2019年05月01日 星期三 09时49分52秒 构建 :Fedora Project 在 2019年02月02日 星期六 18时46分11秒
when on rollback id(dnf groupinstall ...)
From Traceback in Comment 0 it is possible to see that dnf was called from dnfdeamon. I suggest that the history undo was called from dnfdragora. The problem is that dnf still not provides API to work with history database.
This message is a reminder that Fedora 30 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 30 on 2020-05-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 '30'. 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 30 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 33 development cycle. Changing version to 33.
The following changes should fix this bug, because they introduce comps support into dnf history. Lack of this support most likely caused the crash. change: https://github.com/rpm-software-management/dnf/pull/1689 tests: https://github.com/rpm-software-management/ci-dnf-stack/pull/916
FEDORA-2021-4935120076 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4935120076
FEDORA-2021-be78216a31 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-be78216a31
FEDORA-2021-be78216a31 has been pushed to the Fedora 32 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-be78216a31` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-be78216a31 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-4935120076 has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-4935120076` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4935120076 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-4935120076 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-be78216a31 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.