Bug 1119802

Summary: RFE: Support for resource type name change
Product: [Other] RHQ Project Reporter: Libor Zoubek <lzoubek>
Component: PluginsAssignee: Nobody <nobody>
Status: ON_DEV --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.12CC: hrupp, jshaughn, theute
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Libor Zoubek 2014-07-15 14:39:53 UTC
Description of problem:

Currently we don't support resource name change. When plugin writer decides to rename his resource type, server hanldes it wrong way - it understands it as resource type deletion and addition - so at first it uninventories all resources of the missing type and later on resources of new type get discovered. all metrics and history data are lost.

We need to support type name change. It would be enought if we introduce attribute 'originalName' in plugin descriptor. On server, when deploying new version of plugin .. this attribute can be used to match existing resource types.


Version-Release number of selected component (if applicable):
RHQ 4.12

Comment 1 Jay Shaughnessy 2014-07-16 00:26:42 UTC
You may need to make that 'originalName' attribute allow for several names, so that you can change it more than once ans successfully upgrade from different versions. I'm not sure but maybe something like:
 
 previousNames="previousName1|previousName2"