Bug 2001944

Summary: Always log exception message which is raised during inserting into audit_log
Product: Red Hat Enterprise Virtualization Manager Reporter: Martin Perina <mperina>
Component: ovirt-engineAssignee: Martin Perina <mperina>
Status: CLOSED ERRATA QA Contact: Guilherme Santos <gdeolive>
Severity: low Docs Contact:
Priority: medium    
Version: 4.4.7CC: dfodor, gdeolive, mavital
Target Milestone: ovirt-4.4.9   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:46:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Perina 2021-09-07 14:00:12 UTC
Following error appears in the logs:

2021-09-06 03:36:01,832+02 ERROR [org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand] (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-18) [0599d9ed-a6bf-4843-9fd9-f72aee459d75] Error during log command: org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand. Exception null

We need to extract relevant exception message from encapsulated exception, so we know what happened.

Comment 2 Guilherme Santos 2021-10-25 11:18:36 UTC
Verified on:
ovirt-engine-4.4.9-0.6.el8ev.noarch

Steps:
1. # cd /var/log/ovirt-engine/ && gzip -d engine.log-*
2. # grep -r 'Error during log command'
(...)
engine.log-20211022:2021-10-18 03:35:44,980+03 ERROR [org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand] (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-91) [b1a48977-973b-4283-a952-c1207afef0bd] Error during log command: org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand: 'NullPointerException: '
(...)

Results:
Error log from encapsulated exception showing and following new pattern.

Comment 6 errata-xmlrpc 2021-11-16 14:46:57 UTC
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 (Moderate: RHV Manager (ovirt-engine) security update [ovirt-4.4.9]), 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/RHSA-2021:4626

Comment 7 meital avital 2022-07-20 08:37:43 UTC
Due to QE capacity we are not going to cover this issue in our automation