Bug 949557

Summary: ovirt-engine-webadmin-portal : user who added external events does not appear in UI
Product: Red Hat Enterprise Virtualization Manager Reporter: Oded Ramraz <oramraz>
Component: ovirt-engineAssignee: Eli Mesika <emesika>
Status: CLOSED UPSTREAM QA Contact: movciari
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bazulay, ecohen, emesika, iheim, jkt, lpeer, pstehlik, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-03 06:12:51 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:
Attachments:
Description Flags
screen shot none

Description Oded Ramraz 2013-04-08 13:33:33 UTC
Description of problem:

 user who added external events does not appear in UI , although the information exists in DB ( see attached picture )


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

[RHEVM shell (connected)]# add event --custom_id 10000 --origin "newvirt" --severity "error" --description "test5" --user-id fdfc627c-d875-11e0-90f0-83df133b58cc

id         : 41711
description: test5
code       : 9803
custom_id  : 10000
flood_rate : 30
origin     : newvirt
severity   : error
time       : 2013-04-08T16:25:49.988+03:00
user-id    : fdfc627c-d875-11e0-90f0-83df133b58cc

[RHEVM shell (connected)]# 
[RHEVM shell (connected)]# 
[RHEVM shell (connected)]# list events --query "custom_event_id=10000"

id         : 41711
description: test5

[RHEVM shell (connected)]# list events --query "custom_event_id=10000" --show-all 

id         : 41711
description: test5
code       : 9803
custom_id  : 10000
flood_rate : 30
origin     : newvirt
severity   : error
time       : 2013-04-08T16:25:49.988+03:00
user-id    : fdfc627c-d875-11e0-90f0-83df133b58cc

Comment 1 Oded Ramraz 2013-04-08 13:39:09 UTC
Created attachment 732676 [details]
screen shot

Comment 2 Einav Cohen 2013-05-10 19:38:47 UTC
[the external events feature is within 'infra' team responsibility - moving to 'infra']

AFAIK - the DB field shown in the GUI for the Event's "User" column is "user_name". I assume that the external event that has been added has an empty "user_name" field in the DB

I assume that the problem is either the external event has been added with user-id but without user-name, or that the add-event function that accepts user-id as a parameter doesn't add the relevant user-name associated with that user-id to the record in the 'audit_log' db table.

@Eli - thoughts?

Comment 3 Eli Mesika 2013-08-28 15:06:49 UTC
fixed in commit: f003827