Bug 595774

Summary: Settle on a solution for transient object deletes
Product: Red Hat Enterprise MRG Reporter: Justin Ross <jross>
Component: cuminAssignee: Justin Ross <jross>
Status: CLOSED ERRATA QA Contact: Jan Sarenik <jsarenik>
Severity: medium Docs Contact:
Priority: high    
Version: DevelopmentCC: jsarenik
Target Milestone: 1.3   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 595746    

Description Justin Ross 2010-05-25 15:16:51 UTC
We've had trouble in the past with stale data sticking in the console.  Our plan for handling this is to aggressively delete data from transient objects when agents fall out of contact, with the expectation that they will not come back.

This would be a safe assumption were it not for some constraints on the agent side, where sometimes an object that would normally be durable (is conceptually durable) is made transient instead because the agent cannot guarantee that the object will return with the same identity after an agent restart.

In the past we've handled this by having a relatively long timeout for transient object deletes.

We're now instead looking into rapid deletes, but with exceptions for certain classes of transient object.

Comment 1 Justin Ross 2010-05-25 18:57:17 UTC
*** Bug 511893 has been marked as a duplicate of this bug. ***

Comment 2 Justin Ross 2010-05-25 18:58:25 UTC
*** Bug 495596 has been marked as a duplicate of this bug. ***

Comment 3 Justin Ross 2010-07-12 15:24:08 UTC
The rapid deletion policy is in as of (actually some time before) revision 4102.

Comment 4 Jan Sarenik 2010-09-03 12:24:58 UTC
How can I verify this?

Comment 5 Justin Ross 2010-09-07 19:43:31 UTC
This bug was a development placeholder.  For purposes of verification, let's redefine it to "Eliminate stale data".

To verify:

1. Start cumin and nav to the system listing under the inventory tab
2. Start sesame
3. Wait for the sesame system to appear under the inventory tab
4. Stop sessame
5. Wait for the sesame system to vanish
6. Start sesame
7. Wait for the sesame system to reappear

The "aggressive deletion" referred to in this ticket should happen between steps 4 and 5.

A regression test for this would be a little tricky.  You'd need to use the python db api or psql to monitor the systems inside the cumin database.

Comment 6 Jan Sarenik 2010-09-08 07:05:31 UTC
Verified on cumin-0.1.4219-1.el5 using the steps
described in Comment #5.