Bug 750304 - Drift metadata update has problems
Summary: Drift metadata update has problems
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.2
Hardware: All
OS: All
high
high
Target Milestone: ---
: JON 3.0.0,RHQ 4.3.0
Assignee: Jay Shaughnessy
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: 707225
TreeView+ depends on / blocked
 
Reported: 2011-10-31 16:13 UTC by Jay Shaughnessy
Modified: 2011-11-10 18:35 UTC (History)
1 user (show)

Fixed In Version: 4.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-10 18:35:36 UTC
Embargoed:


Attachments (Terms of Use)

Description Jay Shaughnessy 2011-10-31 16:13:56 UTC
When updating plugins that make changes to the plugin defined drift definitions there are a few issues.

1) If there are user-defined templates they can get removed accidentally

2) If there are attached definitions to the updated templates they can cause FK constraint issues.

3) There is no protection against directory update on an existing template. This can cause issues for pinned templates.

Comment 1 Jay Shaughnessy 2011-11-01 18:22:02 UTC
master         commit eb021c14ddf1f673a500e237c161bf480fc74bb6
release_jon3.x commit 89cb974ef54fd2dcf79a74b6ba466d85c831e657

TEST NOTE:
Testing drift meta-data changes is maybe a little difficult as the easiest
way to do this is to build updated versions of the plugins and then
deploy them to your server.  Still, it's doable by unzipping the
plugin, tweaking the rhq-plugin.xml, rezipping and then dropping into
the rhqserverhome/plugins dir.

See:

http://rhq-project.org/display/RHQ/Drift+Management#DriftManagement-Howtohandlepluginupdatestothedrifttemplates

For expected plugin update behavior.

Comment 2 Mike Foley 2011-11-10 18:35:36 UTC
this is not really something customers do


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