Bug 684776

Summary: RHEVM Backend: Cannot perform search queries for objects which has been removed
Product: [Retired] oVirt Reporter: Oded Ramraz <oramraz>
Component: ovirt-engine-coreAssignee: lpeer <lpeer>
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, acathrow, iheim, lpeer, Rhev-m-bugs, sgrinber, yeylon, ykaul
Target Milestone: ---Keywords: FutureFeature, Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-11 06:41:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Oded Ramraz 2011-03-14 13:37:38 UTC
Description of problem:

We added events verification for our automatic tests.
We have the following scenario:
1.Add cluster ( or any other object )
2.Search for proper event
3.Remove cluster 
4.Search for proper event 
Stage 4 always fails .
I performed the search manually and i noticed that search queries for non existing objects always fails.
For example: Events:cluster.name="doesnotexist"
I can see those events under the events tab but the queries always fails. 


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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Oded Ramraz 2011-03-14 13:42:46 UTC
Clarification: By non existing objects i mean existing objects which were removed. Those events appear under the events tab but the objects does not exist anymore.

Comment 2 lpeer 2011-03-14 15:36:15 UTC
you can not look for events on objects that are not in the DB any-more.
RHEVM needs to retrieve their Id (name is not enough) and they are not in the db.

You need to use History Db for that.

Comment 3 Oded Ramraz 2011-03-14 15:44:54 UTC
Can't you search the events by name when object.name is passed explicitly?
It sounds more logical to do it.

Comment 4 lpeer 2011-03-14 15:51:40 UTC
I think that why we have history DB.
IMO we do not want to support search for events on deleted object.

Comment 5 Oded Ramraz 2011-03-14 15:57:58 UTC
This would be very useful feature. especially for debug purposes.
It is much easier to perform a search query instead of using the history DB.

Comment 11 Oded Ramraz 2011-11-30 08:29:25 UTC
Quite important IMO , We need it for our automation tests too.

Comment 13 Itamar Heim 2012-05-09 07:42:56 UTC
does correlation id resolves this?

Comment 14 Itamar Heim 2012-12-11 06:41:02 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.