Bug 684776 - RHEVM Backend: Cannot perform search queries for objects which has been removed
Summary: RHEVM Backend: Cannot perform search queries for objects which has been removed
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: lpeer
QA Contact:
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-14 13:37 UTC by Oded Ramraz
Modified: 2012-12-11 06:41 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-11 06:41:02 UTC
oVirt Team: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.