Bug 1011095 - Give created resources the name supplied by the user even if the managed object has no "name" attribute
Summary: Give created resources the name supplied by the user even if the managed obje...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugin Container
Version: 4.9
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: RHQ 4.10
Assignee: Thomas Segismont
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-23 15:29 UTC by Thomas Segismont
Modified: 2014-04-23 12:30 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-23 12:30:18 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 886119 0 unspecified CLOSED JON is using JNDI when referring to child Datasource resource instead of specified Resource name 2021-02-22 00:41:40 UTC

Internal Links: 886119

Description Thomas Segismont 2013-09-23 15:29:56 UTC
This bug follows BZ886119 - "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 lookup 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.

Comment 1 Thomas Segismont 2013-10-21 09:16:21 UTC
Fixed in master

commit 7652569a57e633470fa325470533aa35769fbeda
Author: Thomas Segismont <tsegismo>
Date:   Thu Oct 17 12:32:36 2013 +0200
    
Made ResourceFactoryServerService#completeCreateResource synchronous
    
When merging inventory report, look for a CreateResourceHistory entity if merging a creatable resource.
If it exists, use the user supplied resource name.
    
Remove unused code in ResourceFactoryManagerBean
    
Added integration test

Comment 2 Thomas Segismont 2013-10-30 14:42:39 UTC
Additional commit in master

commit 3cee61d26c5151750a727502fd5c95c4bf715a18
Author: Thomas Segismont <tsegismo>
Date:   Wed Oct 30 15:34:28 2013 +0100

Revert "Bug 886119 - JON is using JNDI when referring to child Datasource resource instead of specified Resource name"

Comment 3 Heiko W. Rupp 2014-04-23 12:30:18 UTC
Bulk closing of 4.10 issues.

If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10.


Note You need to log in before you can comment on or make changes to this bug.