On-Demand Service Discovery Scans

Stefan Negrea snegrea at redhat.com
Mon Aug 6 16:04:33 UTC 2012


Hello Everybody, 

I created a branch with code changes to allow on-demand inventory scans for children of a given resource (via the resource context). A good use case is the AS7 plugin operation to install the management user. Without this change, the server would become available but sub-resources might not get discovered for up to 24 hours (when the next discover scan runs). The code changes are minimal, all what I did is to expose existing inventory manager API in the resource context. So now it is possible to run a deferred service discovery scan for children of a resource via the resource context. The most important change is in InventoryManager class. I tested the change it works as expected with the AS7 plugin.

I would appreciate a code review before I merge the change in master.

BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=828329

Commit:
http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?h=stefan/inventorycontext&id=816622e43c88c3b2bf751c1e2d9682d64556fdbb

Branch:
http://git.fedorahosted.org/cgit/rhq/rhq.git/log/?h=stefan/inventorycontext



Thank you,
Stefan Negrea

Software Engineer



More information about the rhq-devel mailing list