Bug 1433445 - Skipped host update check due to unsupported host status is not logged in audit_log
Summary: Skipped host update check due to unsupported host status is not logged in aud...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Infra
Version: 4.1.1.5
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ovirt-4.1.3
: 4.1.3
Assignee: Ravi Nori
QA Contact: Lukas Svaty
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-17 16:23 UTC by Jiri Belka
Modified: 2017-07-06 13:16 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-06 13:16:33 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.1+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 75084 0 master MERGED engine: Add audit log for unsupported status host upgrade check failure 2020-07-24 13:59:04 UTC
oVirt gerrit 76084 0 ovirt-engine-4.1 MERGED engine: Add audit log for unsupported status host upgrade check failure 2020-07-24 13:59:04 UTC

Description Jiri Belka 2017-03-17 16:23:04 UTC
Description of problem:

(a variation of https://bugzilla.redhat.com/show_bug.cgi?id=1343562 ?)

Even I can see in engine.log that host update check is skipped do to unsupported host status, I was waiting for an event about host update check end... nothing happens, it is not logged into audit_log:

          151 | 0000001a-001a-001a-001a-00000000011d | admin@internal-authz | 00000000-0000-0000-0000-000000000000 |         |                |                  | 5f32395f-d5c8-4932-8a6b-1e03452f9a6d | dell-r210i
i-04 | 2017-03-17 17:10:49.802+01    | HOST_AVAILABLE_UPDATES_STARTED                       |      884 |        0 | Started to check for available updates on host dell-r210ii-04.                                  
                                                                                                 | f         |                                      |                   |                   |                     | 
00000002-0002-0002-0002-00000000020e | Default      | b728d6c1-0504-48ff-bfbd-d0c312f3c855 |                                      |          |            | 00000000-0000-0000-0000-000000000000 |                  
   | oVirt  |              -1 |                 30 |             | f       |                                                                                                                                       |
          | 
(151 rows)

2017-03-17 17:10:49,673+01 INFO  [org.ovirt.engine.core.bll.hostdeploy.HostUpgradeCheckCommand] (default task-28) [b728d6c1-0504-48ff-bfbd-d0c312f3c855] Running command: HostUpgradeCheckCommand internal: false. Entities affected :  ID: 5f32395f-d5c8-4932-8a6b-1e03452f9a6d Type: VDSAction group EDIT_HOST_CONFIGURATION with role type ADMIN
2017-03-17 17:10:49,842+01 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-28) [] EVENT_ID: HOST_AVAILABLE_UPDATES_STARTED(884), Correlation ID: b728d6c1-0504-48ff-bfbd-d0c312f3c855, Call Stack: null, Custom Event ID: -1, Message: Started to check for available updates on host dell-r210ii-04.
2017-03-17 17:10:49,854+01 INFO  [org.ovirt.engine.core.bll.hostdeploy.HostUpgradeCheckInternalCommand] (pool-5-thread-4) [51d0c273] Running command: HostUpgradeCheckInternalCommand internal: true. Entities affected :  ID: 5f32395f-d5c8-4932-8a6b-1e03452f9a6d Type: VDS
2017-03-17 17:10:49,857+01 WARN  [org.ovirt.engine.core.bll.hostdeploy.HostUpdatesChecker] (pool-5-thread-4) [51d0c273] Check for available updates is skipped for host 'dell-r210ii-04' due to unsupported host status 'InstallFailed' 
^C

It should be in the DB and Events for host.

Version-Release number of selected component (if applicable):
ovirt-engine-4.1.1.5-0.1.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1. have a host in install failed status
2. run check for upgrade on that host
3. 

Actual results:
skipped host update check is not logged in audit_log and thus admin cannot see anything about this in events

Expected results:
should be present or drop this check for this status?

Additional info:

Comment 2 Lukas Svaty 2017-06-05 15:44:47 UTC
verified in ovirt-engine-4.1.3.1-0.1.el7.noarch

Logged messages:
         1704 | Started to check for available updates on host host01.
         1705 | Failed to check for available updates on host host01: Unsupported host status.


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