Bug 1115725
Summary: | Operation history continues to grow unbound with no easy way to purge old history | ||
---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Larry O'Leary <loleary> |
Component: | Database, Operations | Assignee: | Jay Shaughnessy <jshaughn> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | JON 3.2 | CC: | jshaughn, loleary, tsegismo |
Target Milestone: | DR01 | ||
Target Release: | JON 3.3.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: |
It is now possible to purge operation history to provide better database performance and reduce table space issues. This feature adds an operation history purge to the data purge job. A new system setting called "Delete Operation History Older Than" is added to Administration > Configuration > System Settings >> Data Manager Configuration Properties. The default for this system setting is 0 days, which means disabled. The db-upgrade adds the new system setting (also set to disabled) to prevent upgrades from automatically forcing an unexpected purge of operation history. Auto-purge and retention configuration was available for alert history and history. However operation history was excluded from these operations. The existing option of going into each resource individually to track down operation history was unacceptable. Customers can now better manage operation history in JBoss ON.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2014-12-11 14:01:07 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Larry O'Leary
2014-07-02 23:18:07 UTC
Looking at this to see if I can understand why we don't have an analogous purge here... The consensus is that operation history amounts to auditing data and the idea of automatically purging audit data seemed like a bad idea. Also, it seemed the chances of the operation history growing large was unlikely. But, many operations don't perform actions that really merit much in the way of auditing and certainly infinite growth can always cause issues. The proposal is to add a purge but to have it disabled by default. Or, a large initial purge age, like 1 year. There is also the operation report view, which does allow a date range filter and a delete button. It would be unwieldly for large removals but does exist today as a way to see/delete operation history cross-resource. A Filter on operationName could be useful here. master commit 37cd10a7edc8e50072dfd7801ab44562b3f0b402 Author: Jay Shaughnessy <jshaughn> Date: Wed Jul 16 12:27:48 2014 -0400 Add operation history purge to the data purge job. A new system setting is added with a default of 0 days, which means disabled. The db-upgrade will add the new setting, also set to 0=disabled so that upgrades don't automatically force an unexpected purge of operation history. Also: - cleaned up some I18N when adding the new properties, removing some duplicates, adding commented, missing translations, etc. Some touched files were only due to some remvals of deuplicate I18N properties. - added DatabaseType.getLimitClause() although in the end I didn't use it. Additional commit in master commit 584e51683a46cac10e417083a543b60b280b7b75 Author: Thomas Segismont <tsegismo> Date: Thu Jul 24 15:44:31 2014 +0200 Fix an issue on Oracle, no ID conversion needed, Hibernate does it Also, some code cleanup (In reply to Thomas Segismont from comment #4) > Additional commit in master > > commit 584e51683a46cac10e417083a543b60b280b7b75 > Author: Thomas Segismont <tsegismo> > Date: Thu Jul 24 15:44:31 2014 +0200 Cherry-picked over to release/jon3.3.x commit c466c9e8910cb1d15132ce28d68f31632bb2b314 Author: Thomas Segismont <tsegismo> Date: Thu Jul 24 15:53:29 2014 +0200 Moving to ON_QA as available to test with brew build of DR01: https://brewweb.devel.redhat.com//buildinfo?buildID=373993 |