Bug 1092609

Summary: Searching for objects that _do not_ have a tag in the search bar is not possible
Product: Red Hat Enterprise Virtualization Manager Reporter: Julio Entrena Perez <jentrena>
Component: ovirt-engine-webadmin-portalAssignee: Eli Mesika <emesika>
Status: CLOSED ERRATA QA Contact: Petr Matyáš <pmatyas>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: aberezin, bazulay, ecohen, flo_bugzilla, gklein, iheim, jentrena, juwu, oourfali, pspacek, rbalakri, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: All   
OS: Linux   
Whiteboard: infra
Fixed In Version: ovirt-engine-3.5.0_beta Doc Type: Enhancement
Doc Text:
With this feature, users can now search for objects that have tags or objects that do not have tags.
Story Points: ---
Clone Of:
: 1205149 (view as bug list) Environment:
Last Closed: 2015-02-11 18:00:53 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:
Bug Depends On:    
Bug Blocks: 1142923, 1156165    
Attachments:
Description Flags
screenshot showing that this is an unsupported operation none

Description Julio Entrena Perez 2014-04-29 14:50:06 UTC
Description of problem:
While searching for objects that do have a specific tag in the search bar is possible (e.g. "Vms: tag = tag1") searching for objects that do not have a tag is not possible (e.g. "Vms: tag != tag1" returns nothing).

Version-Release number of selected component (if applicable):
rhevm-webadmin-portal-3.3.2-0.50.el6ev

How reproducible:
Always

Steps to Reproduce:
1. Create two tags "tag1" and "tag2".
2. Assign "tag1" to vm1 and "tag2" to vm2.
3. Search for "Vms: tag != tag1" in the search bar.

Actual results:
Nothing is displayed.

Expected results:
At least vm2 is displayed.

Additional info:
Searching with != operator is possible for other properties such as Name (e.g. "Vms: name != vm1").

Comment 1 Eli Mesika 2014-05-20 07:39:46 UTC
Created attachment 897468 [details]
screenshot showing that this is an unsupported operation

Comment 2 Eli Mesika 2014-05-20 07:41:42 UTC
Please note that this operation is not supported currently as shown in the attached screen shot.
If you think that this is a mandatory operation, you should open a RFE

Comment 3 Julio Entrena Perez 2014-05-20 08:56:38 UTC
(In reply to Eli Mesika from comment #2)
> Please note that this operation is not supported currently as shown in the
> attached screen shot.
> If you think that this is a mandatory operation, you should open a RFE

As per "F.3.6. Searching for Objects Using Tags" section of the Administration Guide:

https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.3/html/Administration_Guide/To_search_for_objects_using_tags.html

<quote>
See Also:

    Section F.1, “Search” 
</quote>

As per table "Table F.3. Example Search Criteria" in section "F.1.5. Search Criteria":

https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.3/html/Administration_Guide/appe-Using_Search_Bookmarks_and_Tags_to_Find_Your_Way_Around.html#Search_criteria

<quote>
operator 	Comparison operators. 	
=
!= (not equal)
>
<
>=
<=
	-- 	Value options depend on obj-type. 
</quote>

Please fix the search or fix the documentation.

Comment 5 errata-xmlrpc 2015-02-11 18:00:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0158.html