Description of problem: Reinstall host (in maintenence mode) does not work after the host was freshly upgraded to Fedora 22. Failed to install host <hostname>. Failed to execute stage 'Environment setup': 'NoneType' object has no attribute 'tid'. in minidnf.py, beginTransaction(): >> self._baseTransaction = self._base.history.last().tid # dnf history Last metadata expiration check performed 0:22:33 ago on Sat Nov 7 08:06:56 2015. No transactions Error: Failed history list Version-Release number of selected component (if applicable): ovirt-host-deploy-1.4.0-1.el7.centos.noarch How reproducible: Fails continuously until workaround applied. See below. Steps to Reproduce: 1. yum upgrade from earlier Fedora to Fedora 22 2. from ovirt Manager, reinstall host 3. Actual results: As indicated above, host install failed "Environment Setup" stage. Expected results: Reinstall should complete successfully. Additional info: I traced through to find that otopi minidnf module was unable to deal gracefully without any DNF history. I installed any package to cause some DNF history to exist, after which the host re-install completed successfully.
As you can see, this is dnf issue. --- # dnf history Last metadata expiration check performed 0:22:33 ago on Sat Nov 7 08:06:56 2015. No transactions Error: Failed history list --- If empty history is a valid state it should not be an error, and it should return valid base.history.last().tid We cannot workaround this, I hope they will fix it. Workaround is to install/remove something to have anything in history to enable rollback.
Ian - is there a bug on DNF to fix this?
Yaniv, I have no idea about a bug filed against DNF. I just reported the original bug against otopi.
Ian - I'd be happy if you could report it against DNF (on Fedora 23?). Regretfully, I cannot move it to Fedora as it is a different classification in Bugzilla. I'd quote https://bugzilla.redhat.com/show_bug.cgi?id=1279051#c1 when reporting the issue.
Entered a bug against DNF: https://bugzilla.redhat.com/show_bug.cgi?id=1291895