Bug 1011095 - Give created resources the name supplied by the user even if the managed object has no "name" attribute

Thomas Segismont tsegismo at redhat.com
Mon Sep 23 15:38:37 UTC 2013


Hi everyone,

I've created BZ1011095 [1] - Give created resources the name supplied by 
the user even if the managed object has no "name" attribute

This bug follows BZ886119 [2] - "JON is using JNDI when referring to 
child Datasource resource instead of specified Resource name".

As a reminder, when a created resource is discovered, it is given a name 
by the agent plugin. If the underlying managed object has no "name" 
attribute, the agent plugin gives a name to the resource which is 
completely different than the user supplied name.

The proposal is to maintain a cache of the latest (10 minutes) resource 
creation requests (CreateResourceReport holds the user supplied name), 
and to look-up for an entry in this cache before sending the inventory 
report to the server, in order to update the newly discovered resource 
name, if needed.

The changes are in a bug branch [3] and I'd like to hear your feedback 
(if any) before merging to master.

Thanks,
Thomas

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1011095
[2] https://bugzilla.redhat.com/show_bug.cgi?id=886119
[3] 
https://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?h=bug/1011095&id=3fc3de47912e4ad219850189531812c05392fbdd


More information about the rhq-devel mailing list