Bug 1093822
Summary: | RFE (offshot of JON3-42) : Allow automatic uninventory of dead / missing / removed resources | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Jay Shaughnessy <jshaughn> | ||||||
Component: | Core Server | Assignee: | Jay Shaughnessy <jshaughn> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Armine Hovsepyan <ahovsepy> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | JON 3.2 | CC: | ahovsepy, genman, hrupp, loleary, mfoley | ||||||
Target Milestone: | DR01 | ||||||||
Target Release: | JON 3.3.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2014-12-11 14:03:37 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: | |||||||||
Bug Depends On: | 1070326 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Jay Shaughnessy
2014-05-02 18:31:45 UTC
This RFE was the result of discussion in Bug 1070326. *** Bug 871974 has been marked as a duplicate of this bug. *** For review, Pull Request 27: https://github.com/rhq-project/rhq/pull/27 Just as a note, I did implement something similar to DEAD/REMOVED using measurement traits. The removed resource would mark itself as 'disabled'. Automatic removal took place using a CLI script fired from a cron tab. But something similar could also be written as a server plugin. Actually I hope that the removal process is written as a server plugin as it makes it easier to develop and change, if needed. Actually, it's not as a server plugin. It's built into availability report handling. if enabled on the type the DEAD resources are immediately uninventoried using the standard uninventory code, otherwise the avail is downgraded to DOWN. The benefit here is that we never have to maintain a server-side resource with any flag or special state, and we don't have any special "reaper" code. The downside is that it precludes any ability to inspect or specially process the dead resources. But that wasn't really the point. The mechanism is dedicated to removing nuisance resources. Merged into Master: commit c52f35cea19db3b0b5cb3754b91464380fbdde1d Author: Jay Shaughnessy <jshaughn> Date: Fri May 2 15:13:28 2014 -0400 Initial commit for consideration. Plugin components can now report DEAD availability for resources that seem physically removed from the system. DEAD resources can then be configured for automatic uninventory via a new Admin GUI view. commit 78df7de3618ac64f5e7595d54fa1ad30121e4f36 Author: Jay Shaughnessy <jshaughn> Date: Tue May 6 10:57:03 2014 -0400 Changing "DEAD" to "MISSING" in response to terminology feedback. commit d039b7ea8a84fa800523fd602e076d0ef0e49561 Author: Jay Shaughnessy <jshaughn> Date: Tue May 6 13:19:32 2014 -0400 Fix a few merge issues. i am going to set this back to assigned. the exit criteria for JON RFEs is a developer demo (with QE, GSS, and PM invited) After the feature review there were a variety of requested improvements, this commit satisfies those requests. commit 4790e9f07e82fd56e976758fb91e58752d3ef318 Author: Jay Shaughnessy <jshaughn> Date: Fri May 23 14:58:31 2014 -0400 Incorporate review feedback: - add plugin-descriptor flag for types supporting the MISSING avail type - use that flag to disable non-supporting types in the admin view for setting the policy. - add ability to automatically ignore missing resources, in addition to the initial commit which provided automatic uninventory. - lots of end-to-end changes to support the new MissingPolicy setting. Moving to ON_QA as available to test with brew build of DR01: https://brewweb.devel.redhat.com//buildinfo?buildID=373993 Created attachment 924254 [details]
old-version
Created attachment 924255 [details]
new-version
missing resource is un-inventoried or ignored. Keeping the issue as a main BZ for #1070326 and it's dependent bugs. tcms testcase run https://tcms.engineering.redhat.com/run/152183/?from_plan=14082 this testcase run shows 4 failed tests. bzs were logged for those 4 failed tests. those bzs were fixed/closed. ergo, this umbrella issue is "test complete" |