Bug 949557 - ovirt-engine-webadmin-portal : user who added external events does not appear in UI
Summary: ovirt-engine-webadmin-portal : user who added external events does not appear...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.3.0
Assignee: Eli Mesika
QA Contact: movciari
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-08 13:33 UTC by Oded Ramraz
Modified: 2016-02-10 19:16 UTC (History)
10 users (show)

Fixed In Version: is13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-03 06:12:51 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screen shot (200.00 KB, application/gzip)
2013-04-08 13:39 UTC, Oded Ramraz
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 17924 0 None None None Never

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


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