Bug 1017030

Summary: [Admin Portal] User $user@$domain attach to VM <UNKNOWN> in VM Pool test was initiated by $user.
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engine-webadmin-portalAssignee: Shahar Havivi <shavivi>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: ecohen, iheim, mavital, michal.skrivanek, rbalakri, Rhev-m-bugs, sherold, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: vt2.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-17 08:28:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1121954    
Bug Blocks: 1142923, 1156165    
Attachments:
Description Flags
engine.log none

Description Jiri Belka 2013-10-09 07:50:14 UTC
Created attachment 809731 [details]
engine.log

Description of problem:

User vdcadmin.lab.eng.brq.redhat.com attach to VM <UNKNOWN> in VM Pool test was initiated by vdcadmin.

* 'attach' vs 'attaches/attached' or...??? I'm not native English speaker but seems strange completely, please consult with native English speaker.

* <UNKNOWN> ? (test-X was the case here)

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

How reproducible:
100%

Steps to Reproduce:
1. create a automatic prestarted pool (6 vms, 3 prestarted, 6 max per user)
2. in User Portal click 3 times on pool's "Run" button to get 3 VMs from pool
3.

Actual results:
event is strange

Expected results:


Additional info:

Comment 1 Shahar Havivi 2014-05-15 11:44:04 UTC
Cannot reproduce the <UNKNOWN> user (we fix several of bugs regarding this issue).
regarding the error message, I found a couple of other messages that need to be fix, so the following patch will fix this 3 audit log messages:

-User ${AdUserName} attach to VM ${VmName} in VM Pool ${VmPoolName} was initiated by ${UserName}.
-User ${AdUserName} attach to VM ${VmName} in VM Pool ${VmPoolName} has been completed.
-Failed to complete user ${AdUserName} attach to VM ${VmName} in VM Pool ${VmPoolName}.
+Attaching User ${AdUserName} to VM ${VmName} in VM Pool ${VmPoolName} was initiated by ${UserName}.
+User ${AdUserName} successfully attached to VM ${VmName} in VM Pool ${VmPoolName}.
+Failed to attach user ${AdUserName} to VM ${VmName} in VM Pool ${VmPoolName}.

Comment 2 Pavel Novotny 2014-08-13 14:29:11 UTC
FailedQA in ovirt-engine-3.5.0-0.0.master.20140804172041.git23b558e.el6.noarch (rc1).

The grammar has been corrected, but the VM name the user is attached to is still '<UNKNOWN>'.

The event is now:

"Attaching User user1 to VM <UNKNOWN> in VM Pool disk-vm was initiated by user1."

but should be like:

"Attaching User user1 to VM disk-vm-1 in VM Pool disk-vm was initiated by user1."

Comment 4 Pavel Novotny 2014-09-12 12:29:42 UTC
Verified in rhevm-3.5.0-0.11.beta.el6ev.noarch (vt3).

In User Portal, when user "user1" takes a VM from prestarted pool, the emitted event is now correct, e.g.:

  Attaching User user1 to VM win7-3 in VM Pool win7 was initiated by user1.

Comment 5 Omer Frenkel 2015-02-17 08:28:09 UTC
RHEV-M 3.5.0 has been released