Bug 1119802 - RFE: Support for resource type name change
Summary: RFE: Support for resource type name change
Keywords:
Status: ON_DEV
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.12
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-15 14:39 UTC by Libor Zoubek
Modified: 2022-03-31 04:27 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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"


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