Bug 711135 - [apache] Make sure all the required properties have default values to prevent problems during server upgrade
Summary: [apache] Make sure all the required properties have default values to prevent...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.1
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: jon3
TreeView+ depends on / blocked
 
Reported: 2011-06-06 16:05 UTC by Lukas Krejci
Modified: 2012-02-07 19:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Lukas Krejci 2011-06-06 16:05:42 UTC
Description of problem:

If there is a new property in the plugin or resource configuration, it is required to provide a default value in the plugin descriptor otherwise the upgrade of the plugin fails.

I believe that is not the case for all apache plugin properties which can potentially cause problems during upgrade.


Version-Release number of selected component (if applicable):
RHQ 1.3.x to RHQ y

How reproducible:
always

Steps to Reproduce:
1. Inventory some apache instance using RHQ 1.3.1
2. Upgrade the server to RHQ y (where y >= 3), keep the data
  
Actual results:
The upgrade fails

Expected results:
the upgrade succeeds

Additional info:

the workaround is to uninventory the apache instance before the attempt to upgrade

Comment 1 Lukas Krejci 2011-06-21 07:12:12 UTC
This has only been fixed in RHQ 4.1.0-SNAPSHOT so the "y" in the repro-steps needs to be at least that version.

commit c6ebdb696373e10dcfa7ed28eed0e7547efaa615
Author: Lukas Krejci <lkrejci>
Date:   Thu Jun 16 19:31:13 2011 +0200

    BZ 711135 - define defaults to all required properties in the apache plugin configuration so that upgrade of the plugin on the server succeeds.

Comment 2 Sunil Kondkar 2011-06-28 09:10:42 UTC
Inventoried Apache in JON231GA build and verified upgrading to Version: 4.1.0-SNAPSHOT Build Number: c57ee65

The upgrade was successful. Marking as verified.

Comment 3 Mike Foley 2012-02-07 19:30:48 UTC
marking VERIFIED BZs to CLOSED/CURRENTRELEASE

Comment 4 Mike Foley 2012-02-07 19:30:59 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE


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