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.
*** Bug 511893 has been marked as a duplicate of this bug. ***
*** Bug 495596 has been marked as a duplicate of this bug. ***
The rapid deletion policy is in as of (actually some time before) revision 4102.
How can I verify this?
This bug was a development placeholder. For purposes of verification, let's redefine it to "Eliminate stale data".
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.
Verified on cumin-0.1.4219-1.el5 using the steps
described in Comment #5.