Bug 1003804

Summary: [rhevm] Webadmin - Events - Search box with value "Events: Templates.os =anything" doesnt filter (Shows all events)
Product: Red Hat Enterprise Virtualization Manager Reporter: David Botzer <dbotzer>
Component: ovirt-engine-webadmin-portalAssignee: Roy Golan <rgolan>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: aberezin, acathrow, bazulay, ecohen, iheim, mavital, michal.skrivanek, ofrenkel, pstehlik, Rhev-m-bugs, srevivo, yeylon
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: is25 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: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1019461, 1038284    
Attachments:
Description Flags
anything.goes none

Description David Botzer 2013-09-03 09:17:36 UTC
Created attachment 793077 [details]
anything.goes

Description of problem:
[rhevm] Webadmin - Events - Search box with value
"Events: Templates.os =anything" doesnt filter the events (Shows all events)

Version-Release number of selected component (if applicable):
3.3/is12
rhevm-3.3.0-0.18.master.el6ev.noarch

How reproducible:
always

Steps to Reproduce:
1.Select Events Tab
2.In Search Box type - Events: Templates.os=anything

Actual results:
Search doesnt filter any messages/events

Expected results:
Should display only Templates.os=anything

Additional info:
pic

Comment 1 David Botzer 2013-09-10 10:41:12 UTC
This issue with .os: is general, not only Events:
Another example: 
Vms:os !=R* shows all (where some VMs have "Red hat" .... os name)
and Vms:os =R* shows None

nother example:
Doesnt work for Blank Template which its "Other OS" -- Vms: Templates.os =O*_

Comment 2 Omer Frenkel 2013-09-10 12:08:15 UTC
before latest changes os types (os repository), os search was not free text, but selecting from a list of supported values.
i guess this should be the behavior.

Comment 4 Pavel Novotny 2013-11-11 18:45:36 UTC
FailedQA in rhevm-3.3.0-0.32.beta1.el6ev.noarch (is22).

The search engine now correctly filters events in the case a non-existing VM/template OS type is given (for example "Events: Templates.os=anything"), no events are shown.

However, I found inconsistency in searching VMs/templates/events according to OS type values offered by the auto-completer:
* query "Vms: os = rhel_5x64" returns only VMs with RHEL5 32b OS type, VMs with RHEL5x64 are ignored
* queries "Vms: os = windows_2008" and "Vms: os = windows_2008x64" return only VMs with OS "Windows 2008", VMs with OS "Windows 2008 x64" are ignored; the same for Windows 2003 and Windows 7 (but not Windows 8)
* VM with "Other OS" can be found via two different OS types in the query - "Vms: os = other" or "Vms: os = other_linux"
* "Linux" OS type is missing the opposite parameter in the search query (there is no "Vms: os = linux"; or maybe it should match to "other_linux"?)

Comment 5 Pavel Novotny 2013-11-20 17:01:24 UTC
FailedQA in rhevm-3.3.0-0.35.beta1.el6ev.noarch (is24).

Defects in searching from comment 4 are fixed, however one search query still doesn't work. For VM OS type "Windows 2008 R2 x64" the query "Vms: os = windows_2008R2x64" returns nothing (the same applies for templates and events). 
Searching according to all other OS types works correctly.

Comment 6 Pavel Novotny 2013-11-27 17:43:54 UTC
Verified in rhevm-3.3.0-0.37.beta1.el6ev.noarch (is25).

Searching VMs according their OS types works correctly. Verified with Linux, Other OS, RHEL, SUSE, Ubuntu and Windows VMs. Per comment 5 - searching a Windows 2008 R2 x64 VM works also well.

Comment 8 Itamar Heim 2014-01-21 22:23:15 UTC
Closing - RHEV 3.3 Released

Comment 9 Itamar Heim 2014-01-21 22:24:21 UTC
Closing - RHEV 3.3 Released

Comment 10 Itamar Heim 2014-01-21 22:27:59 UTC
Closing - RHEV 3.3 Released