Bug 711135

Summary: [apache] Make sure all the required properties have default values to prevent problems during server upgrade
Product: [Other] RHQ Project Reporter: Lukas Krejci <lkrejci>
Component: PluginsAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: urgent    
Version: 4.1CC: hrupp, skondkar
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: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 678340    

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