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

(edit)
Clone Of:
(edit)
Last Closed:


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.