I'm seeing a massive amount of these warnings when installing selinux-policy-devel on RHEL 8: > 2021-05-24 17:08:15,854: Warning: Unknown transaction action 7 > 2021-05-24 17:08:15,854: Warning: Unknown transaction action 7 > 2021-05-24 17:08:15,854: Warning: Unknown transaction action 7 > 2021-05-24 17:08:15,855: Warning: Unknown transaction action 7 > 2021-05-24 17:08:15,855: Warning: Unknown transaction action 7 I have not dug out what action 7 is, but we really don't want all of this spam in the log.
Apparently there has been some confusion around the exported callback constants in the Python API: https://bugzilla.redhat.com/show_bug.cgi?id=1630113 7 is PKG_UPGRADED, but there seems to be others we don't handle as well. The trigger seems to be an upgrade of DNF from 2 to 3, which might explain why we didn't notice this when we wrote the code.
The issue seems to be that dnf has added special action types for the cleanup stages. Previously they would always be tagged as being "removed", but now they get more specific tags such as being "upgraded", or "reinstalled", or "obsoleted".
Works well now. Instead of the unknown action I get a cleanup notice. Note that it might not be possible to test anything other than an upgrade. I'm not sure there are any circumstances where the other actions are triggered by tl-setup.
I could reproduce on RHEL 8 and tl-4.12.1. When upgrading to build 2101, the warning is indeed gone. Only tested when a package needed upgrading as mentioned in comment 5.