Bug 869660

Summary: After logging out, User <UNKNOWN> is shown in events for async tasks
Product: Red Hat Enterprise Virtualization Manager Reporter: Jakub Libosvar <jlibosva>
Component: ovirt-engineAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: Leonid Natapov <lnatapov>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: abaron, bazulay, dyasny, hateya, iheim, lpeer, mlipchuk, Rhev-m-bugs, sgrinber, yeylon, ykaul, yzaslavs
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: infra
Fixed In Version: sf7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 915537    
Attachments:
Description Flags
engine log none

Comment 1 Jakub Libosvar 2012-10-24 13:53:20 UTC
Created attachment 632810 [details]
engine log

Comment 2 Maor 2012-10-28 15:13:39 UTC
I think you forgot to mention that the user must be logged out from the web admin before the task was finished.
is that was the case?

Comment 3 Jakub Libosvar 2012-10-29 07:37:16 UTC
I didn't use webadmin at all, it was done via API. So basically yes, user wasn't logged in.

Comment 4 Asaf Shakarchi 2012-12-03 16:37:17 UTC
This is a more general infra problem  rather than a specific issue, so this BZ is just an example of a more general problem,

This is a long invocation and involves creation of async tasks,
The problem is that async tasks 'loose' the context of the user,

In the infra level there should be a support for preserving user context.

Comment 6 Barak 2013-01-01 15:03:57 UTC
It looks like the user in the event is taken at the end of the command execution, hence the session does not exist and user = UNKNOWN

Eli suggested to add the user to the command base.

In this case this should be an easy fix.

Comment 7 Ravi Nori 2013-01-10 21:15:03 UTC
link : http://gerrit.ovirt.org/#/c/10896/

change id : Ic0904f9f6d9432ecac1cebee3790eae902a1329a

Comment 9 Leonid Natapov 2013-03-04 15:01:00 UTC
sf9. fixed. shows the user instead of UNKNOWN.

Comment 10 Itamar Heim 2013-06-11 08:49:46 UTC
3.2 has been released

Comment 11 Itamar Heim 2013-06-11 08:49:58 UTC
3.2 has been released

Comment 12 Itamar Heim 2013-06-11 08:49:58 UTC
3.2 has been released

Comment 13 Itamar Heim 2013-06-11 08:54:18 UTC
3.2 has been released

Comment 14 Itamar Heim 2013-06-11 09:24:50 UTC
3.2 has been released