+++ This bug was initially created as a clone of Bug #1432127 +++ Description of problem: If some command fails (e.g. UpdateClusterCommand) than the transactions are rolled back. The AuditLogDirector is running in the same transaction so also the logs logged using audit log are rolled back. Steps to Reproduce: 1. use any command which is not managing it's own transactions (e.g. does not have the @NonTransactiveCommandAttribute) 2. log something using AuditLogDirector 3. fail the command using setSucceeded(false); Actual results: all the transactions are rolled back removing also the audit log messages Expected results: the audit log is survives the command failure --- Additional comment from Martin Perina on 2017-03-16 05:18:45 EDT --- Reducing severity as this behaviour is present in the code at least since 3.5 (maybe from beginning) --- Additional comment from Tomas Jelinek on 2017-08-09 04:05:01 EDT --- Any chance to get this to some z-stream? It is really important for the cluster upgrade flows since this is the place we would like to report the reasons for failed update. Without this patch the users need to dig into logs to understand what happened. --- Additional comment from Oved Ourfali on 2017-08-09 04:06:33 EDT --- Makes sense to me. I'll clone it. --- Additional comment from Tomas Jelinek on 2017-08-09 04:09:30 EDT ---
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.
WARN: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason: [Found non-acked flags: '{'rhevm-4.1.z': '?'}', ] For more info please contact: rhv-devops: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason: [Found non-acked flags: '{'rhevm-4.1.z': '?'}', ] For more info please contact: rhv-devops
ok, ovirt-engine-backend-4.1.6.1-0.1.el7.noarch audit_log still works: 2017-09-04 18:29:51.032+02 | User admin@internal-authz is connected to VM jbelka-ngntest1. 2017-09-04 18:29:30.882+02 | User admin@internal-authz initiated console session for VM jbelka-ngntest1
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, 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/RHEA-2017:2749