Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1155693

Summary: It is not possible to delete old resource/plugin configuration histories using JBoss ON CLI
Product: [JBoss] JBoss Operations Network Reporter: bkramer <bkramer>
Component: CLIAssignee: Libor Zoubek <lzoubek>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact: Jared MORGAN <jmorgan>
Priority: medium    
Version: JON 3.1.2, JON 3.2, JON 3.2.1, JON 3.2.2, JON 3.2.3CC: loleary, lzoubek, mfoley, miburman, mmurray, myarboro, theute
Target Milestone: ER01   
Target Release: JON 3.3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1192878 (view as bug list) Environment:
Last Closed: 2015-02-27 19:58:26 UTC 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: 1155696    
Bug Blocks: 1192878    

Description bkramer 2014-10-22 16:08:16 UTC
Description of problem:
It is not possible to delete old resource/plugin configuration histories using JBoss ON CLI. The necessary methods required to delete/remove the resource/plugin configuration update history using the remote API are not exposed. Specifically - for resource configuration history:  

    org.rhq.enterprise.server.configuration.ConfigurationManagerLocal.purgeResourceConfigurationUpdates(Subject subject, int[] configurationUpdateIds, boolean purgeInProgress)

and for plugin configuration history:

org.rhq.enterprise.server.configuration.ConfigurationManagerLocal.purgePluginConfigurationUpdates(Subject subject, int[] configurationUpdateIds, boolean purgeInProgress)

Version-Release number of selected component (if applicable):
JBoss ON 3.1.2, 3.2

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Libor Zoubek 2015-01-13 12:34:45 UTC
branch:  master
link:    https://github.com/rhq-project/rhq/commit/63bcf37dd
time:    2015-01-13 13:33:58 +0100
commit:  63bcf37dde9fe980c39d65ab456f8d8987f5aa11
author:  Libor Zoubek - lzoubek
message: Bug 1155693 - It is not possible to delete old resource/plugin
         configuration histories using JBoss ON CLI

         Expose purgePluginConfigurationUpdates and
         purgeResourceConfigurationUpdates to remote API

Comment 4 Libor Zoubek 2015-01-13 12:43:24 UTC
branch:  master
link:    https://github.com/rhq-project/rhq/commit/efc3e7f3b
time:    2015-01-13 13:43:03 +0100
commit:  efc3e7f3bf2c5ce36e0d31ab5d811c7be8a5ccee
author:  Libor Zoubek - lzoubek
message: Bug 1155693 - api-check

Comment 5 Michael Burman 2015-01-15 08:35:17 UTC
Cherry-picked to release/jon3.3.x:

commit 6df16256404398033b74a10710984f27382b7128
Author: Libor Zoubek <lzoubek>
Date:   Tue Jan 13 13:33:08 2015 +0100

    Bug 1155693 - It is not possible to delete old resource/plugin configuration
    histories using JBoss ON CLI
    
    Expose purgePluginConfigurationUpdates and purgeResourceConfigurationUpdates
    to remote API
    
    (cherry picked from commit 63bcf37dde9fe980c39d65ab456f8d8987f5aa11)


Unable to create intentional-changes to jon-repo at the moment (will do later, this will trigger failure for now in API-check).

Comment 7 Simeon Pinder 2015-01-26 08:15:11 UTC
Moving to ON_QA as available for test with the latest 3.3.1.ER01 bits from here:
http://download.devel.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/12/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip

Comment 11 Jared MORGAN 2015-02-16 03:43:29 UTC
I'm running into issues with generating API docs using DocGen. Issue raised to capture this against Productization component. This issue will be done once DocGen issues are sorted.

Cloning into docs component so I don't lose it.