Bug 1258873
| Summary: | It is not possible to delete events using RHQ CLI | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | bkramer <bkramer> |
| Component: | CLI | Assignee: | Nobody <nobody> |
| Status: | NEW --- | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.12 | CC: | bkramer, finwemartinez, 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: | 1258870 | ||
I tried on master [1] and it seems that these methods are already exposed on the RHQ CLI. --- $ ./rhq-cli.sh -u rhqadmin -p rhqadmin ./rhq/modules/enterprise/remoting/cli/target/rhq-remoting-cli-4.14.0-SNAPSHOT/bin/.. RHQ Enterprise Remote CLI 4.14.0-SNAPSHOT Logging in with default host: [localhost] Logging in with default port: [7080] Remote server version is: 4.14.0-SNAPSHOT (86bbcd5) Login successful $ ec = EntityContext.forResource(10001); rhqadmin@localhost:7080$ EventManager. deleteEventsForContext findEventsByCriteria getSeverityBuckets getSeverityBucketsForAutoGroup getSeverityBucketsForCompGroup purgeEventsForContext toString rhqadmin@localhost:7080$ EventManager.deleteEventsForContext(ec, int deleteEventsForContext(EntityContext, List) rhqadmin@localhost:7080$ EventManager.purgeEventsForContext(ec) 5 --- Is already fixed or Am I missing something? [1] https://github.com/rhq-project/rhq/tree/86bbcd55209661e48beefc987dc3532142267930 According to https://github.com/rhq-project/rhq/commit/5419181f4 (see: https://bugzilla.redhat.com/show_bug.cgi?id=1258870#c4) - this has been done in RHQ 4.13 - so RHQ 4.14 will contain the change. |
Description of problem: Methods: ** int deleteEventsForContext(Subject subject, EntityContext context, List<Integer> eventIds); ** int purgeEventsForContext(Subject subject, EntityContext context); are not exposed in EventManagerRemote so it is not possible to delete events using RHQ CLI. Version-Release number of selected component (if applicable): RHQ 4.12 How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: