Bug 1213814

Summary: After upgrade fromRHQ 4.9 to 4.12, some rhq column families are unavailable and compaction operations fail
Product: [Other] RHQ Project Reporter: bkramer <bkramer>
Component: InstallerAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.12CC: hrupp
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: Bug
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: 1213812    

Description bkramer 2015-04-21 11:12:02 UTC
Description of problem:
After upgrade from RHQ 4.9 to 4.12, some rhq column families are unavailable and compaction operations fail

Version-Release number of selected component (if applicable):
RHQ 4.9 upgraded to RHQ 4.12

How reproducible:
Always

Steps to Reproduce:
1. Install RHQ 4.9
2. Schedule `Force Major Column Family Compaction` operation for folders: `metrics_index`, `one_hour_metrics`, `raw_metrics`, `schema_version`, `six_hour_metrics` and `twenty_four_hour_metrics`. 
3. Above operation should be executed now and repeated indefinitely.
4. Confirm that operation is successfully executed in RHQ 4.9
5. Upgrade RHQ 4.9 to RHQ 4.12
6. Wait for the next execution of `Force Major Column Family Compaction` operation that was defined in previous RHQ 4.9

Actual results:

Compaction operation fails with the message:
**************************
The following resources failed to invoke the operation (see group operation history for details) :
 twenty_four_hour_metrics [] FAILURE
 one_hour_metrics [] FAILURE
 six_hour_metrics [] FAILURE
 metrics_index [] FAILURE
**************************

Expected results:

Compaction operation should be successfully executed and column families that are unavailable after the upgrade should be ignored during operation or removed during the upgrade.

Additional info:

As a workaround, remove from the inventory `one_hour_metrics`, `six_hour_metrics`, `twenty_four_hour metrics` and `metrics_index` from ColumnFamilies and create a new compaction operation that will take in account `aggregate_metrics` and `metrics_idx` folders as well.