Bug 2001944 - Always log exception message which is raised during inserting into audit_log
Summary: Always log exception message which is raised during inserting into audit_log
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.4.7
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ovirt-4.4.9
: ---
Assignee: Martin Perina
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-07 14:00 UTC by Martin Perina
Modified: 2024-12-20 20:57 UTC (History)
3 users (show)

Fixed In Version: ovirt-engine-4.4.9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:46:57 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-43399 0 None None None 2021-09-07 14:03:48 UTC
Red Hat Product Errata RHSA-2021:4626 0 None None None 2021-11-16 14:47:07 UTC
oVirt gerrit 116586 0 master MERGED core: Adds unit tests for logging content in CommandBase 2021-09-09 12:00:44 UTC
oVirt gerrit 116587 0 master MERGED core: Log proper exception message in CommandBase 2021-09-09 12:00:46 UTC
oVirt gerrit 116684 0 ovirt-engine-4.4 MERGED core: Adds unit tests for logging content in CommandBase 2021-09-14 10:38:43 UTC
oVirt gerrit 116685 0 ovirt-engine-4.4 MERGED core: Log proper exception message in CommandBase 2021-09-14 10:38:46 UTC

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


Note You need to log in before you can comment on or make changes to this bug.